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

Unified Diff: net/cert/cert_verify_proc_builtin.cc

Issue 2800993002: Add a key purpose parameter to Certificate PathBuilder. (Closed)
Patch Set: rebase Created 3 years, 8 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/BUILD.gn ('k') | net/cert/cert_verify_proc_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/cert_verify_proc_builtin.cc
diff --git a/net/cert/cert_verify_proc_builtin.cc b/net/cert/cert_verify_proc_builtin.cc
index 12b82a4e2dfae29c379a4f0c6ef22a8bedd89493..08a2feed63c5403a9694c5c915ed6e246d47c9f7 100644
--- a/net/cert/cert_verify_proc_builtin.cc
+++ b/net/cert/cert_verify_proc_builtin.cc
@@ -359,7 +359,8 @@ void DoVerify(X509Certificate* input_cert,
// Initialize the path builder.
CertPathBuilder::Result result;
CertPathBuilder path_builder(target, trust_store->GetTrustStore(),
- &signature_policy, verification_time, &result);
+ &signature_policy, verification_time,
+ KeyPurpose::SERVER_AUTH, &result);
// Allow the path builder to discover intermediates from the trust store.
if (trust_store->GetCertIssuerSource())
« no previous file with comments | « net/BUILD.gn ('k') | net/cert/cert_verify_proc_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698