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 #include "net/android/keystore.h" | 5 #include "net/android/keystore.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
10 #include "base/android/jni_array.h" | 10 #include "base/android/jni_array.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 } | 90 } |
91 | 91 |
92 ScopedJavaLocalRef<jobject> GetOpenSSLEngineForPrivateKey( | 92 ScopedJavaLocalRef<jobject> GetOpenSSLEngineForPrivateKey( |
93 jobject private_key_ref) { | 93 jobject private_key_ref) { |
94 JNIEnv* env = AttachCurrentThread(); | 94 JNIEnv* env = AttachCurrentThread(); |
95 ScopedJavaLocalRef<jobject> engine = | 95 ScopedJavaLocalRef<jobject> engine = |
96 Java_AndroidKeyStore_getOpenSSLEngineForPrivateKey(env, private_key_ref); | 96 Java_AndroidKeyStore_getOpenSSLEngineForPrivateKey(env, private_key_ref); |
97 return engine; | 97 return engine; |
98 } | 98 } |
99 | 99 |
100 bool RegisterKeyStore(JNIEnv* env) { | |
101 return RegisterNativesImpl(env); | |
102 } | |
103 | |
104 } // namespace android | 100 } // namespace android |
105 } // namespace net | 101 } // namespace net |
OLD | NEW |