054-xmpp-detection.patch revision 6706
6706N/A# The patch is based on the following commit from the upstream:
6706N/A# https://github.com/openssl/openssl/commit/4e48c77572a9a96a301e362a3646cd3cc7eca0f9
6706N/A# The fix is patched until the new version becomes available
6706N/A# from the upstream.
6706N/A--- a/apps/s_client.c
6706N/A+++ b/apps/s_client.c
6706N/A@@ -1640,8 +1640,8 @@
6706N/A "xmlns='jabber:client' to='%s' version='1.0'>", host);
6706N/A seen = BIO_read(sbio, mbuf, BUFSIZZ);
6706N/A mbuf[seen] = 0;
6706N/A- while (!strstr
6706N/A- (mbuf, "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'")) {
6706N/A+ while (!strstr(mbuf, "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'") &&
6706N/A+ !strstr(mbuf, "<starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"")) {
6706N/A if (strstr(mbuf, "/stream:features>"))
6706N/A goto shut;
6706N/A seen = BIO_read(sbio, mbuf, BUFSIZZ);