From 2071feafe3c794fc039ab131476fca2a62198340 Mon Sep 17 00:00:00 2001 From: Dirk Wetter Date: Wed, 31 Aug 2022 09:09:05 +0200 Subject: [PATCH] Fix xmpp-server detection See #1575 --- testssl.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index 9204ab5..c1b4d36 100755 --- a/testssl.sh +++ b/testssl.sh @@ -19762,8 +19762,9 @@ find_openssl_binary() { grep -qw '\-fallback_scsv' $s_client_has && HAS_FALLBACK_SCSV=true + # the output from 1.0.2 and 1.1.1/3.0.x is quite different grep -q 'xmpp' $s_client_starttls_has && HAS_XMPP=true - grep -q 'xmpp-server' $s_client_starttls_has && HAS_XMPP_SERVER=true + grep -Eq 'xmpp-server|xmpp\[-server\]' $s_client_starttls_has && HAS_XMPP_SERVER=true grep -q 'postgres' $s_client_starttls_has && HAS_POSTGRES=true grep -q 'mysql' $s_client_starttls_has && HAS_MYSQL=true