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

Unified Diff: net/ssl/ssl_platform_key_mac.h

Issue 2898573002: Refactor client cert private key handling. (Closed)
Patch Set: . Created 3 years, 7 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/ssl/ssl_platform_key_mac.h
diff --git a/net/ssl/ssl_platform_key_mac.h b/net/ssl/ssl_platform_key_mac.h
index 71a2316ebd36c26c13606f6b010b1407f0f72074..13386e3b7cdf4f1741abe7e717dc47c004a54b7a 100644
--- a/net/ssl/ssl_platform_key_mac.h
+++ b/net/ssl/ssl_platform_key_mac.h
@@ -15,12 +15,11 @@ namespace net {
class SSLPrivateKey;
class X509Certificate;
-// Returns an SSLPrivateKey backed by the platform private key in |keychain|
-// that corresponds to |certificate|'s public key. If |keychain| is nullptr, the
-// user's default search list is used instead.
+// Returns an SSLPrivateKey backed by the platform private key in |identity|
+// which must correspond to |certificate|'s public key.
NET_EXPORT_PRIVATE scoped_refptr<SSLPrivateKey>
-FetchClientCertPrivateKeyFromKeychain(const X509Certificate* certificate,
- SecKeychainRef keychain);
+CreateSSLPrivateKeyForSecIdentity(const X509Certificate* certificate,
+ SecIdentityRef identity);
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698