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

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

Issue 2907523002: Add parsing for RFC 5280's PolicyMappings certificate extension. (Closed)
Patch Set: Created 3 years, 7 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/cert/internal/parsed_certificate_unittest.cc » ('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 776372e64d5d24f7c2174347faec3206b36262c8..53f0dd549d0fd67e4d94ae404898bcbad9d17bbf 100644
--- a/net/cert/internal/parsed_certificate.cc
+++ b/net/cert/internal/parsed_certificate.cc
@@ -203,6 +203,23 @@ scoped_refptr<ParsedCertificate> ParsedCertificate::CreateInternal(
return nullptr;
}
}
+
+ // Policy mappings.
+ if (result->GetExtension(PolicyMappingsOid(), &extension)) {
+ result->has_policy_mappings_ = true;
+ if (!ParsePolicyMappings(extension.value, &result->policy_mappings_)) {
+ return nullptr;
+ }
+ }
+
+ // Inhibit Any Policy.
+ if (result->GetExtension(InhibitAnyPolicyOid(), &extension)) {
+ result->has_inhibit_any_policy_ = true;
+ if (!ParseInhibitAnyPolicy(extension.value,
+ &result->inhibit_any_policy_)) {
+ return nullptr;
+ }
+ }
}
return result;
« no previous file with comments | « net/cert/internal/parsed_certificate.h ('k') | net/cert/internal/parsed_certificate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698