| // Copyright 2015 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_H_ |
| #define NET_SSL_SSL_PLATFORM_KEY_H_ |
| |
| #include <memory> |
| |
| #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 that corresponds |
| // to |certificate|'s public key. If |keychain| is nullptr, the process's |
| // default search list is used instead. |
| NET_EXPORT scoped_refptr<SSLPrivateKey> FetchClientCertPrivateKey( |
| const X509Certificate* certificate); |
| |
| } // namespace net |
| |
| #endif // NET_SSL_SSL_PLATFORM_KEY_H_ |