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

Unified Diff: components/cast_certificate/cast_crl.cc

Issue 2898303005: Wire up certificate policies support in PathBuilder. (Closed)
Patch Set: remove extra space 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 | « components/cast_certificate/cast_cert_validator.cc ('k') | net/cert/cert_verify_proc_builtin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cast_certificate/cast_crl.cc
diff --git a/components/cast_certificate/cast_crl.cc b/components/cast_certificate/cast_crl.cc
index e8e0595892d7642602efadc9acb979e143f9a376..4f57a9059e39f61b3a402e7697218b72d2b62bbb 100644
--- a/components/cast_certificate/cast_crl.cc
+++ b/components/cast_certificate/cast_crl.cc
@@ -142,9 +142,11 @@ bool VerifyCRL(const Crl& crl,
return false;
}
net::CertPathBuilder::Result result;
- net::CertPathBuilder path_builder(parsed_cert.get(), trust_store,
- signature_policy.get(), verification_time,
- net::KeyPurpose::ANY_EKU, &result);
+ net::CertPathBuilder path_builder(
+ parsed_cert.get(), trust_store, signature_policy.get(), verification_time,
+ net::KeyPurpose::ANY_EKU, net::InitialExplicitPolicy::kFalse,
+ {net::AnyPolicy()}, net::InitialPolicyMappingInhibit::kFalse,
+ net::InitialAnyPolicyInhibit::kFalse, &result);
path_builder.Run();
if (!result.HasValidPath()) {
VLOG(2) << "CRL - Issuer certificate verification failed.";
« no previous file with comments | « components/cast_certificate/cast_cert_validator.cc ('k') | net/cert/cert_verify_proc_builtin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698