mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-04 23:13:41 +01:00
Assign r=pass/fail once only, rather than twice for fail->pass.
This commit is contained in:
parent
9e3154389e
commit
a342ff7579
@ -1506,10 +1506,11 @@ fi
|
||||
if [[ -n $ALLCIPHERS ]]; then
|
||||
echo; echo "All accepted ciphersuites"
|
||||
for c in $($OPENSSLBIN ciphers -v ALL:COMPLEMENTOFALL 2>/dev/null |awk '{print $1}'|sort -u); do
|
||||
r="fail"
|
||||
osslcommand="$TIMEOUTBIN $TIMEOUT $OPENSSLBIN s_client $SCLIENTARGS -connect $TARGET -cipher $c"
|
||||
if test_cipher_on_target "$osslcommand"; then
|
||||
r="pass"
|
||||
else
|
||||
r="fail"
|
||||
fi
|
||||
echo "$c $r"|awk '{printf "%-35s %s\n",$1,$2}'
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user