]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: add ExtKeyUsage.OID method
authorRoland Shoemaker <roland@golang.org>
Wed, 26 Nov 2025 17:21:13 +0000 (09:21 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 26 Nov 2025 22:21:13 +0000 (14:21 -0800)
commite2cae9ecdf944a1cc5d8803ff8932180858b8ce6
treeb3209a5c7f0e58006e6113ce9c22019194330778
parent623ef2813579c9b52ba4a0335722df4d93566b74
crypto/x509: add ExtKeyUsage.OID method

And OIDFromASN1OID for converting between asn1.ObjectIdentifier and OID.

Fixes #75325

Change-Id: I3b84dce54346d88aab731ffe30d0fef07b014f04
Reviewed-on: https://go-review.googlesource.com/c/go/+/724761
Reviewed-by: Neal Patel <nealpatel@google.com>
Auto-Submit: Roland Shoemaker <roland@golang.org>
Commit-Queue: Neal Patel <nealpatel@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
api/next/75325.txt [new file with mode: 0644]
doc/next/6-stdlib/99-minor/crypto/x509/75325.md [new file with mode: 0644]
src/crypto/x509/oid.go
src/crypto/x509/oid_test.go
src/crypto/x509/x509.go
src/crypto/x509/x509_test.go