]> Cypherpunks.ru repositories - gostls13.git/commitdiff
crypto/x509: use the RFC 6125 terminology in the VerifyHostname docs
authorMateusz Poliwczak <mpoliwczak34@gmail.com>
Thu, 20 Apr 2023 18:08:55 +0000 (18:08 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 21 Apr 2023 13:59:57 +0000 (13:59 +0000)
RFC6125 uses the "complete left-most label" to describe star and full stop wildcards.

Change-Id: Ib7bcf77288ae7d72fb8664b663de2e52b378aaf6
GitHub-Last-Rev: b48c284c42205483fcc5e02b9d68d7bbd6a1c370
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>

src/crypto/x509/verify.go

index 0b01f8b47536a28d431ae88b21120a85deee72a7..8f9610f8e6d8efcf73e2e74dbccf6c48b204de21 100644 (file)
@@ -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 {