mirror of
https://github.com/golang/go
synced 2024-11-26 14:56:18 +00:00
e8d9561997
Implement support for parsing the various policy related extensions, and for validating the policy graph for chains. Policy validation is only run if VerifyOptions.CertificatePolicies is set. Policy validation is run after chains are built. If the computed policy graph for a chain is invalid, the chain is removed from the set of returned chains. This implements the RFC 5280 algorithm as updated by RFC 9618 [0]. Fixes #68484 [0] https://www.rfc-editor.org/rfc/rfc9618.html Change-Id: I576432a47ddc404cba966c2b1995365944b8bd26 Reviewed-on: https://go-review.googlesource.com/c/go/+/628616 Auto-Submit: Roland Shoemaker <roland@golang.org> Reviewed-by: Filippo Valsorda <filippo@golang.org> Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Daniel McCarney <daniel@binaryparadox.net> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
14 lines
916 B
Plaintext
14 lines
916 B
Plaintext
pkg crypto/x509, type Certificate struct, InhibitAnyPolicy int #68484
|
|
pkg crypto/x509, type Certificate struct, InhibitAnyPolicyZero bool #68484
|
|
pkg crypto/x509, type Certificate struct, InhibitPolicyMapping int #68484
|
|
pkg crypto/x509, type Certificate struct, InhibitPolicyMappingZero bool #68484
|
|
pkg crypto/x509, type Certificate struct, PolicyMappings []PolicyMapping #68484
|
|
pkg crypto/x509, type Certificate struct, RequireExplicitPolicy int #68484
|
|
pkg crypto/x509, type Certificate struct, RequireExplicitPolicyZero bool #68484
|
|
pkg crypto/x509, type PolicyMapping struct #68484
|
|
pkg crypto/x509, type PolicyMapping struct, IssuerDomainPolicy OID #68484
|
|
pkg crypto/x509, type PolicyMapping struct, SubjectDomainPolicy OID #68484
|
|
pkg crypto/x509, type VerifyOptions struct, CertificatePolicies []OID #68484
|
|
pkg crypto/x509, const NoValidChains = 10 #68484
|
|
pkg crypto/x509, const NoValidChains InvalidReason #68484
|