summaryrefslogtreecommitdiffstats
path: root/net/base
diff options
context:
space:
mode:
authorwtc@google.com <wtc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-21 18:31:42 +0000
committerwtc@google.com <wtc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-21 18:31:42 +0000
commit3a2eb7c7f900c47515f6898bd8b5c46ee61167da (patch)
tree6aa54ece344444bca984dadfcde4b16ebe112b6f /net/base
parentc7f72dcd34145301f10f2e58f55d0ad509237d91 (diff)
downloadchromium_src-3a2eb7c7f900c47515f6898bd8b5c46ee61167da.zip
chromium_src-3a2eb7c7f900c47515f6898bd8b5c46ee61167da.tar.gz
chromium_src-3a2eb7c7f900c47515f6898bd8b5c46ee61167da.tar.bz2
Remove the check for the obsolete CERT_TRUST_IS_NOT_TIME_NESTED
error status. CertGetCertificateChain no longer detects the error. R=agl BUG=70210 TEST=none Review URL: http://codereview.chromium.org/6331009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72159 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base')
-rw-r--r--net/base/x509_certificate_win.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/base/x509_certificate_win.cc b/net/base/x509_certificate_win.cc
index 663563d..f0615a5 100644
--- a/net/base/x509_certificate_win.cc
+++ b/net/base/x509_certificate_win.cc
@@ -94,10 +94,9 @@ int MapSecurityError(SECURITY_STATUS err) {
int MapCertChainErrorStatusToCertStatus(DWORD error_status) {
int cert_status = 0;
- // CERT_TRUST_IS_NOT_TIME_NESTED means a subject certificate's time validity
- // does not nest correctly within its issuer's time validity.
+ // We don't include CERT_TRUST_IS_NOT_TIME_NESTED because it's obsolete and
+ // we wouldn't consider it an error anyway
const DWORD kDateInvalidErrors = CERT_TRUST_IS_NOT_TIME_VALID |
- CERT_TRUST_IS_NOT_TIME_NESTED |
CERT_TRUST_CTL_IS_NOT_TIME_VALID;
if (error_status & kDateInvalidErrors)
cert_status |= CERT_STATUS_DATE_INVALID;