]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.25] crypto/x509: fix single label excluded name constraints handling
authorRoland Shoemaker <roland@golang.org>
Tue, 27 Jan 2026 00:08:00 +0000 (16:08 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 28 Jan 2026 21:39:00 +0000 (13:39 -0800)
commit0765a9d624119e15c2f527e69098151ba664e5a5
tree3405d8b06e631512b3f4efec33ed8a7cfaa9ec9b
parentb19100991ac6d096e67cead47392049c178fd5ab
[release-branch.go1.25] crypto/x509: fix single label excluded name constraints handling

Only strip labels when both the domain and constraint have more than one
label.

Fixes #76935
Fixes #77323

Change-Id: Ifdaae2cbe0c57984bb7334a8f08fa33a800e7c27
Reviewed-on: https://go-review.googlesource.com/c/go/+/739400
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/crypto/x509/name_constraints_test.go
src/crypto/x509/verify.go