mirror of
https://github.com/golang/go
synced 2024-11-17 02:14:42 -07:00
crypto/x509: use the RFC 6125 terminology in the VerifyHostname docs
RFC6125 uses the "complete left-most label" to describe star and full stop wildcards.
Change-Id: Ib7bcf77288ae7d72fb8664b663de2e52b378aaf6
GitHub-Last-Rev: b48c284c42
GitHub-Pull-Request: golang/go#59743
Reviewed-on: https://go-review.googlesource.com/c/go/+/487035
Run-TryBot: Roland Shoemaker <roland@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Roland Shoemaker <roland@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Roland Shoemaker <roland@golang.org>
This commit is contained in:
parent
4cba0bd74a
commit
19d5c40618
@ -1081,7 +1081,7 @@ func toLowerCaseASCII(in string) string {
|
||||
// IP addresses can be optionally enclosed in square brackets and are checked
|
||||
// against the IPAddresses field. Other names are checked case insensitively
|
||||
// against the DNSNames field. If the names are valid hostnames, the certificate
|
||||
// fields can have a wildcard as the left-most label.
|
||||
// fields can have a wildcard as the complete left-most label (e.g. *.example.com).
|
||||
//
|
||||
// Note that the legacy Common Name field is ignored.
|
||||
func (c *Certificate) VerifyHostname(h string) error {
|
||||
|
Loading…
Reference in New Issue
Block a user