Skip to content
Permalink
Browse files

fix IMAP STARTTLS regexp

  • Loading branch information...
capncrunch committed Mar 9, 2019
1 parent 053a226 commit f5bf2e0e22ab9cf2160603ff44ac04c2867de553
Showing with 1 addition and 1 deletion.
  1. +1 −1 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" &&

0 comments on commit f5bf2e0

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.