mirror of
https://github.com/drwetter/testssl.sh.git
synced 2026-06-23 16:57:38 +02:00
ui: replace raw API value 'unknown' with 'no entry' in HSTS preload output
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user