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

Unified Diff: net/ssl/ssl_config.cc

Issue 2719273002: Disable commonName matching for certificates (Closed)
Patch Set: More ChromeOS fixes Created 3 years, 10 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/ssl/ssl_config.h ('k') | net/ssl/ssl_config_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ssl/ssl_config.cc
diff --git a/net/ssl/ssl_config.cc b/net/ssl/ssl_config.cc
index 62e192e1b84d5acde6780cd8c9749d9469a2b99b..726ce48f1e9b53eb14f1bf0c9762a2a3b356a9b2 100644
--- a/net/ssl/ssl_config.cc
+++ b/net/ssl/ssl_config.cc
@@ -24,6 +24,7 @@ SSLConfig::SSLConfig()
: rev_checking_enabled(false),
rev_checking_required_local_anchors(false),
sha1_local_anchors_enabled(true),
+ common_name_fallback_local_anchors_enabled(true),
version_min(kDefaultSSLVersionMin),
version_max(kDefaultSSLVersionMax),
deprecated_cipher_suites_enabled(false),
@@ -64,6 +65,8 @@ int SSLConfig::GetCertVerifyFlags() const {
flags |= CertVerifier::VERIFY_REV_CHECKING_REQUIRED_LOCAL_ANCHORS;
if (sha1_local_anchors_enabled)
flags |= CertVerifier::VERIFY_ENABLE_SHA1_LOCAL_ANCHORS;
+ if (common_name_fallback_local_anchors_enabled)
+ flags |= CertVerifier::VERIFY_ENABLE_COMMON_NAME_FALLBACK_LOCAL_ANCHORS;
return flags;
}
« no previous file with comments | « net/ssl/ssl_config.h ('k') | net/ssl/ssl_config_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698