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

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

Issue 2832703002: Allow the TrustStore interface to return matching intermediates, and identify distrusted certs. (Closed)
Patch Set: address comments 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.h
diff --git a/net/cert/internal/trust_store_mac.h b/net/cert/internal/trust_store_mac.h
index 1c99b9008d815090305ed826f38a1030d4c126e2..666da7189c0aa13a07d8651109080599e11870a6 100644
--- a/net/cert/internal/trust_store_mac.h
+++ b/net/cert/internal/trust_store_mac.h
@@ -31,8 +31,10 @@ class NET_EXPORT TrustStoreMac : public TrustStore {
~TrustStoreMac() override;
// TrustStore implementation:
- void FindTrustAnchorsForCert(const scoped_refptr<ParsedCertificate>& cert,
- TrustAnchors* matches) const override;
+ void SyncGetIssuersOf(const ParsedCertificate* cert,
+ ParsedCertificateList* issuers) override;
+ void GetTrust(const scoped_refptr<ParsedCertificate>& cert,
+ CertificateTrust* trust) const override;
private:
FRIEND_TEST_ALL_PREFIXES(TrustStoreMacTest, MultiRootNotTrusted);
@@ -48,12 +50,7 @@ class NET_EXPORT TrustStoreMac : public TrustStore {
// comparing, roughly similar to RFC3280's normalization scheme. The
// normalized form is used for any database lookups and comparisons.
static base::ScopedCFTypeRef<CFDataRef> GetMacNormalizedIssuer(
- const scoped_refptr<ParsedCertificate>& cert);
-
- // Finds trust anchors with the Subject |name_data|, which should be
- // normalized as by the OS.
- void FindTrustAnchorsByMacNormalizedSubject(CFDataRef name_data,
- TrustAnchors* matches) const;
+ const ParsedCertificate* cert);
const CFStringRef policy_oid_;

Powered by Google App Engine
This is Rietveld 408576698