]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: gate Policies marshaling with GODEBUG
authorRoland Shoemaker <roland@golang.org>
Mon, 4 Dec 2023 18:17:34 +0000 (10:17 -0800)
committerRoland Shoemaker <roland@golang.org>
Mon, 11 Dec 2023 23:29:45 +0000 (23:29 +0000)
commitb18b05881691861c4279a50010829150f1684fa9
tree5b1096b76342a088dcc3b9250edb547560f51d42
parentf4ff0e25054d1159396cc1d9252f1e94021ce46c
crypto/x509: gate Policies marshaling with GODEBUG

Use a GODEBUG to choose which certificate policy field to use. If
x509usepolicies=1 is set, use the Policies field, otherwise use the
PolicyIdentifiers field.

Fixes #64248

Change-Id: I3f0b56102e0bac4ebe800497717c61c58ef3f092
Reviewed-on: https://go-review.googlesource.com/c/go/+/546916
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
doc/godebug.md
src/crypto/x509/x509.go
src/crypto/x509/x509_test.go
src/internal/godebugs/table.go
src/runtime/metrics/doc.go