Remove set_grade_cap() from 3.0

Grading is a new feature in 3.1dev,, so set_grade_cap() is not defined in the 3.0 branch.

This commit removes the call to set_grade_cap() in certificate_info().
This commit is contained in:
David Cooper 2023-02-06 06:40:22 -08:00 committed by GitHub
parent 3bacce4770
commit 404d40cf68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8791,7 +8791,6 @@ certificate_info() {
# Shortcut for this special case here. There is a difference between not being in a root store and being removed from a root store.
pr_italic "$issuer_O"; out " is " ; prln_svrty_critical "actively removed from one or more root stores (NOT ok)"
fileout "${jsonID}${json_postfix}" "CRITICAL" "Issuer removed from one or more root stores ($issuer_O)"
set_grade_cap "T" "Untrusted certificate chain"
else
# Also handles fileout, keep error if happened
determine_trust "$jsonID" "$json_postfix" || ((ret++))