components/openssl/common/patches/054-xmpp-detection.patch
branchs11u3-sru
changeset 7163 ee09edbd5876
parent 6728 bac15af72b19
equal deleted inserted replaced
7159:59b406bc4a3a 7163:ee09edbd5876
       
     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);