From 19d5c40618568458d758562375c08f8fd610bda1 Mon Sep 17 00:00:00 2001 From: Mateusz Poliwczak Date: Thu, 20 Apr 2023 18:08:55 +0000 Subject: [PATCH] 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: b48c284c42205483fcc5e02b9d68d7bbd6a1c370 GitHub-Pull-Request: golang/go#59743 Reviewed-on: https://go-review.googlesource.com/c/go/+/487035 Run-TryBot: Roland Shoemaker Reviewed-by: Bryan Mills Reviewed-by: Roland Shoemaker TryBot-Result: Gopher Robot Auto-Submit: Roland Shoemaker --- src/crypto/x509/verify.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/x509/verify.go b/src/crypto/x509/verify.go index 0b01f8b475..8f9610f8e6 100644 --- a/src/crypto/x509/verify.go +++ b/src/crypto/x509/verify.go @@ -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 { -- 2.48.1