diff options
author | ppi@chromium.org <ppi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-13 19:13:49 +0000 |
---|---|---|
committer | ppi@chromium.org <ppi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-13 19:13:49 +0000 |
commit | 71f4b2782acf7b0608bb596f1d980afe26255254 (patch) | |
tree | 35859c98136212a257d70808ed11666082380396 /net/android/java/CertVerifyResultAndroid.template | |
parent | 3f83628a86e6be3dd2bf90a441477e9ab7fb2f9f (diff) | |
download | chromium_src-71f4b2782acf7b0608bb596f1d980afe26255254.zip chromium_src-71f4b2782acf7b0608bb596f1d980afe26255254.tar.gz chromium_src-71f4b2782acf7b0608bb596f1d980afe26255254.tar.bz2 |
Return specific cert verification errors on Android
To implement CertVerifyProc on Android we refer to the Java
side to query the platform trust managers. Currently the
information we get from the platform is binary - each
certificate chain is either identified as trusted or not, in
which case we assume that this is due to not-trusted root.
This patch provides better granularity distinguishing the
following cases: expired, not yet valid, incorrect (could not
be parsed), not trusted root.
This allowed to reenable two net unittests:
- CertVerifyProcTest.ExtraneousMD5RootCert
- CertVerifyProcTest.IntermediateCARequireExplicitPolicy
The following net unittest had to be disabled as it joins
the club of CertVerifyProc tests failing on bots with
incorrect time/date settings:
- CertVerifyProcTest.InvalidKeyUsage
BUG=169762
Review URL: https://chromiumcodereview.appspot.com/12212135
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182280 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/android/java/CertVerifyResultAndroid.template')
-rw-r--r-- | net/android/java/CertVerifyResultAndroid.template | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/net/android/java/CertVerifyResultAndroid.template b/net/android/java/CertVerifyResultAndroid.template new file mode 100644 index 0000000..b19e937 --- /dev/null +++ b/net/android/java/CertVerifyResultAndroid.template @@ -0,0 +1,10 @@ +// Copyright (c) 2013 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package org.chromium.net; + +public class CertVerifyResultAndroid { +#define CERT_VERIFY_RESULT_ANDROID(name, value) public static final int VERIFY_##name = value; +#include "net/android/cert_verify_result_android_list.h" +} |