Skip to content

Commit

Permalink
update godoc
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardsn committed Nov 1, 2024
1 parent 3877cde commit e44c38d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pki/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ type Validator interface {
// ErrCertRevoked and ErrCertUntrusted indicate that at least one of the certificates is revoked, or signed by a CA that is not in the truststore.
// ErrCRLMissing and ErrCRLExpired signal that at least one of the certificates cannot be validated reliably.
// If the certificate was revoked on an expired CRL, it wil return ErrCertRevoked.
// Ignoring all errors except ErrCertRevoked changes the behavior from hard-fail to soft-fail. Without a truststore, the Validator is a noop if set to soft-fail
// If set to soft-fail it ignores ErrCRLMissing and ErrCRLExpired errors.
// The certificate chain is expected to be sorted leaf to root.
Validate(chain []*x509.Certificate) error

Expand Down

0 comments on commit e44c38d

Please sign in to comment.