View | Details | Raw Unified | Return to bug 219805
Collapse All | Expand All

(-)openssl-1.0.2a/apps/s_client.c (-3 / +7 lines)
Lines 134-140 Link Here
134
 * OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OR
134
 * OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OR
135
 * OTHERWISE.
135
 * OTHERWISE.
136
 */
136
 */
137
137
/* for strcasestr */
138
#define _GNU_SOURCE
138
#include <assert.h>
139
#include <assert.h>
139
#include <ctype.h>
140
#include <ctype.h>
140
#include <stdio.h>
141
#include <stdio.h>
Lines 1626-1633 int MAIN(int argc, char **argv) Link Here
1626
                   "xmlns='jabber:client' to='%s' version='1.0'>", host);
1627
                   "xmlns='jabber:client' to='%s' version='1.0'>", host);
1627
        seen = BIO_read(sbio, mbuf, BUFSIZZ);
1628
        seen = BIO_read(sbio, mbuf, BUFSIZZ);
1628
        mbuf[seen] = 0;
1629
        mbuf[seen] = 0;
1629
        while (!strstr
1630
        while (!strcasestr
1630
               (mbuf, "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'")) {
1631
               (mbuf, "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'")
1632
               && !strcasestr(mbuf,
1633
                              "<starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\""))
1634
        {
1631
            if (strstr(mbuf, "/stream:features>"))
1635
            if (strstr(mbuf, "/stream:features>"))
1632
                goto shut;
1636
                goto shut;
1633
            seen = BIO_read(sbio, mbuf, BUFSIZZ);
1637
            seen = BIO_read(sbio, mbuf, BUFSIZZ);

Return to bug 219805