Skip to content
Permalink
Browse files

Merge pull request #1213 from capncrunch/fix_starttls_imap

fix IMAP STARTTLS regexp
  • Loading branch information...
drwetter committed Mar 10, 2019
2 parents 053a226 + f5bf2e0 commit bc6b2c6f94dc6a76f9cc9951a601dbc020f97b6b
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 bc6b2c6

Please sign in to comment.
You can’t perform that action at this time.