mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-22 14:23: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
|
if [[ -n $ALLCIPHERS ]]; then
|
||||||
echo; echo "All accepted ciphersuites"
|
echo; echo "All accepted ciphersuites"
|
||||||
for c in $($OPENSSLBIN ciphers -v ALL:COMPLEMENTOFALL 2>/dev/null |awk '{print $1}'|sort -u); do
|
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"
|
osslcommand="$TIMEOUTBIN $TIMEOUT $OPENSSLBIN s_client $SCLIENTARGS -connect $TARGET -cipher $c"
|
||||||
if test_cipher_on_target "$osslcommand"; then
|
if test_cipher_on_target "$osslcommand"; then
|
||||||
r="pass"
|
r="pass"
|
||||||
|
else
|
||||||
|
r="fail"
|
||||||
fi
|
fi
|
||||||
echo "$c $r"|awk '{printf "%-35s %s\n",$1,$2}'
|
echo "$c $r"|awk '{printf "%-35s %s\n",$1,$2}'
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user