| 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_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> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 // its value is not correct for a web server. | 37 // its value is not correct for a web server. |
| 38 CERT_VERIFY_STATUS_ANDROID_INCORRECT_KEY_USAGE = -6, | 38 CERT_VERIFY_STATUS_ANDROID_INCORRECT_KEY_USAGE = -6, |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 // Extract parameters out of an AndroidCertVerifyResult object. | 41 // Extract parameters out of an AndroidCertVerifyResult object. |
| 42 void ExtractCertVerifyResult(jobject result, | 42 void ExtractCertVerifyResult(jobject result, |
| 43 CertVerifyStatusAndroid* status, | 43 CertVerifyStatusAndroid* status, |
| 44 bool* is_issued_by_known_root, | 44 bool* is_issued_by_known_root, |
| 45 std::vector<std::string>* verified_chain); | 45 std::vector<std::string>* verified_chain); |
| 46 | 46 |
| 47 // Register JNI methods. | |
| 48 bool RegisterCertVerifyResult(JNIEnv* env); | |
| 49 | |
| 50 } // namespace android | 47 } // namespace android |
| 51 | 48 |
| 52 } // namespace net | 49 } // namespace net |
| 53 | 50 |
| 54 #endif // NET_ANDROID_CERT_VERIFY_RESULT_ANDROID_H_ | 51 #endif // NET_ANDROID_CERT_VERIFY_RESULT_ANDROID_H_ |
| OLD | NEW |