Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef NET_SSL_SSL_PLATFORM_KEY_MAC_H_ | |
| 6 #define NET_SSL_SSL_PLATFORM_KEY_MAC_H_ | |
| 7 | |
| 8 #include <Security/SecBase.h> | |
| 9 | |
| 10 #include "base/memory/ref_counted.h" | |
| 11 #include "net/base/net_export.h" | |
| 12 | |
| 13 namespace net { | |
| 14 | |
| 15 class SSLPrivateKey; | |
| 16 class X509Certificate; | |
| 17 | |
| 18 // Looks up the private key from |keychain| corresponding to |certificate|'s | |
| 19 // public key and returns an SSLPrivateKey backed by the playform key. If | |
|
Ryan Sleevi
2016/12/13 22:21:07
// Returns an SSLPrivateKey backed by the platform
davidben
2016/12/14 00:59:43
Done. Also updated the ssl_platform_key.h copy.
| |
| 20 // |keychain| is nullptr, the user's default search list is used instead. | |
|
Ryan Sleevi
2016/12/13 22:21:07
s/the user's/the process's/ ?
davidben
2016/12/14 00:59:43
Done.
| |
| 21 NET_EXPORT_PRIVATE scoped_refptr<SSLPrivateKey> | |
|
Ryan Sleevi
2016/12/13 22:21:07
Any documentation about threading?
e.g.
"Note: T
davidben
2016/12/14 00:59:43
Unfortunately, this is currently called on the IO
| |
| 22 FetchClientCertPrivateKeyFromKeychain(X509Certificate* certificate, | |
|
Ryan Sleevi
2016/12/13 22:21:07
nit: const?
davidben
2016/12/14 00:59:43
Done.
| |
| 23 SecKeychainRef keychain); | |
| 24 | |
| 25 } // namespace net | |
| 26 | |
| 27 #endif // NET_SSL_SSL_PLATFORM_KEY_MAC_H_ | |
| OLD | NEW |