diff options
author | Iain Merrick <husky@google.com> | 2010-11-01 12:19:54 +0000 |
---|---|---|
committer | Iain Merrick <husky@google.com> | 2010-11-03 10:21:10 +0000 |
commit | 731df977c0511bca2206b5f333555b1205ff1f43 (patch) | |
tree | 0e750b949b3f00a1ac11fda25d3c2de512f2b465 /net/base/ssl_config_service.cc | |
parent | 5add15e10e7bb80512f2c597ca57221314abe577 (diff) | |
download | external_chromium-731df977c0511bca2206b5f333555b1205ff1f43.zip external_chromium-731df977c0511bca2206b5f333555b1205ff1f43.tar.gz external_chromium-731df977c0511bca2206b5f333555b1205ff1f43.tar.bz2 |
Merge Chromium at r63472 : Initial merge by git.
Change-Id: Ifb9ee821af006a5f2211e81471be93ae440a1f5a
Diffstat (limited to 'net/base/ssl_config_service.cc')
-rw-r--r-- | net/base/ssl_config_service.cc | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/net/base/ssl_config_service.cc b/net/base/ssl_config_service.cc index dabf1b7..d8ecb0b 100644 --- a/net/base/ssl_config_service.cc +++ b/net/base/ssl_config_service.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -15,11 +15,15 @@ namespace net { +SSLConfig::CertAndStatus::CertAndStatus() : cert_status(0) {} + +SSLConfig::CertAndStatus::~CertAndStatus() {} + SSLConfig::SSLConfig() : rev_checking_enabled(true), ssl2_enabled(false), ssl3_enabled(true), - tls1_enabled(true), dnssec_enabled(false), mitm_proxies_allowed(false), - false_start_enabled(true), send_client_cert(false), - verify_ev_cert(false), ssl3_fallback(false) { + tls1_enabled(true), dnssec_enabled(false), snap_start_enabled(false), + mitm_proxies_allowed(false), false_start_enabled(true), + send_client_cert(false), verify_ev_cert(false), ssl3_fallback(false) { } SSLConfig::~SSLConfig() { @@ -94,12 +98,14 @@ bool SSLConfigService::IsKnownFalseStartIncompatibleServer( static bool g_dnssec_enabled = false; static bool g_false_start_enabled = true; static bool g_mitm_proxies_allowed = false; +static bool g_snap_start_enabled = false; // static void SSLConfigService::SetSSLConfigFlags(SSLConfig* ssl_config) { ssl_config->dnssec_enabled = g_dnssec_enabled; ssl_config->false_start_enabled = g_false_start_enabled; ssl_config->mitm_proxies_allowed = g_mitm_proxies_allowed; + ssl_config->snap_start_enabled = g_snap_start_enabled; } // static @@ -113,6 +119,16 @@ bool SSLConfigService::dnssec_enabled() { } // static +void SSLConfigService::EnableSnapStart() { + g_snap_start_enabled = true; +} + +// static +bool SSLConfigService::snap_start_enabled() { + return g_snap_start_enabled; +} + +// static void SSLConfigService::DisableFalseStart() { g_false_start_enabled = false; } |