diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/net/cert/cert_verify_proc.cc | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/net/cert/cert_verify_proc.cc')
-rw-r--r-- | chromium/net/cert/cert_verify_proc.cc | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/chromium/net/cert/cert_verify_proc.cc b/chromium/net/cert/cert_verify_proc.cc index b6502664174..0b7e5f9d1a4 100644 --- a/chromium/net/cert/cert_verify_proc.cc +++ b/chromium/net/cert/cert_verify_proc.cc @@ -935,6 +935,9 @@ bool CertVerifyProc::HasTooLongValidity(const X509Certificate& cert) { base::Time::UnixEpoch() + base::TimeDelta::FromSeconds(1519862400); const base::Time time_2019_07_01 = base::Time::UnixEpoch() + base::TimeDelta::FromSeconds(1561939200); + // From Chrome Root Certificate Policy + const base::Time time_2020_09_01 = + base::Time::UnixEpoch() + base::TimeDelta::FromSeconds(1598918400); // Compute the maximally permissive interpretations, accounting for leap // years. @@ -957,21 +960,27 @@ bool CertVerifyProc::HasTooLongValidity(const X509Certificate& cert) { return true; } - // For certificates issued after the BR effective date of 1 July 2012: 60 - // months. + // For certificates issued on-or-after the BR effective date of 1 July 2012: + // 60 months. if (start >= time_2012_07_01 && validity_duration > kSixtyMonths) return true; - // For certificates issued after 1 April 2015: 39 months. + // For certificates issued on-or-after 1 April 2015: 39 months. if (start >= time_2015_04_01 && validity_duration > kThirtyNineMonths) return true; - // For certificates issued after 1 March 2018: 825 days. + // For certificates issued on-or-after 1 March 2018: 825 days. if (start >= time_2018_03_01 && validity_duration > base::TimeDelta::FromDays(825)) { return true; } + // For certificates issued on-or-after 1 September 2020: 398 days. + if (start >= time_2020_09_01 && + validity_duration > base::TimeDelta::FromDays(398)) { + return true; + } + return false; } |