Fix CRIME test on servers only supporting TLS 1.3

As jsonID is not set by run_crime, make the fileout invocation for
servers supporting only TLS 1.3 use the literal "CRIME_TLS" instead.

Previously running testssl with CSV or JSON output would produce an item
with the wrong ID.
This commit is contained in:
Tomasz Kramkowski 2022-05-23 13:53:38 +01:00
parent 897443f035
commit 130b5b2aac

View File

@ -14666,7 +14666,7 @@ run_crime() {
pr_svrty_best "not vulnerable (OK)"
[[ $DEBUG -ge 1 ]] && out ", no compression in TLS 1.3 only servers"
outln
fileout "$jsonID" "OK" "TLS 1.3 only server" "$cve" "$cwe"
fileout "CRIME_TLS" "OK" "TLS 1.3 only server" "$cve" "$cwe"
return 0
fi