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

Unified Diff: net/tools/cert_verify_tool/verify_using_path_builder.cc

Issue 2535733003: pki library: Add CertIssuerSourceNSS that retrieves intermediate certs from NSS. (Closed)
Patch Set: review changes Created 4 years, 1 month 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/net.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/cert_verify_tool/verify_using_path_builder.cc
diff --git a/net/tools/cert_verify_tool/verify_using_path_builder.cc b/net/tools/cert_verify_tool/verify_using_path_builder.cc
index 3e9d653bb05dce89de616a67e0d2bd69b4c063e1..adaf5fe5d81aab62aa3d1b15f25d57e62acc3d14 100644
--- a/net/tools/cert_verify_tool/verify_using_path_builder.cc
+++ b/net/tools/cert_verify_tool/verify_using_path_builder.cc
@@ -28,6 +28,7 @@
#if defined(USE_NSS_CERTS)
#include "base/threading/thread_task_runner_handle.h"
+#include "net/cert/internal/cert_issuer_source_nss.h"
#include "net/cert/internal/trust_store_nss.h"
#endif
@@ -273,6 +274,10 @@ bool VerifyUsingPathBuilder(
net::CertPathBuilder path_builder(target_cert, &trust_store,
&signature_policy, time, &result);
path_builder.AddCertIssuerSource(&intermediate_cert_issuer_source);
+#if defined(USE_NSS_CERTS)
+ net::CertIssuerSourceNSS cert_issuer_source_nss;
+ path_builder.AddCertIssuerSource(&cert_issuer_source_nss);
+#endif
// Initialize an AIA fetcher, that uses a separate thread for running the
// networking message loop.
« no previous file with comments | « net/net.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698