mirror of
https://github.com/mozilla/cipherscan.git
synced 2025-04-21 01:03:39 +02:00
Merge f618e9a12e
into 74dd82e8ad
This commit is contained in:
commit
8dc6e47d28
@ -482,6 +482,7 @@ parse_openssl_output() {
|
|||||||
while read data; do
|
while read data; do
|
||||||
if [[ $data =~ $regex ]]; then
|
if [[ $data =~ $regex ]]; then
|
||||||
current_sigalg="${BASH_REMATCH[1]// /_}"
|
current_sigalg="${BASH_REMATCH[1]// /_}"
|
||||||
|
break
|
||||||
fi
|
fi
|
||||||
done <<<"$ossl_out"
|
done <<<"$ossl_out"
|
||||||
fi
|
fi
|
||||||
@ -629,15 +630,16 @@ test_cipher_on_target() {
|
|||||||
verbose "handshake failed, no ciphersuite was returned"
|
verbose "handshake failed, no ciphersuite was returned"
|
||||||
result='ConnectionFailure'
|
result='ConnectionFailure'
|
||||||
return 2
|
return 2
|
||||||
|
fi
|
||||||
|
|
||||||
# if cipher contains NONE, the cipher wasn't accepted
|
# if cipher contains NONE, the cipher wasn't accepted
|
||||||
elif [[ "$cipher" == '(NONE) ' ]]; then
|
if [[ "$cipher" == '(NONE) ' ]]; then
|
||||||
result="$cipher $protocols $pubkey $sigalg $trusted $tickethint $ocspstaple $pfs $current_curves $curves_ordering"
|
result="$cipher $protocols $pubkey $sigalg $trusted $tickethint $ocspstaple $pfs $current_curves $curves_ordering"
|
||||||
verbose "handshake failed, server returned ciphersuite '$result'"
|
verbose "handshake failed, server returned ciphersuite '$result'"
|
||||||
return 1
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
# the connection succeeded
|
# the connection succeeded
|
||||||
else
|
|
||||||
current_curves="None"
|
current_curves="None"
|
||||||
# if pfs uses ECDH, test supported curves
|
# if pfs uses ECDH, test supported curves
|
||||||
if [[ $pfs =~ ECDH ]]; then
|
if [[ $pfs =~ ECDH ]]; then
|
||||||
@ -656,7 +658,6 @@ test_cipher_on_target() {
|
|||||||
result="$cipher $protocols $pubkey $sigalg $trusted $tickethint $ocspstaple $pfs $current_curves $curves_ordering"
|
result="$cipher $protocols $pubkey $sigalg $trusted $tickethint $ocspstaple $pfs $current_curves $curves_ordering"
|
||||||
verbose "handshake succeeded, server returned ciphersuite '$result'"
|
verbose "handshake succeeded, server returned ciphersuite '$result'"
|
||||||
return 0
|
return 0
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Calculate the average handshake time for a specific ciphersuite
|
# Calculate the average handshake time for a specific ciphersuite
|
||||||
|
Loading…
Reference in New Issue
Block a user