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.
5 #ifndef NET_SSL_SSL_PLATFORM_KEY_H_
6 #define NET_SSL_SSL_PLATFORM_KEY_H_
8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h"
12 class SequencedTaskRunner
;
18 class X509Certificate
;
20 // Looks up the private key from the platform key store corresponding to
21 // |certificate|'s public key and returns an SSLPrivateKey which offloads
22 // signing operations to |task_runner|. |task_runner| is a SequencedTaskRunner
23 // to allow for buggy third-party smartcard drivers.
24 scoped_ptr
<SSLPrivateKey
> FetchClientCertPrivateKey(
25 X509Certificate
* certificate
,
26 scoped_refptr
<base::SequencedTaskRunner
> task_runner
);
30 #endif // NET_SSL_SSL_PLATFORM_KEY_H_