From 4e48c77572a9a96a301e362a3646cd3cc7eca0f9 Mon Sep 17 00:00:00 2001 From: Carlos Alberto Lopez Perez Date: Mon, 6 Aug 2012 01:45:51 +0200 Subject: [PATCH] Fix XMPP code detection on s_client starttls xmpp * Some XMPP Servers (OpenFire) use double quotes. * This makes s_client starttls work with this servers. * Tested with OpenFire servers from http://xmpp.net/ :: openssl s_client -connect coderollers.com:5222 -starttls xmpp --- apps/s_client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/s_client.c b/apps/s_client.c index 61ad29134b..c38c42e037 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -1673,7 +1673,8 @@ SSL_set_tlsext_status_ids(con, ids); "xmlns='jabber:client' to='%s' version='1.0'>", host); seen = BIO_read(sbio,mbuf,BUFSIZZ); mbuf[seen] = 0; - while (!strstr(mbuf, "")) goto shut; -- 2.25.1