]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.24] crypto/x509: fix single label excluded name constraints handling
authorRoland Shoemaker <roland@golang.org>
Tue, 27 Jan 2026 00:11:44 +0000 (16:11 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 28 Jan 2026 21:37:59 +0000 (13:37 -0800)
commit2c4733c60978fc7a01d75cbcb3f99a1201687e7b
tree535007c91082719d1a6d1fed5b9494c8a5c19f7b
parent14d0bb39c1c4093bd02740d14b1a2ca720ced97c
[release-branch.go1.24] 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 #77322

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