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

Unified Diff: net/base/ssl_config_service.cc

Issue 7058049: Added client-side support for the TLS cached info extension. This feature is disabled by default ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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/base/ssl_config_service.h ('k') | net/socket/ssl_client_socket_nss.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/ssl_config_service.cc
===================================================================
--- net/base/ssl_config_service.cc (revision 89911)
+++ net/base/ssl_config_service.cc (working copy)
@@ -16,7 +16,7 @@
SSLConfig::SSLConfig()
: rev_checking_enabled(true), ssl3_enabled(true),
tls1_enabled(true),
- dns_cert_provenance_checking_enabled(false),
+ dns_cert_provenance_checking_enabled(false), cached_info_enabled(false),
false_start_enabled(true),
send_client_cert(false), verify_ev_cert(false), ssl3_fallback(false) {
}
@@ -46,6 +46,7 @@
return SSLFalseStartBlacklist::IsMember(hostname.c_str());
}
+static bool g_cached_info_enabled = false;
static bool g_false_start_enabled = true;
static bool g_dns_cert_provenance_checking = false;
@@ -69,6 +70,16 @@
return g_dns_cert_provenance_checking;
}
+// static
+void SSLConfigService::EnableCachedInfo() {
+ g_cached_info_enabled = true;
+}
+
+// static
+bool SSLConfigService::cached_info_enabled() {
+ return g_cached_info_enabled;
+}
+
void SSLConfigService::AddObserver(Observer* observer) {
observer_list_.AddObserver(observer);
}
@@ -85,6 +96,7 @@
ssl_config->false_start_enabled = g_false_start_enabled;
ssl_config->dns_cert_provenance_checking_enabled =
g_dns_cert_provenance_checking;
+ ssl_config->cached_info_enabled = g_cached_info_enabled;
}
void SSLConfigService::ProcessConfigUpdate(const SSLConfig& orig_config,
« no previous file with comments | « net/base/ssl_config_service.h ('k') | net/socket/ssl_client_socket_nss.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698