From e9a2d27af39e417d4b063712a8768c382371005a Mon Sep 17 00:00:00 2001 From: David Cooper Date: Tue, 26 Jul 2016 11:04:43 -0400 Subject: [PATCH] Remove determine_optimal_proto() fix --- testssl.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/testssl.sh b/testssl.sh index f0f5087..0f60a2a 100755 --- a/testssl.sh +++ b/testssl.sh @@ -7896,9 +7896,7 @@ determine_optimal_proto() { debugme echo "STARTTLS_OPTIMAL_PROTO: $STARTTLS_OPTIMAL_PROTO" else for OPTIMAL_PROTO in '' -tls1_2 -tls1 -ssl3 -tls1_1 -ssl2 ''; do - addcmd="" - [[ ! "$OPTIMAL_PROTO" =~ ssl ]] && addcmd="$SNI" - $OPENSSL s_client $OPTIMAL_PROTO $BUGS -connect "$NODEIP:$PORT" -msg $PROXY $addcmd $TMPFILE 2>>$ERRFILE + $OPENSSL s_client $OPTIMAL_PROTO $BUGS -connect "$NODEIP:$PORT" -msg $PROXY $SNI $TMPFILE 2>>$ERRFILE if sclient_auth $? $TMPFILE; then all_failed=1 break