mirror of
https://github.com/golang/go.git
synced 2025-12-07 13:50:04 +00:00
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>
196 B
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].