From 06f842ae690ca91ed4fbe4f1bf56229471ecee9b Mon Sep 17 00:00:00 2001 From: David Cooper Date: Fri, 27 Oct 2017 10:34:04 -0400 Subject: [PATCH] Use read_sigalg_from_file() helper function This PR fixes several places where the read_sigalg_from_file() helper function isn't being used. --- testssl.sh | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/testssl.sh b/testssl.sh index 8b72301..7901e74 100755 --- a/testssl.sh +++ b/testssl.sh @@ -2850,7 +2850,7 @@ run_cipher_match(){ sslv2_sockets "${ciphers_to_test:2}" "true" if [[ $? -eq 3 ]] && [[ "$V2_HELLO_CIPHERSPEC_LENGTH" -ne 0 ]]; then supported_sslv2_ciphers="$(grep "Supported cipher: " "$TEMPDIR/$NODEIP.parse_sslv2_serverhello.txt")" - "$SHOW_SIGALGO" && s="$($OPENSSL x509 -noout -text -in "$HOSTCERT" | awk -F':' '/Signature Algorithm/ { print $2 }' | head -1)" + "$SHOW_SIGALGO" && s="$(read_sigalg_from_file "$HOSTCERT")" for (( i=0 ; i