mirror of
https://github.com/drwetter/testssl.sh.git
synced 2026-06-23 08:47: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`;
|
$cat_csv=`cat $csv`;
|
||||||
|
|
||||||
# example.com is not on the preload list
|
# 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++;
|
$tests++;
|
||||||
unlink $csv;
|
unlink $csv;
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -3078,8 +3078,8 @@ run_hsts() {
|
|||||||
case "$(check_hsts_preloadlist_value "$NODE" "status")" in
|
case "$(check_hsts_preloadlist_value "$NODE" "status")" in
|
||||||
"unknown") # Not found in the HSTS preload list
|
"unknown") # Not found in the HSTS preload list
|
||||||
case "$preloadcombined" in
|
case "$preloadcombined" in
|
||||||
"000" | "001" | "010" | "011") outln "unknown"; fileout "${jsonID}${json_postfix}" "INFO" "unknown" ;;
|
"000" | "001" | "010" | "011") outln "no entry"; fileout "${jsonID}${json_postfix}" "INFO" "no entry" ;;
|
||||||
"100" | "101" | "110" | "111") pr_svrty_low "unknown"; outln " -- submit to HSTS preload list"; fileout "${jsonID}${json_postfix}" "LOW" "unknown" ;;
|
"100" | "101" | "110" | "111") pr_svrty_low "no entry"; outln " -- submit to HSTS preload list"; fileout "${jsonID}${json_postfix}" "LOW" "no entry" ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
"pending") # Currently in the HSTS pending list
|
"pending") # Currently in the HSTS pending list
|
||||||
|
|||||||
Reference in New Issue
Block a user