From d1ab23c14687e3881684890d42a674e7dab93380 Mon Sep 17 00:00:00 2001 From: Lars Windolf Date: Sat, 3 Jan 2015 11:41:35 +0100 Subject: [PATCH] Change question logic on non-SSL port Idea is to bail out per default (with WARNINGS=off) this makes batch processing possible as often testssl.sh hangs for minutes or endless on non-SSL ports. --- testssl.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testssl.sh b/testssl.sh index f836913..26c84d6 100755 --- a/testssl.sh +++ b/testssl.sh @@ -1969,8 +1969,8 @@ parse_hn_port() { $OPENSSL s_client -connect "$NODE:$PORT" $SNI /dev/null 2>&1 if [ $? -ne 0 ]; then boldln "$NODE:$PORT doesn't seem a TLS/SSL enabled server or it requires a certificate"; - ignore_no_or_lame "Proceed (note that the results might look ok but they are nonsense) ? " - [ $? -ne 0 ] && exit 3 + ignore_no_or_lame "Do you want to exit (note that otherwise results might look ok but they are nonsense) ? " + [ $? -eq 0 ] && exit 3 fi fi