Deleted Added
full compact
s_client.c (325335) s_client.c (325337)
1/* apps/s_client.c */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 1653 unchanged lines hidden (view full) ---

1662 "xmlns='jabber:client' to='%s' version='1.0'>", host);
1663 seen = BIO_read(sbio, mbuf, BUFSIZZ);
1664 mbuf[seen] = 0;
1665 while (!strstr
1666 (mbuf, "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'")) {
1667 if (strstr(mbuf, "/stream:features>"))
1668 goto shut;
1669 seen = BIO_read(sbio, mbuf, BUFSIZZ);
1/* apps/s_client.c */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 1653 unchanged lines hidden (view full) ---

1662 "xmlns='jabber:client' to='%s' version='1.0'>", host);
1663 seen = BIO_read(sbio, mbuf, BUFSIZZ);
1664 mbuf[seen] = 0;
1665 while (!strstr
1666 (mbuf, "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'")) {
1667 if (strstr(mbuf, "/stream:features>"))
1668 goto shut;
1669 seen = BIO_read(sbio, mbuf, BUFSIZZ);
1670 if (seen <= 0)
1671 goto shut;
1670 mbuf[seen] = 0;
1671 }
1672 BIO_printf(sbio,
1673 "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>");
1674 seen = BIO_read(sbio, sbuf, BUFSIZZ);
1675 sbuf[seen] = 0;
1676 if (!strstr(sbuf, "<proceed"))
1677 goto shut;

--- 684 unchanged lines hidden ---
1672 mbuf[seen] = 0;
1673 }
1674 BIO_printf(sbio,
1675 "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>");
1676 seen = BIO_read(sbio, sbuf, BUFSIZZ);
1677 sbuf[seen] = 0;
1678 if (!strstr(sbuf, "<proceed"))
1679 goto shut;

--- 684 unchanged lines hidden ---