]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: don't match bare wildcard
authorRoland Shoemaker <roland@golang.org>
Mon, 13 May 2024 20:20:37 +0000 (13:20 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 22 May 2024 22:58:39 +0000 (22:58 +0000)
commit375031d8dcec9ae74d2dbc437b201107dba3bb5f
tree32c2e5718f17ba0ddaa69ee25f756becb9478ce7
parentcf06b1f1db9bf84301aa7e760267fdab46373116
crypto/x509: don't match bare wildcard

When verifying the name "test", a SAN with a bare wildcard ("*") should
not constitute a match.

Updates #65085

Change-Id: I02151761e2f29f3e358708a3f723af32b0d79288
Reviewed-on: https://go-review.googlesource.com/c/go/+/585076
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Roland Shoemaker <roland@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/crypto/x509/verify.go
src/crypto/x509/verify_test.go