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

Unified Diff: net/cert/internal/trust_store_collection.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_collection.cc
diff --git a/net/cert/internal/trust_store_collection.cc b/net/cert/internal/trust_store_collection.cc
index 7e004ae1b726b195f7b0012cfba7ccf25c197dc6..58f4c4df0b19112684172dfc335dc55a6a942439 100644
--- a/net/cert/internal/trust_store_collection.cc
+++ b/net/cert/internal/trust_store_collection.cc
@@ -14,12 +14,22 @@ void TrustStoreCollection::AddTrustStore(TrustStore* store) {
stores_.push_back(store);
}
-void TrustStoreCollection::FindTrustAnchorsForCert(
+void TrustStoreCollection::FindIssuers(
const scoped_refptr<ParsedCertificate>& cert,
- TrustAnchors* matches) const {
+ TrustAnchors* trust_anchors,
+ ParsedCertificateList* intermediates) const {
for (auto* store : stores_) {
- store->FindTrustAnchorsForCert(cert, matches);
+ store->FindIssuers(cert, trust_anchors, intermediates);
}
}
+bool TrustStoreCollection::IsBlacklisted(
+ const scoped_refptr<ParsedCertificate>& cert) const {
+ for (auto* store : stores_) {
+ if (store->IsBlacklisted(cert))
+ return true;
+ }
+ return false;
+}
+
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698