| Index: net/android/cert_verify_result_android.h
|
| diff --git a/net/android/cert_verify_result_android.h b/net/android/cert_verify_result_android.h
|
| index 7027c3d7726dc1842133f528d6e98c5feda5e181..e1cd3ce659adab4c16e414df4b8a678a24a6c360 100644
|
| --- a/net/android/cert_verify_result_android.h
|
| +++ b/net/android/cert_verify_result_android.h
|
| @@ -16,10 +16,28 @@ namespace net {
|
|
|
| namespace android {
|
|
|
| +// The list of certificate verification results returned from Java side to the
|
| +// C++ side.
|
| +//
|
| +// A Java counterpart will be generated for this enum.
|
| +// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.net
|
| enum CertVerifyStatusAndroid {
|
| -#define CERT_VERIFY_STATUS_ANDROID(label, value) VERIFY_ ## label = value,
|
| -#include "net/android/cert_verify_status_android_list.h"
|
| -#undef CERT_VERIFY_STATUS_ANDROID
|
| + // Certificate is trusted.
|
| + CERT_VERIFY_STATUS_ANDROID_OK = 0,
|
| + // Certificate verification could not be conducted.
|
| + CERT_VERIFY_STATUS_ANDROID_FAILED = -1,
|
| + // Certificate is not trusted due to non-trusted root of the certificate
|
| + // chain.
|
| + CERT_VERIFY_STATUS_ANDROID_NO_TRUSTED_ROOT = -2,
|
| + // Certificate is not trusted because it has expired.
|
| + CERT_VERIFY_STATUS_ANDROID_EXPIRED = -3,
|
| + // Certificate is not trusted because it is not valid yet.
|
| + CERT_VERIFY_STATUS_ANDROID_NOT_YET_VALID = -4,
|
| + // Certificate is not trusted because it could not be parsed.
|
| + CERT_VERIFY_STATUS_ANDROID_UNABLE_TO_PARSE = -5,
|
| + // Certificate is not trusted because it has an extendedKeyUsage field, but
|
| + // its value is not correct for a web server.
|
| + CERT_VERIFY_STATUS_ANDROID_INCORRECT_KEY_USAGE = -6,
|
| };
|
|
|
| // Extract parameters out of an AndroidCertVerifyResult object.
|
|
|