From ec4feb52e78081035be41a60e48e722888dae995 Mon Sep 17 00:00:00 2001 From: David Cooper Date: Fri, 8 May 2020 16:13:30 -0400 Subject: [PATCH] Fix "local problem" output in ciher_pref_check() When cipher_pref_check() is called in "--ssl-native" mode and the specified protocol is not supported, the message indicating a "local problem" is not properly formatted. --- testssl.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testssl.sh b/testssl.sh index 91e1f3e..a4451de 100755 --- a/testssl.sh +++ b/testssl.sh @@ -6825,11 +6825,11 @@ cipher_pref_check() { order=""; ciphers_found_with_sockets=false if [[ $proto == ssl3 ]] && ! "$HAS_SSL3" && ! "$using_sockets"; then - out "\n SSLv3: "; pr_local_problem "$OPENSSL doesn't support \"s_client -ssl3\""; + prln_local_problem "$OPENSSL doesn't support \"s_client -ssl3\""; return 0 fi if [[ $proto == tls1_3 ]] && ! "$HAS_TLS13" && ! "$using_sockets"; then - out "\n TLSv1.3 "; pr_local_problem "$OPENSSL doesn't support \"s_client -tls1_3\""; + prln_local_problem "$OPENSSL doesn't support \"s_client -tls1_3\""; return 0 fi