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

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

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/parsed_certificate.h ('k') | net/data/cert_issuer_source_aia_unittest/generate-certs.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/internal/parsed_certificate.cc
diff --git a/net/cert/internal/parsed_certificate.cc b/net/cert/internal/parsed_certificate.cc
index 0f836b20eccf3471ac6bff4b08c1f47ad686ceaf..8ea860f3c94a95d1e6e267cbb1781ad85217594c 100644
--- a/net/cert/internal/parsed_certificate.cc
+++ b/net/cert/internal/parsed_certificate.cc
@@ -126,6 +126,17 @@ scoped_refptr<ParsedCertificate> ParsedCertificate::CreateFromCertificateData(
return nullptr;
}
+ // Authority information access.
+ if (ConsumeExtension(AuthorityInfoAccessOid(),
+ &result->unparsed_extensions_,
+ &result->authority_info_access_extension_)) {
+ result->has_authority_info_access_ = true;
+ if (!ParseAuthorityInfoAccess(
+ result->authority_info_access_extension_.value,
+ &result->ca_issuers_uris_, &result->ocsp_uris_))
+ return nullptr;
+ }
+
// NOTE: if additional extensions are consumed here, the verification code
// must be updated to process those extensions, since the
// VerifyNoUnconsumedCriticalExtensions uses the unparsed_extensions_
« no previous file with comments | « net/cert/internal/parsed_certificate.h ('k') | net/data/cert_issuer_source_aia_unittest/generate-certs.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698