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

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

Issue 108653013: Export verified_cert and public_key_hashes on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Enable more tests. Created 7 years 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 | Annotate | Revision Log
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_CERT_VERIFY_RESULT_ANDROID_H_ 5 #ifndef NET_ANDROID_CERT_VERIFY_RESULT_ANDROID_H_
6 #define NET_ANDROID_CERT_VERIFY_RESULT_ANDROID_H_ 6 #define NET_ANDROID_CERT_VERIFY_RESULT_ANDROID_H_
7 7
8 #include <jni.h>
9
10 #include <string>
11 #include <vector>
12
8 #include "base/basictypes.h" 13 #include "base/basictypes.h"
9 #include "base/platform_file.h" 14 #include "base/platform_file.h"
10 #include "net/base/net_export.h" 15 #include "net/base/net_export.h"
11 16
12 namespace net { 17 namespace net {
13 18
14 namespace android { 19 namespace android {
15 20
16 enum CertVerifyResultAndroid { 21 enum CertVerifyStatusAndroid {
17 #define CERT_VERIFY_RESULT_ANDROID(label, value) VERIFY_ ## label = value, 22 #define CERT_VERIFY_STATUS_ANDROID(label, value) VERIFY_ ## label = value,
18 #include "net/android/cert_verify_result_android_list.h" 23 #include "net/android/cert_verify_status_android_list.h"
19 #undef CERT_VERIFY_RESULT_ANDROID 24 #undef CERT_VERIFY_STATUS_ANDROID
20 }; 25 };
21 26
27 // Extract parameters out of an AndroidCertVerifyResult object.
28 void ExtractCertVerifyResult(jobject result,
29 CertVerifyStatusAndroid* status,
30 bool* is_issued_by_known_root,
31 std::vector<std::string>* verified_chain);
32
33 // Register JNI methods.
34 NET_EXPORT bool RegisterCertVerifyResult(JNIEnv* env);
35
22 } // namespace android 36 } // namespace android
23 37
24 } // namespace net 38 } // namespace net
25 39
26 #endif // NET_ANDROID_CERT_VERIFY_RESULT_ANDROID_H_ 40 #endif // NET_ANDROID_CERT_VERIFY_RESULT_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698