From b9d9a909b1fc646cd3367e16ae4e3f4c7b8e9b23 Mon Sep 17 00:00:00 2001 From: Karsten Weiss Date: Mon, 12 Sep 2016 16:20:05 +0200 Subject: [PATCH] certificate_info(): Fix unassigned variable. Fix referenced but not assigned variable 'sign_algo'. In testssl.sh line 4309: fileout "${json_prefix}algorithm" "DEBUG" "Signature Algorithm: $sign_algo" ^-- SC2154: sign_algo is referenced but not assigned. Found by ShellCheck. --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index 01f4213..383291f 100755 --- a/testssl.sh +++ b/testssl.sh @@ -4306,7 +4306,7 @@ certificate_info() { out "$cert_sig_algo (" pr_warning "FIXME: can't tell whether this is good or not" outln ")" - fileout "${json_prefix}algorithm" "DEBUG" "Signature Algorithm: $sign_algo" + fileout "${json_prefix}algorithm" "DEBUG" "Signature Algorithm: $cert_sig_algo" ;; esac # old, but interesting: https://blog.hboeck.de/archives/754-Playing-with-the-EFF-SSL-Observatory.html