From 5c4500ea4f3f2fb86ed3ccd8511cc38a8e9a7b80 Mon Sep 17 00:00:00 2001 From: Steve Mokris Date: Wed, 6 Oct 2021 16:01:13 -0400 Subject: [PATCH] Initialize/reset the TRUSTED1ST variable, in case determine_optimal_proto() changes the active openssl binary partway through execution --- testssl.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testssl.sh b/testssl.sh index 65233b5..beed0ec 100755 --- a/testssl.sh +++ b/testssl.sh @@ -410,6 +410,7 @@ KEY_EXCH_SCORE=100 # Keeps track of the score for category CIPH_STR_BEST=0 # Keeps track of the best bit size for category 3 "Cipher Strength" CIPH_STR_WORST=100000 # Keeps track of the worst bit size for category 3 "Cipher Strength" # Intentionally set very high, so it can be set to 0, if necessary +TRUSTED1ST="" # Contains the `-trusted_first` flag, if this version of openssl supports it ########### Global variables for parallel mass testing # @@ -19238,6 +19239,7 @@ find_openssl_binary() { HAS_ZLIB=false HAS_UDS=false HAS_UDS2=false + TRUSTED1ST="" $OPENSSL ciphers -s 2>&1 | grep -aiq "unknown option" || OSSL_CIPHERS_S="-s"