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

Unified Diff: net/cert/internal/trust_store_mac.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_mac.cc
diff --git a/net/cert/internal/trust_store_mac.cc b/net/cert/internal/trust_store_mac.cc
index ba31ffb1d59d6e743a237e6a61d491fa0915a4c0..960921e11ffa3bd961c69568be61a38d3ef5b647 100644
--- a/net/cert/internal/trust_store_mac.cc
+++ b/net/cert/internal/trust_store_mac.cc
@@ -227,12 +227,19 @@ TrustStoreMac::TrustStoreMac(CFTypeRef policy_oid)
TrustStoreMac::~TrustStoreMac() = default;
-void TrustStoreMac::FindTrustAnchorsForCert(
- const scoped_refptr<ParsedCertificate>& cert,
- TrustAnchors* out_anchors) const {
+void TrustStoreMac::FindIssuers(const scoped_refptr<ParsedCertificate>& cert,
+ TrustAnchors* trust_anchors,
+ ParsedCertificateList* intermediates) const {
base::ScopedCFTypeRef<CFDataRef> name_data = GetMacNormalizedIssuer(cert);
- FindTrustAnchorsByMacNormalizedSubject(name_data, out_anchors);
+ FindTrustAnchorsByMacNormalizedSubject(name_data, trust_anchors);
+ // TODO(eroman): Look for intermediates.
+}
+
+bool TrustStoreMac::IsBlacklisted(
+ const scoped_refptr<ParsedCertificate>& cert) const {
+ return false;
+ // TODO(eroman): Implement.
}
// static

Powered by Google App Engine
This is Rietveld 408576698