Add PFS key size to results

master
Julien Vehent 2013-09-24 17:02:31 +02:00
parent 4a51ef71d6
commit 627701ec63
1 changed files with 4 additions and 4 deletions

View File

@ -26,13 +26,13 @@ test_cipher_on_target() {
$REQUEST
EOF
# Parse the result
result="$(grep "New, " $tmp|awk '{print $5}') $(grep -E "^\s+Protocol\s+:" $tmp|awk '{print $3}')"
result="$(grep "New, " $tmp|awk '{print $5}') $(grep -E "^\s+Protocol\s+:" $tmp|awk '{print $3}') $(grep 'Server Temp Key' $tmp|awk '{print $4$5$6$7}')"
rm "$tmp"
if [ -z "$result" ]; then
verbose "handshake failed, no ciphersuite was returned"
result='ConnectionFailure'
return 2
elif [ "$result" == '(NONE) ' ]; then
elif [ "$result" == '(NONE) ' ]; then
verbose "handshake failed, server returned ciphersuite '$result'"
return 1
else
@ -121,9 +121,9 @@ for cipher in "${cipherspref[@]}"; do
done
if [ $DOBENCHMARK -eq 1 ]; then
header="prio ciphersuite protocol avg_handshake_microsec"
header="prio ciphersuite protocol pfs_keysize avg_handshake_microsec"
else
header="prio ciphersuite protocol"
header="prio ciphersuite protocol pfs_keysize"
fi
ctr=0
for result in "${results[@]}"; do