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

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

Issue 2903283002: Add policies support to VerifyCertificateChain(). (Closed)
Patch Set: 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 | « no previous file | net/cert/internal/test_helpers.h » ('j') | net/cert/internal/verify_certificate_chain.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/internal/path_builder.cc
diff --git a/net/cert/internal/path_builder.cc b/net/cert/internal/path_builder.cc
index d1ce0bdbe5db7f8e70425ccf4540aac38b8f9575..57367160f8885e6288683ebf7f9b654d664739f7 100644
--- a/net/cert/internal/path_builder.cc
+++ b/net/cert/internal/path_builder.cc
@@ -604,9 +604,18 @@ void CertPathBuilder::DoGetNextPathComplete() {
// Verify the entire certificate chain.
auto result_path = base::MakeUnique<ResultPath>();
+
+ // TODO(eroman): Make these inputs parameters to the path builder.
+ const bool initial_explicit_policy = false;
+ const std::set<der::Input> user_initial_policy_set{AnyPolicy()};
+ const bool initial_policy_mapping_inhibit = false;
+ const bool initial_any_policy_inhibit = false;
+
VerifyCertificateChain(next_path_.certs, next_path_.last_cert_trust,
signature_policy_, time_, key_purpose_,
- &result_path->errors);
+ initial_explicit_policy, user_initial_policy_set,
+ initial_policy_mapping_inhibit,
+ initial_any_policy_inhibit, &result_path->errors);
bool verify_result = !result_path->errors.ContainsHighSeverityErrors();
DVLOG(1) << "CertPathBuilder VerifyCertificateChain result = "
« no previous file with comments | « no previous file | net/cert/internal/test_helpers.h » ('j') | net/cert/internal/verify_certificate_chain.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698