| 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 |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/android/scoped_java_ref.h" | 14 #include "base/android/scoped_java_ref.h" |
| 15 #include "base/strings/string_piece.h" | 15 #include "base/strings/string_piece.h" |
| 16 #include "net/base/net_export.h" | 16 #include "net/base/net_export.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // given private_key object. This must *only* be used for RSA private keys on | 70 // given private_key object. This must *only* be used for RSA private keys on |
| 71 // Android < 4.2. Technically, this is only guaranteed to work if the system | 71 // Android < 4.2. Technically, this is only guaranteed to work if the system |
| 72 // image contains a vanilla implementation of the Java API frameworks based on | 72 // image contains a vanilla implementation of the Java API frameworks based on |
| 73 // Harmony + OpenSSL. | 73 // Harmony + OpenSSL. |
| 74 base::android::ScopedJavaLocalRef<jobject> GetOpenSSLEngineForPrivateKey( | 74 base::android::ScopedJavaLocalRef<jobject> GetOpenSSLEngineForPrivateKey( |
| 75 const base::android::JavaRef<jobject>& private_key); | 75 const base::android::JavaRef<jobject>& private_key); |
| 76 | 76 |
| 77 } // namespace android | 77 } // namespace android |
| 78 } // namespace net | 78 } // namespace net |
| 79 | 79 |
| 80 #endif // NET_ANDROID_KEYSTORE_H | 80 #endif // NET_ANDROID_KEYSTORE_H_ |
| OLD | NEW |