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

Unified Diff: net/cert/cert_verify_proc_builtin.cc

Issue 2800993002: Add a key purpose parameter to Certificate PathBuilder. (Closed)
Patch Set: More cast comments 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
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..3790b534e61956bb15cc2339c9f89f12980743b0 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::KEY_PURPOSE_SERVER_AUTH, &result);
// Allow the path builder to discover intermediates from the trust store.
if (trust_store->GetCertIssuerSource())

Powered by Google App Engine
This is Rietveld 408576698