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

Unified Diff: net/ssl/ssl_platform_key_nss.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_mac_unittest.cc ('k') | net/ssl/ssl_platform_key_nss.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ssl/ssl_platform_key_nss.h
diff --git a/net/ssl/ssl_platform_key_nss.h b/net/ssl/ssl_platform_key_nss.h
new file mode 100644
index 0000000000000000000000000000000000000000..d3563a2c38ae0e19916565c0d9cbea6d8b04cd0e
--- /dev/null
+++ b/net/ssl/ssl_platform_key_nss.h
@@ -0,0 +1,31 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_SSL_SSL_PLATFORM_KEY_NSS_H_
+#define NET_SSL_SSL_PLATFORM_KEY_NSS_H_
+
+#include <memory>
+
+#include "base/memory/ref_counted.h"
+#include "net/base/net_export.h"
+
+namespace crypto {
+class CryptoModuleBlockingPasswordDelegate;
+}
+
+namespace net {
+
+class SSLPrivateKey;
+class X509Certificate;
+
+// Returns an SSLPrivateKey backed by the NSS private key that corresponds to
+// |certificate|'s public key. If |password_delegate| is non-null, it will be
+// used to prompt for a password if necessary to unlock a slot.
+NET_EXPORT scoped_refptr<SSLPrivateKey> FetchClientCertPrivateKey(
+ const X509Certificate* certificate,
+ crypto::CryptoModuleBlockingPasswordDelegate* password_delegate);
+
+} // namespace net
+
+#endif // NET_SSL_SSL_PLATFORM_KEY_NSS_H_
« no previous file with comments | « net/ssl/ssl_platform_key_mac_unittest.cc ('k') | net/ssl/ssl_platform_key_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698