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

Unified Diff: net/ssl/ssl_platform_key_android.h

Issue 1640833002: Android SSLPrivateKey Work (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix rebase. 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
« no previous file with comments | « chrome/browser/ui/android/ssl_client_certificate_request.cc ('k') | net/ssl/ssl_platform_key_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ssl/ssl_platform_key_android.h
diff --git a/net/ssl/ssl_platform_key_android.h b/net/ssl/ssl_platform_key_android.h
index bc73a7b402677265649c17e82cd877bba386d037..cdfb108f18700ac59fe4b8c9bd18ef5b1b65613c 100644
--- a/net/ssl/ssl_platform_key_android.h
+++ b/net/ssl/ssl_platform_key_android.h
@@ -5,17 +5,19 @@
#ifndef NET_SSL_SSL_PLATFORM_KEY_ANDROID_H_
#define NET_SSL_SSL_PLATFORM_KEY_ANDROID_H_
+#include <jni.h>
+
#include "base/memory/ref_counted.h"
-#include "crypto/scoped_openssl_types.h"
#include "net/base/net_export.h"
namespace net {
class SSLPrivateKey;
-// Wraps a ScopedEVP_PKEY into an SSLPrivateKey.
-NET_EXPORT scoped_refptr<SSLPrivateKey> WrapOpenSSLPrivateKey(
- crypto::ScopedEVP_PKEY key);
+// Returns a new SSLPrivateKey that uses the underlying java object |key| for
+// signing operations or nullptr on an error. |key| must be a
+// java.security.PrivateKey object.
+NET_EXPORT scoped_refptr<SSLPrivateKey> WrapJavaPrivateKey(jobject key);
} // namespace net
« no previous file with comments | « chrome/browser/ui/android/ssl_client_certificate_request.cc ('k') | net/ssl/ssl_platform_key_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698