2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-11-04 15:03:41 +01:00

Assign r=pass/fail once only, rather than twice for fail->pass.

This commit is contained in:
Richard Soderberg 2015-09-05 02:19:18 -07:00
parent 9e3154389e
commit a342ff7579

View File

@ -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