Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1307)

Unified Diff: net/cert/internal/parsed_certificate.h

Issue 2036033002: Add CertIssuerSourceAia: authorityInfoAccess fetching for CertPathBuilder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cert-parsing-path-building
Patch Set: remove orphaned kw_args change, remove g_cur_path_id change from this cl Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/cert/internal/parse_certificate_fuzzer.cc ('k') | net/cert/internal/parsed_certificate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/internal/parsed_certificate.h
diff --git a/net/cert/internal/parsed_certificate.h b/net/cert/internal/parsed_certificate.h
index 7c9ae3cba75508c4957b7dbb7128bb0514a0059f..0f960e2aa022192b2a9251168c7ed46e03727e22 100644
--- a/net/cert/internal/parsed_certificate.h
+++ b/net/cert/internal/parsed_certificate.h
@@ -152,6 +152,22 @@ class NET_EXPORT ParsedCertificate
return *name_constraints_;
}
+ // Returns true if the certificate has an AuthorityInfoAccess extension.
+ bool has_authority_info_access() const { return has_authority_info_access_; }
+
+ // Returns the ParsedExtension struct for the AuthorityInfoAccess extension.
+ const ParsedExtension& authority_info_access_extension() const {
+ return authority_info_access_extension_;
+ }
+
+ // Returns any caIssuers URIs from the AuthorityInfoAccess extension.
+ const std::vector<base::StringPiece>& ca_issuers_uris() const {
+ return ca_issuers_uris_;
+ }
+
+ // Returns any OCSP URIs from the AuthorityInfoAccess extension.
+ const std::vector<base::StringPiece>& ocsp_uris() const { return ocsp_uris_; }
+
// Returns a map of unhandled extensions (excludes the ones above).
const ExtensionsMap& unparsed_extensions() const {
return unparsed_extensions_;
@@ -202,6 +218,15 @@ class NET_EXPORT ParsedCertificate
// NameConstraints extension.
std::unique_ptr<NameConstraints> name_constraints_;
+ // AuthorityInfoAccess extension.
+ bool has_authority_info_access_ = false;
+ ParsedExtension authority_info_access_extension_;
+ // CaIssuers and Ocsp URIs parsed from the AuthorityInfoAccess extension. Note
+ // that the AuthorityInfoAccess may have contained other AccessDescriptions
+ // which are not represented here.
+ std::vector<base::StringPiece> ca_issuers_uris_;
+ std::vector<base::StringPiece> ocsp_uris_;
+
// The remaining extensions (excludes the standard ones above).
ExtensionsMap unparsed_extensions_;
« no previous file with comments | « net/cert/internal/parse_certificate_fuzzer.cc ('k') | net/cert/internal/parsed_certificate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698