diff options
Diffstat (limited to 'net/base/ssl_config_service.h')
-rw-r--r-- | net/base/ssl_config_service.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/base/ssl_config_service.h b/net/base/ssl_config_service.h index d10134e..75a4f74 100644 --- a/net/base/ssl_config_service.h +++ b/net/base/ssl_config_service.h @@ -20,6 +20,7 @@ struct SSLConfig { SSLConfig() : rev_checking_enabled(true), ssl2_enabled(false), ssl3_enabled(true), tls1_enabled(true), ssl3_fallback(false), dnssec_enabled(false), + false_start_enabled(true), send_client_cert(false), verify_ev_cert(false) { } @@ -32,6 +33,8 @@ struct SSLConfig { // needs to clear tls1_enabled). bool dnssec_enabled; // True if we'll accept DNSSEC chains in certificates. + bool false_start_enabled; // True if we'll use TLS False Start. + // TODO(wtc): move the following members to a new SSLParams structure. They // are not SSL configuration settings. @@ -97,11 +100,20 @@ class SSLConfigService : public base::RefCountedThreadSafe<SSLConfigService> { // http://crbug.com and email the link to agl AT chromium DOT org. static bool IsKnownStrictTLSServer(const std::string& hostname); + // Returns true if the given hostname is known to be incompatible with TLS + // False Start. + static bool IsKnownFalseStartIncompatibleServer(const std::string& hostname); + // Enables the acceptance of self-signed certificates which contain an // embedded DNSSEC chain proving their validity. static void EnableDNSSEC(); static bool dnssec_enabled(); + // Disables False Start in SSL connections. + static void DisableFalseStart(); + // True if we use False Start for SSL and TLS. + static bool false_start_enabled(); + protected: friend class base::RefCountedThreadSafe<SSLConfigService>; |