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

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

Issue 2225493003: Don't treat trust anchors as certificates during path building. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address moar feedback Created 4 years, 4 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/cert/internal/path_builder_unittest.cc ('k') | net/cert/internal/trust_store.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/internal/path_builder_verify_certificate_chain_unittest.cc
diff --git a/net/cert/internal/path_builder_verify_certificate_chain_unittest.cc b/net/cert/internal/path_builder_verify_certificate_chain_unittest.cc
index e08ea30895beff8e049380a3b49727176ff180d5..dc9a07eca5636032c3334296577d2591b6e08d0b 100644
--- a/net/cert/internal/path_builder_verify_certificate_chain_unittest.cc
+++ b/net/cert/internal/path_builder_verify_certificate_chain_unittest.cc
@@ -16,15 +16,15 @@ namespace {
class PathBuilderDelegate {
public:
static void Verify(const ParsedCertificateList& chain,
- const ParsedCertificateList& roots,
+ const TrustAnchors& anchors,
const der::GeneralizedTime& time,
bool expected_result) {
SimpleSignaturePolicy signature_policy(1024);
ASSERT_FALSE(chain.empty());
TrustStore trust_store;
- for (const auto& root : roots)
- trust_store.AddTrustedCertificate(root);
+ for (const auto& anchor : anchors)
+ trust_store.AddTrustAnchor(anchor);
CertIssuerSourceStatic intermediate_cert_issuer_source;
for (size_t i = 1; i < chain.size(); ++i)
« no previous file with comments | « net/cert/internal/path_builder_unittest.cc ('k') | net/cert/internal/trust_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698