OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_ANDROID_KEYSTORE_H | 5 #ifndef NET_ANDROID_KEYSTORE_H |
6 #define NET_ANDROID_KEYSTORE_H | 6 #define NET_ANDROID_KEYSTORE_H |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 AndroidEVP_PKEY* GetOpenSSLSystemHandleForPrivateKey(jobject private_key); | 94 AndroidEVP_PKEY* GetOpenSSLSystemHandleForPrivateKey(jobject private_key); |
95 | 95 |
96 // Returns a JNI reference to the OpenSSLEngine object which is used to back a | 96 // Returns a JNI reference to the OpenSSLEngine object which is used to back a |
97 // given private_key object. This must *only* be used for RSA private keys on | 97 // given private_key object. This must *only* be used for RSA private keys on |
98 // Android < 4.2. Technically, this is only guaranteed to work if the system | 98 // Android < 4.2. Technically, this is only guaranteed to work if the system |
99 // image contains a vanilla implementation of the Java API frameworks based on | 99 // image contains a vanilla implementation of the Java API frameworks based on |
100 // Harmony + OpenSSL. | 100 // Harmony + OpenSSL. |
101 base::android::ScopedJavaLocalRef<jobject> GetOpenSSLEngineForPrivateKey( | 101 base::android::ScopedJavaLocalRef<jobject> GetOpenSSLEngineForPrivateKey( |
102 jobject private_key); | 102 jobject private_key); |
103 | 103 |
104 // Register JNI methods | |
105 NET_EXPORT bool RegisterKeyStore(JNIEnv* env); | |
106 | |
107 } // namespace android | 104 } // namespace android |
108 } // namespace net | 105 } // namespace net |
109 | 106 |
110 #endif // NET_ANDROID_KEYSTORE_H | 107 #endif // NET_ANDROID_KEYSTORE_H |
OLD | NEW |