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

Unified Diff: net/ssl/ssl_platform_key_test.h

Issue 1639463003: Use SSLPrivateKey for testing client authentication (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding header. Created 4 years, 11 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/ssl_platform_key_test.h
diff --git a/net/ssl/ssl_platform_key_test.h b/net/ssl/ssl_platform_key_test.h
new file mode 100644
index 0000000000000000000000000000000000000000..8dca06965225f2182cd3ab3d859b26cfa70ad1ec
--- /dev/null
+++ b/net/ssl/ssl_platform_key_test.h
@@ -0,0 +1,26 @@
+// Copyright 2016 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_TEST_H_
+#define NET_SSL_SSL_PLATFORM_KEY_TEST_H_
davidben 2016/01/28 22:24:10 Maybe test_ssl_private_key.h or ssl_private_key_op
svaldez 2016/01/29 17:19:30 Done.
+
+#include <openssl/digest.h>
davidben 2016/01/28 22:24:10 Not used?
svaldez 2016/01/29 17:19:30 Done.
+#include <openssl/evp.h>
+
+#include "base/memory/ref_counted.h"
+#include "crypto/scoped_openssl_types.h"
+#include "net/base/net_export.h"
+
+namespace net {
+
+class SSLPrivateKey;
+
+// Returns a new SSLPrivateKey which uses |key| for signing operations or
+// nullptr on error.
+NET_EXPORT scoped_refptr<SSLPrivateKey> WrapOpenSSLPrivateKey(
+ crypto::ScopedEVP_PKEY key);
+
+} // namespace net
+
+#endif // NET_SSL_SSL_PLATFORM_KEY_TEST_H_

Powered by Google App Engine
This is Rietveld 408576698