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

Unified Diff: net/ssl/openssl_platform_key.h

Issue 396803002: Implement TLS client auth in the OS X OpenSSL port. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DISALLOW_COPY_AND_ASSIGN Created 6 years, 5 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
Index: net/ssl/openssl_platform_key.h
diff --git a/net/ssl/openssl_platform_key.h b/net/ssl/openssl_platform_key.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c695f6dc479aa4ceb75a1c7a7f7e06210e64609
--- /dev/null
+++ b/net/ssl/openssl_platform_key.h
@@ -0,0 +1,26 @@
+// Copyright 2014 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_OPENSSL_PLATFORM_KEY_H_
+#define NET_SSL_OPENSSL_PLATFORM_KEY_H_
+
+#include "crypto/scoped_openssl_types.h"
+
+namespace net {
+
+class X509Certificate;
+
+// Looks up the private key from the platform key store corresponding
+// to |certificate|'s public key. Then wraps it in an OpenSSL EVP_PKEY
+// structure to be used for SSL client auth.
+//
+// TODO(davidben): This combines looking up a private key with
+// wrapping it in an OpenSSL structure. This will be separated with
+// https://crbug.com/394131
+crypto::ScopedEVP_PKEY FetchClientCertPrivateKey(
+ const X509Certificate* certificate);
+
+} // namespace net
+
+#endif // NET_SSL_OPENSSL_PLATFORM_KEY_H_

Powered by Google App Engine
This is Rietveld 408576698