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

Unified Diff: net/cert/internal/verify_certificate_chain_pkits_unittest.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/internal/verify_certificate_chain_pkits_unittest.cc
diff --git a/net/cert/internal/verify_certificate_chain_pkits_unittest.cc b/net/cert/internal/verify_certificate_chain_pkits_unittest.cc
index e8279104d2f76c207a47c3f1e23061c41537427d..860ae3e2a1e92c1e463dbc6bec42ea19b2e5d9c2 100644
--- a/net/cert/internal/verify_certificate_chain_pkits_unittest.cc
+++ b/net/cert/internal/verify_certificate_chain_pkits_unittest.cc
@@ -80,8 +80,9 @@ class VerifyCertificateChainPkitsTestDelegate {
der::GeneralizedTime time = {2011, 4, 15, 0, 0, 0};
CertPathErrors path_errors;
- bool result = VerifyCertificateChain(input_chain, trust_anchor.get(),
- &signature_policy, time, &path_errors);
+ bool result = VerifyCertificateChain(
+ input_chain, trust_anchor.get(), &signature_policy, time,
+ KeyPurpose::KEY_PURPOSE_ANY, &path_errors);
// TODO(crbug.com/634443): Test errors on failure?
EXPECT_EQ(result, !path_errors.ContainsHighSeverityErrors());

Powered by Google App Engine
This is Rietveld 408576698