1
0
mirror of https://github.com/drwetter/testssl.sh.git synced 2025-04-11 12:06:05 +02:00

Merge pull request from dcooper16/run_server_preference_ssl3_bugfix

run_server_preference() bug fix
This commit is contained in:
Dirk Wetter 2017-10-18 13:42:54 +02:00 committed by GitHub
commit 76248493a0

@ -4957,8 +4957,8 @@ run_server_preference() {
tls_sockets "00" "$TLS_CIPHER"
if [[ $? -eq 0 ]]; then
proto[i]="SSLv3"
cipher[i]=""
cipher1=$(awk '/Cipher *:/ { print $3 }' "$TEMPDIR/$NODEIP.parse_tls_serverhello.txt")
cipher[i]="$cipher1"
if [[ "$DISPLAY_CIPHERNAMES" =~ openssl ]] && [[ $TLS_NR_CIPHERS -ne 0 ]]; then
cipher[i]="$(rfc2openssl "$cipher1")"
[[ -z "${cipher[i]}" ]] && cipher[i]="$cipher1"