Skip to content

Commit

Permalink
remove VerifyHostname: it's never used
Browse files Browse the repository at this point in the history
  • Loading branch information
phbnf committed Feb 25, 2025
1 parent f0c8bd0 commit 0e6886f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions internal/x509util/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,13 +248,6 @@ func Verify(c *x509.Certificate, opts VerifyOptions) (chains [][]*x509.Certifica
return
}

if len(opts.DNSName) > 0 {
err = c.VerifyHostname(opts.DNSName)
if err != nil {
return
}
}

var candidateChains [][]*x509.Certificate
if opts.Roots.contains(c) {
candidateChains = [][]*x509.Certificate{{c}}
Expand Down

0 comments on commit 0e6886f

Please sign in to comment.