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

Unified Diff: net/ssl/ssl_platform_key_win.h

Issue 2898573002: Refactor client cert private key handling. (Closed)
Patch Set: removed no longer needed forward declaration Created 3 years, 6 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/ssl/ssl_platform_key_nss_unittest.cc ('k') | net/ssl/ssl_platform_key_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ssl/ssl_platform_key_win.h
diff --git a/net/ssl/ssl_platform_key_win.h b/net/ssl/ssl_platform_key_win.h
index a5f6455d8635fa48286d60a7f9efd281cf51ebd6..d42cba8f57c60bc8862b6cccd4fe9d302ef66c52 100644
--- a/net/ssl/ssl_platform_key_win.h
+++ b/net/ssl/ssl_platform_key_win.h
@@ -19,6 +19,12 @@ namespace net {
class SSLPrivateKey;
class X509Certificate;
+// Returns an SSLPrivateKey backed by the platform private key for
+// |cert_context| which must correspond to |certificate|.
+scoped_refptr<SSLPrivateKey> FetchClientCertPrivateKey(
+ const X509Certificate* certificate,
+ PCCERT_CONTEXT cert_context);
+
// Returns an SSLPrivateKey backed by |prov| and |key_spec|, which must
// correspond to |certificate|'s public key. Takes ownership of |prov|.
NET_EXPORT_PRIVATE scoped_refptr<SSLPrivateKey> WrapCAPIPrivateKey(
« no previous file with comments | « net/ssl/ssl_platform_key_nss_unittest.cc ('k') | net/ssl/ssl_platform_key_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698