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

Unified Diff: net/ssl/ssl_platform_key_mac.h

Issue 2566273008: Use SecKeyCreateSignature on macOS 10.12 and later. (Closed)
Patch Set: rsleevi comments Created 4 years 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
« no previous file with comments | « net/ssl/ssl_platform_key_chromecast.cc ('k') | net/ssl/ssl_platform_key_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
new file mode 100644
index 0000000000000000000000000000000000000000..71a2316ebd36c26c13606f6b010b1407f0f72074
--- /dev/null
+++ b/net/ssl/ssl_platform_key_mac.h
@@ -0,0 +1,27 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_SSL_SSL_PLATFORM_KEY_MAC_H_
+#define NET_SSL_SSL_PLATFORM_KEY_MAC_H_
+
+#include <Security/SecBase.h>
+
+#include "base/memory/ref_counted.h"
+#include "net/base/net_export.h"
+
+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.
+NET_EXPORT_PRIVATE scoped_refptr<SSLPrivateKey>
+FetchClientCertPrivateKeyFromKeychain(const X509Certificate* certificate,
+ SecKeychainRef keychain);
+
+} // namespace net
+
+#endif // NET_SSL_SSL_PLATFORM_KEY_MAC_H_
« no previous file with comments | « net/ssl/ssl_platform_key_chromecast.cc ('k') | net/ssl/ssl_platform_key_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698