From 644c1aa83aebbd7663d21eb67a3dcecb69261022 Mon Sep 17 00:00:00 2001 From: Richard Soderberg Date: Sat, 5 Sep 2015 02:15:44 -0700 Subject: [PATCH] Replace numeric ALLCIPHERS comparison with simpler -n test. --- cipherscan | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cipherscan b/cipherscan index 45da476..c2c5ae5 100755 --- a/cipherscan +++ b/cipherscan @@ -176,7 +176,7 @@ FALLBACKCIPHERSUITE=( DEBUG=0 VERBOSE=0 DELAY=0 -ALLCIPHERS=0 +ALLCIPHERS="" OUTPUTFORMAT="terminal" TIMEOUT=30 # place where to put the found intermediate CA certificates and where @@ -1505,7 +1505,7 @@ else fi # If asked, test every single cipher individually -if [[ $ALLCIPHERS -gt 0 ]]; then +if [[ -n $ALLCIPHERS ]]; then echo; echo "All accepted ciphersuites" for c in $($OPENSSLBIN ciphers -v ALL:COMPLEMENTOFALL 2>/dev/null |awk '{print $1}'|sort|uniq); do r="fail"