From 391f6a6b2bb2a8c25dc566dd52465561860dc10c Mon Sep 17 00:00:00 2001 From: potato-20 Date: Wed, 17 Jun 2026 15:10:46 +0530 Subject: [PATCH] ui: replace raw API value 'unknown' with 'no entry' in HSTS preload output --- t/53_hsts_preload.t | 2 +- testssl.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/t/53_hsts_preload.t b/t/53_hsts_preload.t index cd874a0..08f2be4 100644 --- a/t/53_hsts_preload.t +++ b/t/53_hsts_preload.t @@ -41,7 +41,7 @@ system("@args") == 0 $cat_csv=`cat $csv`; # example.com is not on the preload list -like($cat_csv, qr/"HSTS_preloadlist".*"unknown"/,"\"$uri\" should not be on the HSTS preload list"); +like($cat_csv, qr/"HSTS_preloadlist".*"no entry"/,"\"$uri\" should not be on the HSTS preload list"); $tests++; unlink $csv; diff --git a/testssl.sh b/testssl.sh index 131176a..0428b00 100755 --- a/testssl.sh +++ b/testssl.sh @@ -3078,8 +3078,8 @@ run_hsts() { case "$(check_hsts_preloadlist_value "$NODE" "status")" in "unknown") # Not found in the HSTS preload list case "$preloadcombined" in - "000" | "001" | "010" | "011") outln "unknown"; fileout "${jsonID}${json_postfix}" "INFO" "unknown" ;; - "100" | "101" | "110" | "111") pr_svrty_low "unknown"; outln " -- submit to HSTS preload list"; fileout "${jsonID}${json_postfix}" "LOW" "unknown" ;; + "000" | "001" | "010" | "011") outln "no entry"; fileout "${jsonID}${json_postfix}" "INFO" "no entry" ;; + "100" | "101" | "110" | "111") pr_svrty_low "no entry"; outln " -- submit to HSTS preload list"; fileout "${jsonID}${json_postfix}" "LOW" "no entry" ;; esac ;; "pending") # Currently in the HSTS pending list