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

Side by Side Diff: net/android/keystore.h

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android: Don't require RegisterNatives if there are none Created 4 years, 4 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698