From dbce87cb1af453bb57e51d84c358f6be2aef9f97 Mon Sep 17 00:00:00 2001 From: Hubert Kario Date: Mon, 21 Sep 2015 16:18:37 +0200 Subject: [PATCH] fix printing of test data for intolerant servers tls_tolerance is an array, so we need to use array syntax... since if the server is tls version intolerant we will be printing a lot of info, space it out from the certificate-related summary ephemeral sigalgs are also printing a lot of information, so space them from the TLS Tolerance test results --- cipherscan | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cipherscan b/cipherscan index 08209a6..b7d0d1a 100755 --- a/cipherscan +++ b/cipherscan @@ -890,12 +890,14 @@ display_results_in_terminal() { display_sigalgs_in_terminal "${sigalgs_preferred_rsa[@]}" fi fi + echo fi if [[ $TEST_TOLERANCE == "True" ]]; then - if [[ $tls_tolerance['big-TLSv1.2'] =~ TLSv1.2 ]]; then + if [[ ${tls_tolerance['big-TLSv1.2']} =~ TLSv1\.2 ]]; then echo -e "TLS Tolerance: ${c_green}yes${c_reset}" else + echo echo -e "TLS Tolerance: ${c_red}no${c_reset}" echo "Fallbacks required:" for test_name in "${!tls_tolerance[@]}"; do