FreeBSD Bugzilla – Attachment 183311 Details for
Bug 219805
security/openssl: openssl s_client and XMPP
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Add checking for extra " from XMPP server
openssl-1.0.2a-xmpp-starttls.patch (text/plain), 1.10 KB, created by
Alexey
on 2017-06-07 22:06:38 UTC
(
hide
)
Description:
Add checking for extra " from XMPP server
Filename:
MIME Type:
Creator:
Alexey
Created:
2017-06-07 22:06:38 UTC
Size:
1.10 KB
patch
obsolete
>diff -up openssl-1.0.2a/apps/s_client.c.starttls openssl-1.0.2a/apps/s_client.c >--- openssl-1.0.2a/apps/s_client.c.starttls 2015-04-22 18:23:12.964387157 +0200 >+++ openssl-1.0.2a/apps/s_client.c 2015-04-22 18:23:56.496414820 +0200 >@@ -134,7 +134,8 @@ > * OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OR > * OTHERWISE. > */ >- >+/* for strcasestr */ >+#define _GNU_SOURCE > #include <assert.h> > #include <ctype.h> > #include <stdio.h> >@@ -1626,8 +1627,11 @@ int MAIN(int argc, char **argv) > "xmlns='jabber:client' to='%s' version='1.0'>", host); > seen = BIO_read(sbio, mbuf, BUFSIZZ); > mbuf[seen] = 0; >- while (!strstr >- (mbuf, "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'")) { >+ while (!strcasestr >+ (mbuf, "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'") >+ && !strcasestr(mbuf, >+ "<starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"")) >+ { > if (strstr(mbuf, "/stream:features>")) > goto shut; > seen = BIO_read(sbio, mbuf, BUFSIZZ);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 219805
: 183311