OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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_H_ | 5 #ifndef NET_SSL_SSL_PLATFORM_KEY_H_ |
6 #define NET_SSL_SSL_PLATFORM_KEY_H_ | 6 #define NET_SSL_SSL_PLATFORM_KEY_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/lazy_instance.h" | |
11 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
12 #include "net/base/net_export.h" | 11 #include "net/base/net_export.h" |
13 | 12 |
14 namespace base { | |
15 class SequencedTaskRunner; | |
16 } | |
17 | |
18 namespace net { | 13 namespace net { |
19 | 14 |
20 class SSLPrivateKey; | 15 class SSLPrivateKey; |
21 class X509Certificate; | 16 class X509Certificate; |
22 | 17 |
23 // Looks up the private key from the platform key store corresponding to | 18 // Looks up the private key from the platform key store corresponding to |
24 // |certificate|'s public key and returns an SSLPrivateKey backed by the | 19 // |certificate|'s public key and returns an SSLPrivateKey backed by the |
25 // playform key. | 20 // playform key. |
26 NET_EXPORT scoped_refptr<SSLPrivateKey> FetchClientCertPrivateKey( | 21 NET_EXPORT scoped_refptr<SSLPrivateKey> FetchClientCertPrivateKey( |
27 X509Certificate* certificate); | 22 X509Certificate* certificate); |
28 | 23 |
29 } // namespace net | 24 } // namespace net |
30 | 25 |
31 #endif // NET_SSL_SSL_PLATFORM_KEY_H_ | 26 #endif // NET_SSL_SSL_PLATFORM_KEY_H_ |
OLD | NEW |