From c252541bcf88f13f244f505fa3e9bd3273c9a8c5 Mon Sep 17 00:00:00 2001 From: Dirk Date: Wed, 13 Feb 2019 14:37:57 +0100 Subject: [PATCH] Minor code simplification / readability --- testssl.sh | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/testssl.sh b/testssl.sh index e1a3943..69b912d 100755 --- a/testssl.sh +++ b/testssl.sh @@ -3707,7 +3707,7 @@ run_allciphers() { ciphers_found[i]=false sigalg[i]="" ossl_supported[i]=${TLS_CIPHER_OSSL_SUPPORTED[i]} - if "$using_sockets" && ! "$HAS_DH_BITS" && ( [[ ${kx[i]} == "Kx=ECDH" ]] || [[ ${kx[i]} == "Kx=DH" ]] || [[ ${kx[i]} == "Kx=EDH" ]] ); then + if "$using_sockets" && ! "$HAS_DH_BITS" && ( [[ ${kx[i]} == Kx=ECDH ]] || [[ ${kx[i]} == Kx=DH ]] || [[ ${kx[i]} == Kx=EDH ]] ); then ossl_supported[i]=false fi if [[ ${#hexc} -eq 9 ]]; then @@ -3752,7 +3752,7 @@ run_allciphers() { supported_sslv2_ciphers="$(grep "Supported cipher: " "$TEMPDIR/$NODEIP.parse_sslv2_serverhello.txt")" "$SHOW_SIGALGO" && s="$(read_sigalg_from_file "$HOSTCERT")" for (( i=0 ; i