Skip to content

Commit

Permalink
make -revoked optional (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
dogancanbakir authored Jan 28, 2024
1 parent 5dd5dbe commit d10d9d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/tlsx/clients/clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ func IsMisMatchedCert(host string, alternativeNames []string) bool {

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

0 comments on commit d10d9d7

Please sign in to comment.