mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-03 23:39:45 +01:00
STARTTLS rating styling
This commit is contained in:
parent
e9d6462ee9
commit
de14ec9f81
11
testssl.sh
11
testssl.sh
@ -20802,14 +20802,7 @@ run_rating() {
|
||||
pr_headlineln " Rating (experimental) "
|
||||
outln
|
||||
|
||||
if [[ -n "$STARTTLS_PROTOCOL" ]]; then
|
||||
pr_bold " Grade "; pr_svrty_critical "T"
|
||||
outln " - STARTTLS encryption is opportunistic"
|
||||
outln " (Further details would lead to a false sense of security)"
|
||||
fileout "grade" "CRITICAL" "T"
|
||||
fileout "grade_cap_reasons" "INFO" "No more details shown as it would lead to a false sense of security"
|
||||
return 0
|
||||
fi
|
||||
[[ -n "$STARTTLS_PROTOCOL" ]] && set_grade_warning "STARTTLS encryption is opportunistic. The grade is very insignificant"
|
||||
|
||||
# Sort the reasons. This is just nicer to read in genereal
|
||||
IFS=$'\n' sorted_reasons=($(sort -ru <<<"${GRADE_CAP_REASONS[*]}"))
|
||||
@ -20912,7 +20905,7 @@ run_rating() {
|
||||
|
||||
pr_bold " Final Score "; outln $final_score
|
||||
|
||||
# get score, and somehow do something about the GRADE_CAP
|
||||
# Calculate the pre-cap grade
|
||||
if [[ $final_score -ge 80 ]]; then
|
||||
pre_cap_grade="A"
|
||||
elif [[ $final_score -ge 65 ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user