From b5dbe73a7ecfd0984fe8b2436036ed18f538402b Mon Sep 17 00:00:00 2001 From: Dirk Wetter Date: Fri, 8 Feb 2019 14:11:52 +0100 Subject: [PATCH] Minor output tuning for #1188 Prefer quoted name, see https://datatracker.ietf.org/liaison/1616/. Also added visibility info for now. --- testssl.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/testssl.sh b/testssl.sh index 83f0d3d..1945fe7 100755 --- a/testssl.sh +++ b/testssl.sh @@ -7433,8 +7433,8 @@ etsi_etls_visibility_info() { fi fi if [[ $nr_visnames -eq 0 ]]; then - outln "Not present" - fileout "$jsonID" "INFO" "Not present" + outln "not present" + fileout "$jsonID" "INFO" "not present" else for (( i=0; i < nr_visnames; i++ )); do [[ $i -ne 0 ]] && out "$spaces" @@ -7565,7 +7565,7 @@ certificate_transparency() { fi fi - if [[ $SERVICE != "HTTP" ]] && ! "$CLIENT_AUTH"; then + if [[ $SERVICE != HTTP ]] && ! "$CLIENT_AUTH"; then # At the moment Certificate Transparency only applies to HTTPS. tm_out "N/A" else @@ -8155,7 +8155,8 @@ certificate_info() { # https://certs.opera.com/03/ev-oids.xml # see #967 - out "$indent"; pr_bold " eTLS " + out "$indent"; pr_bold " \"eTLS\"" + out " (visibility info) " jsonID="cert_eTLS" etsi_etls_visibility_info "$jsonID" "$spaces" "$HOSTCERT" "$cert_txt"