From fe87192a80ac356e4affa39ba83ccc16db0b576d Mon Sep 17 00:00:00 2001 From: David Cooper Date: Mon, 8 Jun 2020 13:54:36 -0400 Subject: [PATCH] Fix missing spaces In some cases when the Trust finding is printed, there is no space between the results when SNI is used and the results without SNI (which appear in paraenthesis). This commit adds the missing space. --- testssl.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/testssl.sh b/testssl.sh index bd53b08..0a3056d 100755 --- a/testssl.sh +++ b/testssl.sh @@ -8862,24 +8862,24 @@ certificate_info() { fi elif [[ $trust_nosni -eq 4 ]] || [[ $trust_nosni -eq 8 ]] || [[ $trust_sni -eq 4 ]] || [[ $trust_sni -eq 8 ]]; then case $trust_nosni in - 1) trustfinding_nosni="(w/o SNI: Ok via SAN)" ;; - 2) trustfinding_nosni="(w/o SNI: Ok via SAN wildcard)" ;; + 1) trustfinding_nosni=" (w/o SNI: Ok via SAN)" ;; + 2) trustfinding_nosni=" (w/o SNI: Ok via SAN wildcard)" ;; 4) if "$has_dns_sans_nosni"; then - trustfinding_nosni="(w/o SNI: via CN, but not SAN)" + trustfinding_nosni=" (w/o SNI: via CN, but not SAN)" else - trustfinding_nosni="(w/o SNI: via CN only)" + trustfinding_nosni=" (w/o SNI: via CN only)" fi ;; - 5) trustfinding_nosni="(w/o SNI: Ok via SAN and CN)" ;; - 6) trustfinding_nosni="(w/o SNI: Ok via SAN wildcard and CN)" ;; + 5) trustfinding_nosni=" (w/o SNI: Ok via SAN and CN)" ;; + 6) trustfinding_nosni=" (w/o SNI: Ok via SAN wildcard and CN)" ;; 8) if "$has_dns_sans_nosni"; then - trustfinding_nosni="(w/o SNI: via CN wildcard, but not SAN)" + trustfinding_nosni=" (w/o SNI: via CN wildcard, but not SAN)" else - trustfinding_nosni="(w/o SNI: via CN (wildcard) only)" + trustfinding_nosni=" (w/o SNI: via CN (wildcard) only)" fi ;; - 9) trustfinding_nosni="(w/o SNI: Ok via CN wildcard and SAN)" ;; - 10) trustfinding_nosni="(w/o SNI: Ok via SAN wildcard and CN wildcard)" ;; + 9) trustfinding_nosni=" (w/o SNI: Ok via CN wildcard and SAN)" ;; + 10) trustfinding_nosni=" (w/o SNI: Ok via SAN wildcard and CN wildcard)" ;; esac elif [[ $trust_sni -ne 0 ]]; then trustfinding_nosni=" (works w/o SNI)"