From f5bf2e0e22ab9cf2160603ff44ac04c2867de553 Mon Sep 17 00:00:00 2001 From: Bodo Bellut Date: Sat, 9 Mar 2019 18:05:51 +0100 Subject: [PATCH] fix IMAP STARTTLS regexp --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index bfdeda6..5d787d6 100755 --- a/testssl.sh +++ b/testssl.sh @@ -9755,7 +9755,7 @@ starttls_pop3_dialog() { starttls_imap_dialog() { debugme echo "=== starting imap STARTTLS dialog ===" - local reSTARTTLS='^\* CAPABILITY(( .*)? IMAP4rev1( .*)? STARTTLS( .*)?|( .*)? STARTTLS( .*)? IMAP4rev1( .*)?)$' + local reSTARTTLS='^\* CAPABILITY(( .*)? IMAP4rev1( .*)? STARTTLS(.*)?|( .*)? STARTTLS( .*)? IMAP4rev1(.*)?)$' starttls_full_read '^\* ' '^\* OK ' && debugme echo "received server greeting" && starttls_just_send 'a001 CAPABILITY' && debugme echo "sent CAPABILITY" && starttls_full_read '^\* ' '^a001 OK ' "${reSTARTTLS}" && debugme echo "received server capabilities and checked STARTTLS availability" &&