]> git.ipfire.org Git - ipfire-3.x.git/blame - openssl/patches/openssl-1.0.0d-xmpp-starttls.patch
openssl: Update to 1.0.1.
[ipfire-3.x.git] / openssl / patches / openssl-1.0.0d-xmpp-starttls.patch
CommitLineData
0595faf5
MT
1diff -ru openssl-1.0.0d.old/apps/s_client.c openssl-1.0.0d/apps/s_client.c
2--- openssl-1.0.0d.old/apps/s_client.c 2011-07-17 21:05:19.934181169 +0200
3+++ openssl-1.0.0d/apps/s_client.c 2011-07-17 21:11:42.747824990 +0200
4@@ -1186,7 +1186,7 @@
5 "xmlns='jabber:client' to='%s' version='1.0'>", host);
6 seen = BIO_read(sbio,mbuf,BUFSIZZ);
7 mbuf[seen] = 0;
8- while (!strstr(mbuf, "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'"))
9+ while (!strcasestr(mbuf, "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'") && !strcasestr(mbuf, "<starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\""))
10 {
11 if (strstr(mbuf, "/stream:features>"))
12 goto shut;