OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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_NSS_H_ |
| 6 #define NET_SSL_SSL_PLATFORM_KEY_NSS_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 #include "base/memory/ref_counted.h" |
| 11 #include "net/base/net_export.h" |
| 12 |
| 13 namespace crypto { |
| 14 class CryptoModuleBlockingPasswordDelegate; |
| 15 } |
| 16 |
| 17 namespace net { |
| 18 |
| 19 class SSLPrivateKey; |
| 20 class X509Certificate; |
| 21 |
| 22 // Returns an SSLPrivateKey backed by the NSS private key that corresponds to |
| 23 // |certificate|'s public key. If |password_delegate| is non-null, it will be |
| 24 // used to prompt for a password if necessary to unlock a slot. |
| 25 NET_EXPORT scoped_refptr<SSLPrivateKey> FetchClientCertPrivateKey( |
| 26 const X509Certificate* certificate, |
| 27 crypto::CryptoModuleBlockingPasswordDelegate* password_delegate); |
| 28 |
| 29 } // namespace net |
| 30 |
| 31 #endif // NET_SSL_SSL_PLATFORM_KEY_NSS_H_ |
OLD | NEW |