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

Side by Side Diff: net/ssl/ssl_platform_key_mac.h

Issue 2898573002: Refactor client cert private key handling. (Closed)
Patch Set: removed no longer needed forward declaration Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « net/ssl/ssl_platform_key_chromecast_unittest.cc ('k') | net/ssl/ssl_platform_key_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_SSL_SSL_PLATFORM_KEY_MAC_H_ 5 #ifndef NET_SSL_SSL_PLATFORM_KEY_MAC_H_
6 #define NET_SSL_SSL_PLATFORM_KEY_MAC_H_ 6 #define NET_SSL_SSL_PLATFORM_KEY_MAC_H_
7 7
8 #include <Security/SecBase.h> 8 #include <Security/SecBase.h>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "net/base/net_export.h" 11 #include "net/base/net_export.h"
12 12
13 namespace net { 13 namespace net {
14 14
15 class SSLPrivateKey; 15 class SSLPrivateKey;
16 class X509Certificate; 16 class X509Certificate;
17 17
18 // Returns an SSLPrivateKey backed by the platform private key in |keychain| 18 // Returns an SSLPrivateKey backed by the platform private key in |identity|
19 // that corresponds to |certificate|'s public key. If |keychain| is nullptr, the 19 // which must correspond to |certificate|'s public key.
20 // user's default search list is used instead. 20 NET_EXPORT scoped_refptr<SSLPrivateKey> CreateSSLPrivateKeyForSecIdentity(
21 NET_EXPORT_PRIVATE scoped_refptr<SSLPrivateKey> 21 const X509Certificate* certificate,
22 FetchClientCertPrivateKeyFromKeychain(const X509Certificate* certificate, 22 SecIdentityRef identity);
23 SecKeychainRef keychain);
24 23
25 } // namespace net 24 } // namespace net
26 25
27 #endif // NET_SSL_SSL_PLATFORM_KEY_MAC_H_ 26 #endif // NET_SSL_SSL_PLATFORM_KEY_MAC_H_
OLDNEW
« no previous file with comments | « net/ssl/ssl_platform_key_chromecast_unittest.cc ('k') | net/ssl/ssl_platform_key_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698