From e27f614f083a37dc801b80d7f4c0b6a72a371fa2 Mon Sep 17 00:00:00 2001 From: Richard Soderberg Date: Fri, 18 Sep 2015 13:40:05 -0700 Subject: [PATCH] revert unintended inclusion of sigalg skipping from 9ea1749f --- cipherscan | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cipherscan b/cipherscan index 7d3f3c1..81406fa 100755 --- a/cipherscan +++ b/cipherscan @@ -363,9 +363,6 @@ check_option_support() { [[ $OPENSSLBINHELP =~ "$1" ]] } -# We stop processing certificates on each connection once any of them produces a set of valid certificates. -current_sigalg="None" - parse_openssl_output() { # clear variables in case matching doesn't hit them current_ocspstaple="False" @@ -375,6 +372,7 @@ parse_openssl_output() { current_tickethint="None" current_pubkey=0 current_trusted="False" + current_sigalg="None" certs_found=0 current_raw_certificates=() @@ -439,7 +437,7 @@ parse_openssl_output() { fi # extract certificates - if [[ $current_sigalg == 'None' && $line =~ -----BEGIN\ CERTIFICATE----- ]]; then + if [[ $line =~ -----BEGIN\ CERTIFICATE----- ]]; then current_raw_certificates[$certs_found]="$line"$'\n' while read data; do current_raw_certificates[$certs_found]+="$data"$'\n'