rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / library / openssl / common / patches / 054-xmpp-detection.patch
blob3badda45b50f2cc7455e404dfdee22438483defa
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
4 # from the upstream.
5 --- a/apps/s_client.c
6 +++ b/apps/s_client.c
7 @@ -1640,8 +1640,8 @@
8 "xmlns='jabber:client' to='%s' version='1.0'>", host);
9 seen = BIO_read(sbio, mbuf, BUFSIZZ);
10 mbuf[seen] = 0;
11 - while (!strstr
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>"))
16 goto shut;
17 seen = BIO_read(sbio, mbuf, BUFSIZZ);