From bcc6178c57fb39156c982c57ac936d57d4bfe86e Mon Sep 17 00:00:00 2001 From: David Cooper Date: Wed, 8 Dec 2021 09:16:55 -0500 Subject: [PATCH] Update reset_hostdepended_vars() This commit adds several variables to reset_hostdepended_vars() that are not currently being reset for each host being tested, but that should be reset. --- testssl.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/testssl.sh b/testssl.sh index 403404a..cb03d96 100755 --- a/testssl.sh +++ b/testssl.sh @@ -20077,8 +20077,26 @@ reset_hostdepended_vars() { PROTOS_OFFERED="" CURVES_OFFERED="" OPTIMAL_PROTO="" + STARTTLS_OPTIMAL_PROTO="" ALL_FAILED_SOCKETS=true SERVER_SIZE_LIMIT_BUG=false + NR_SOCKET_FAIL=0 + NR_OSSL_FAIL=0 + NR_HEADER_FAIL=0 + TLS12_CIPHER_OFFERED="" + KNOWN_OSSL_PROB=false + TLS13_ONLY=false + CLIENT_AUTH=false + NO_SSL_SESSIONID=false + DH_GROUP_OFFERED="" + DH_GROUP_LEN_P=0 + KEY_SHARE_EXTN_NR="33" + BAD_SERVER_HELLO_CIPHER=false + GOST_STATUS_PROBLEM=false + SERVICE="" + CERT_FINGERPRINT_SHA2="" + RSA_CERT_FINGERPRINT_SHA2="" + TLS_TIME="" } # Rough estimate, in the future we maybe want to make use of nano secs (%N). Note this @@ -20231,10 +20249,6 @@ lets_roll() { calc_scantime datebanner " Done" - # reset the failed connect counter as we are finished - NR_SOCKET_FAIL=0 - NR_OSSL_FAIL=0 - "$MEASURE_TIME" && printf "$1: %${COLUMNS}s\n" "$SCAN_TIME" [[ -e "$MEASURE_TIME_FILE" ]] && echo "Total : $SCAN_TIME " >> "$MEASURE_TIME_FILE"