go/doc/next/6-stdlib/99-minor/crypto/x509/75325.md
Roland Shoemaker e2cae9ecdf 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>
2025-11-26 14:21:13 -08:00

196 B

The [ExtKeyUsage] type now has an OID method that returns the corresponding OID for the EKU.

The new [OIDFromASN1OID] function allows converting an [encoding/asn1.ObjectIdentifier] into an [OID].