510bcc2
diff -up openssl-1.1.0-pre5/apps/s_client.c.xmpp openssl-1.1.0-pre5/apps/s_client.c
510bcc2
--- openssl-1.1.0-pre5/apps/s_client.c.xmpp	2016-07-20 14:53:39.008233281 +0200
510bcc2
+++ openssl-1.1.0-pre5/apps/s_client.c	2016-07-20 14:56:24.452962890 +0200
510bcc2
@@ -134,6 +134,8 @@
510bcc2
  * OTHERWISE.
510bcc2
  */
510bcc2
 
510bcc2
+/* for strcasestr */
510bcc2
+#define _GNU_SOURCE
510bcc2
 #include <ctype.h>
510bcc2
 #include <stdio.h>
510bcc2
 #include <stdlib.h>
510bcc2
@@ -2023,9 +2025,9 @@ int s_client_main(int argc, char **argv)
510bcc2
                        xmpphost ? xmpphost : host);
510bcc2
             seen = BIO_read(sbio, mbuf, BUFSIZZ);
510bcc2
             mbuf[seen] = 0;
510bcc2
-            while (!strstr
510bcc2
+            while (!strcasestr
510bcc2
                    (mbuf, "
510bcc2
-                   && !strstr(mbuf,
510bcc2
+                   && !strcasestr(mbuf,
510bcc2
                               "
510bcc2
             {
510bcc2
                 seen = BIO_read(sbio, mbuf, BUFSIZZ);