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

Unified Diff: net/cert/internal/trust_store.h

Issue 1923433002: Certificate path builder for new certificate verification library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changes for review comment #20 Created 4 years, 6 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/trust_store.h
diff --git a/net/cert/internal/trust_store.h b/net/cert/internal/trust_store.h
index 611af1c40a3565ec3cc48a82dd7fead963669ec6..0afbf9a425be72cedf2b92e3b69697175ca04973 100644
--- a/net/cert/internal/trust_store.h
+++ b/net/cert/internal/trust_store.h
@@ -11,6 +11,7 @@
#include "base/memory/ref_counted.h"
#include "base/strings/string_piece.h"
#include "net/base/net_export.h"
+#include "net/cert/internal/parsed_certificate.h"
namespace net {
@@ -18,8 +19,6 @@ namespace der {
class Input;
}
-class ParsedCertificate;
-
// A very simple implementation of a TrustStore, which contains a set of
// trusted certificates.
// TODO(mattm): convert this into an interface, provide implementations that
@@ -36,9 +35,8 @@ class NET_EXPORT TrustStore {
void AddTrustedCertificate(scoped_refptr<ParsedCertificate> anchor);
// Returns the trust anchors that match |name| in |*matches|, if any.
- void FindTrustAnchorsByNormalizedName(
- const der::Input& normalized_name,
- std::vector<scoped_refptr<ParsedCertificate>>* matches) const;
+ void FindTrustAnchorsByNormalizedName(const der::Input& normalized_name,
+ ParsedCertificateList* matches) const;
// Returns true if |cert| matches a certificate in the TrustStore.
bool IsTrustedCertificate(const ParsedCertificate* cert) const
« no previous file with comments | « net/cert/internal/path_builder_verify_certificate_chain_unittest.cc ('k') | net/cert/internal/trust_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698