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

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

Issue 2832703002: Allow the TrustStore interface to return matching intermediates, and identify distrusted certs. (Closed)
Patch Set: mac fix 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/trust_store_in_memory.cc
diff --git a/net/cert/internal/trust_store_in_memory.cc b/net/cert/internal/trust_store_in_memory.cc
index a3e9e3eea07497f7f49da3e881a6659f2f9efc43..75d62071d6e84eea31790699604dbdaefcc04c37 100644
--- a/net/cert/internal/trust_store_in_memory.cc
+++ b/net/cert/internal/trust_store_in_memory.cc
@@ -19,12 +19,18 @@ void TrustStoreInMemory::AddTrustAnchor(scoped_refptr<TrustAnchor> anchor) {
std::move(anchor)));
}
-void TrustStoreInMemory::FindTrustAnchorsForCert(
+void TrustStoreInMemory::FindIssuers(
const scoped_refptr<ParsedCertificate>& cert,
- TrustAnchors* matches) const {
+ TrustAnchors* trust_anchors,
+ ParsedCertificateList* intermediates) const {
auto range = anchors_.equal_range(cert->normalized_issuer().AsStringPiece());
for (auto it = range.first; it != range.second; ++it)
- matches->push_back(it->second);
+ trust_anchors->push_back(it->second);
+}
+
+bool TrustStoreInMemory::IsBlacklisted(
+ const scoped_refptr<ParsedCertificate>& cert) const {
+ return false;
}
bool TrustStoreInMemory::Contains(const TrustAnchor* anchor) const {

Powered by Google App Engine
This is Rietveld 408576698