1 # The patch is based on the following commit from the upstream:
2 # https://github.com/openssl/openssl/commit/4e48c77572a9a96a301e362a3646cd3cc7eca0f9
3 # The fix is patched until the new version becomes available
8 "xmlns='jabber:client' to='%s' version='1.0'>", host);
9 seen = BIO_read(sbio, mbuf, BUFSIZZ);
12 - (mbuf, "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'")) {
13 + while (!strstr(mbuf, "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'") &&
14 + !strstr(mbuf, "<starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"")) {
15 if (strstr(mbuf, "/stream:features>"))
17 seen = BIO_read(sbio, mbuf, BUFSIZZ);