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

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

Issue 2923903002: Reject certificates that contain unknown policy qualifiers if the (Closed)
Patch Set: update ios files Created 3 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/certificate_policies_unittest.cc ('k') | net/cert/internal/verify_certificate_chain.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 53f0dd549d0fd67e4d94ae404898bcbad9d17bbf..c8cd67ecebbb06c4b63135f56c6996c428d28b9d 100644
--- a/net/cert/internal/parsed_certificate.cc
+++ b/net/cert/internal/parsed_certificate.cc
@@ -189,8 +189,9 @@ scoped_refptr<ParsedCertificate> ParsedCertificate::CreateInternal(
// Policies.
if (result->GetExtension(CertificatePoliciesOid(), &extension)) {
result->has_policy_oids_ = true;
- if (!ParseCertificatePoliciesExtension(extension.value,
- &result->policy_oids_)) {
+ if (!ParseCertificatePoliciesExtension(
+ extension.value, false /*fail_parsing_unknown_qualifier_oids*/,
+ &result->policy_oids_)) {
return nullptr;
}
}
« no previous file with comments | « net/cert/internal/certificate_policies_unittest.cc ('k') | net/cert/internal/verify_certificate_chain.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698