Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(327)

Side by Side Diff: net/ssl/ssl_platform_key.h

Issue 1422573008: Plumbing SSLPrivateKey (//net) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing un-needed forward decl. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/ssl/ssl_config.h ('k') | net/ssl/ssl_platform_key_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/lazy_instance.h"
8 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "net/base/net_export.h"
10 12
11 namespace base { 13 namespace base {
12 class SequencedTaskRunner; 14 class SequencedTaskRunner;
13 } 15 }
14 16
15 namespace net { 17 namespace net {
16 18
17 class SSLPrivateKey; 19 class SSLPrivateKey;
18 class X509Certificate; 20 class X509Certificate;
19 21
20 // Looks up the private key from the platform key store corresponding to 22 // Looks up the private key from the platform key store corresponding to
21 // |certificate|'s public key and returns an SSLPrivateKey which offloads 23 // |certificate|'s public key and returns an SSLPrivateKey backed by the
22 // signing operations to |task_runner|. |task_runner| is a SequencedTaskRunner 24 // playform key.
23 // to allow for buggy third-party smartcard drivers. 25 NET_EXPORT scoped_refptr<SSLPrivateKey> FetchClientCertPrivateKey(
24 scoped_ptr<SSLPrivateKey> FetchClientCertPrivateKey( 26 X509Certificate* certificate);
25 X509Certificate* certificate,
26 scoped_refptr<base::SequencedTaskRunner> task_runner);
27 27
28 } // namespace net 28 } // namespace net
29 29
30 #endif // NET_SSL_SSL_PLATFORM_KEY_H_ 30 #endif // NET_SSL_SSL_PLATFORM_KEY_H_
OLDNEW
« no previous file with comments | « net/ssl/ssl_config.h ('k') | net/ssl/ssl_platform_key_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698