Skip to content

Commit

Permalink
fix: update
Browse files Browse the repository at this point in the history
Signed-off-by: Junjie Gao <[email protected]>
  • Loading branch information
JeyJeyGao committed Sep 10, 2024
1 parent 8437ba1 commit c00b956
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions verifier/verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ func revocationFinalResult(certResults []*revocationresult.CertRevocationResult,
certResult := certResults[i]
if len(certResult.ServerResults) > 0 && certResult.ServerResults[0].Error != nil {
// OCSP error
logger.Debugf("certificate #%d in chain with subject %v for server %q encountered an OCSP error: %v", (i + 1), cert.Subject.String(), certResult.ServerResults[0].Server, certResult.ServerResults[0].Error)
logger.Debugf("Certificate #%d in chain with subject %v for server %q encountered an OCSP error: %v", (i + 1), cert.Subject.String(), certResult.ServerResults[0].Server, certResult.ServerResults[0].Error)

if len(certResult.CRLResults) > 0 {
// fallback to CRL check
Expand All @@ -821,7 +821,7 @@ func revocationFinalResult(certResults []*revocationresult.CertRevocationResult,
}
if len(certResult.CRLResults) > 0 && certResult.CRLResults[0].Error != nil {
// CRL error
logger.Debugf("certificate #%d in chain with subject %v for CRL %q encountered an CRL error: %v", (i + 1), cert.Subject.String(), certResult.CRLResults[0].URI, certResult.CRLResults[0].Error)
logger.Debugf("Certificate #%d in chain with subject %v for CRL %q encountered an CRL error: %v", (i + 1), cert.Subject.String(), certResult.CRLResults[0].URI, certResult.CRLResults[0].Error)
}

if certResult.Result == revocationresult.ResultOK || certResult.Result == revocationresult.ResultNonRevokable {
Expand Down

0 comments on commit c00b956

Please sign in to comment.