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 | 9 |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/string_piece.h" | 14 #include "base/strings/string_piece.h" |
15 #include "net/base/net_export.h" | 15 #include "net/base/net_export.h" |
16 #include "net/ssl/ssl_client_cert_type.h" | 16 #include "net/ssl/ssl_client_cert_type.h" |
17 | 17 |
18 // Avoid including <openssl/evp.h> here. | 18 // Avoid including <openssl/evp.h> here. |
19 typedef struct evp_pkey_st EVP_PKEY; | 19 typedef struct evp_pkey_st EVP_PKEY; |
20 | 20 |
21 // Misc functions to access the Android platform KeyStore. | 21 // Misc functions to access the Android platform KeyStore. |
22 | 22 |
23 namespace net { | 23 namespace net { |
24 namespace android { | 24 namespace android { |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 // the returned key's reference count. | 108 // the returned key's reference count. |
109 EVP_PKEY* GetOpenSSLSystemHandleForPrivateKey(jobject private_key); | 109 EVP_PKEY* GetOpenSSLSystemHandleForPrivateKey(jobject private_key); |
110 | 110 |
111 // Register JNI methods | 111 // Register JNI methods |
112 NET_EXPORT bool RegisterKeyStore(JNIEnv* env); | 112 NET_EXPORT bool RegisterKeyStore(JNIEnv* env); |
113 | 113 |
114 } // namespace android | 114 } // namespace android |
115 } // namespace net | 115 } // namespace net |
116 | 116 |
117 #endif // NET_ANDROID_KEYSTORE_H | 117 #endif // NET_ANDROID_KEYSTORE_H |
OLD | NEW |