Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(460)

Unified Diff: net/cert/cert_verify_proc.cc

Issue 2239963002: Add enterprise policy to allow locally issued SHA-1 certificates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/cert/cert_verifier.h ('k') | net/ssl/ssl_config.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/cert_verify_proc.cc
diff --git a/net/cert/cert_verify_proc.cc b/net/cert/cert_verify_proc.cc
index 87541ae3673014388c9e27303913e56dd8ddc860..8fdd93cbb1bb0c4720273867ee9c9de3fb723ed6 100644
--- a/net/cert/cert_verify_proc.cc
+++ b/net/cert/cert_verify_proc.cc
@@ -440,6 +440,9 @@ int CertVerifyProc::Verify(X509Certificate* cert,
// disabled on this date, but enterprises need more time to transition.
// As the risk is greatest for publicly trusted certificates, prevent
// those certificates from being trusted from that date forward.
+ //
+ // TODO(mattm): apply the SHA-1 deprecation check to all certs unless
+ // CertVerifier::VERIFY_ENABLE_SHA1_LOCAL_ANCHORS flag is present.
if (verify_result->has_md5 ||
(verify_result->has_sha1_leaf && verify_result->is_issued_by_known_root &&
IsPastSHA1DeprecationDate(*cert))) {
« no previous file with comments | « net/cert/cert_verifier.h ('k') | net/ssl/ssl_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698