Skip to content

Commit d10d9d7

Browse files
make -revoked optional (#460)
1 parent 5dd5dbe commit d10d9d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/tlsx/clients/clients.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ func IsMisMatchedCert(host string, alternativeNames []string) bool {
388388

389389
// IsTLSRevoked returns true if the certificate has been revoked or failed to parse
390390
func IsTLSRevoked(options *Options, cert *x509.Certificate) bool {
391-
if cert == nil {
391+
if !options.Revoked || cert == nil {
392392
return options.HardFail
393393
}
394394
// - false, false: an error was encountered while checking revocations.

0 commit comments

Comments
 (0)