From 8d60e870409e015269b396e7560d04a1a0dbb90b Mon Sep 17 00:00:00 2001 From: David Cooper Date: Fri, 24 Mar 2017 16:45:39 -0400 Subject: [PATCH] Fix std_cipherlists with debug `std_cipherlists()` does not include line breaks between tests in the output to the terminal when `$DEBUG` is 1, and it does not include line break between tests in the HTML output whenever `$DEBUG` is greater than 0. --- testssl.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/testssl.sh b/testssl.sh index 40078af..e498792 100755 --- a/testssl.sh +++ b/testssl.sh @@ -2368,7 +2368,7 @@ std_cipherlists() { ;; esac tmpfile_handle $FUNCNAME.$debugname.txt - [[ $DEBUG -ge 1 ]] && out " -- $1" || outln #FIXME: should be in standard output at some time + [[ $DEBUG -ge 1 ]] && outln " -- $1" || outln #FIXME: should be in standard output at some time else singlespaces=$(sed -e 's/ \+/ /g' -e 's/^ //' -e 's/ $//g' -e 's/ //g' <<< "$2") if [[ "$OPTIMAL_PROTO" == "-ssl2" ]]; then @@ -2378,8 +2378,6 @@ std_cipherlists() { fi fileout "std_$4" "WARN" "Cipher $2 ($1) not supported by local OpenSSL ($OPENSSL)" fi - # we need 1 x lf in those cases: - debugme echo }