OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/base/ssl_config_service.h" | 5 #include "net/base/ssl_config_service.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/synchronization/lock.h" | 9 #include "base/synchronization/lock.h" |
10 #include "net/base/crl_set.h" | 10 #include "net/base/crl_set.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 SSLConfig::CertAndStatus::CertAndStatus() : cert_status(0) {} | 32 SSLConfig::CertAndStatus::CertAndStatus() : cert_status(0) {} |
33 | 33 |
34 SSLConfig::CertAndStatus::~CertAndStatus() {} | 34 SSLConfig::CertAndStatus::~CertAndStatus() {} |
35 | 35 |
36 SSLConfig::SSLConfig() | 36 SSLConfig::SSLConfig() |
37 : rev_checking_enabled(false), | 37 : rev_checking_enabled(false), |
38 version_min(g_default_version_min), | 38 version_min(g_default_version_min), |
39 version_max(g_default_version_max), | 39 version_max(g_default_version_max), |
40 cached_info_enabled(false), | 40 cached_info_enabled(false), |
41 channel_id_enabled(true), | 41 channel_id_enabled(false), |
42 false_start_enabled(true), | 42 false_start_enabled(true), |
43 send_client_cert(false), | 43 send_client_cert(false), |
44 verify_ev_cert(false), | 44 verify_ev_cert(false), |
45 version_fallback(false), | 45 version_fallback(false), |
46 cert_io_enabled(true) { | 46 cert_io_enabled(true) { |
47 } | 47 } |
48 | 48 |
49 SSLConfig::~SSLConfig() { | 49 SSLConfig::~SSLConfig() { |
50 } | 50 } |
51 | 51 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 bool SSLConfigService::IsSNIAvailable(SSLConfigService* service) { | 167 bool SSLConfigService::IsSNIAvailable(SSLConfigService* service) { |
168 if (!service) | 168 if (!service) |
169 return false; | 169 return false; |
170 | 170 |
171 SSLConfig ssl_config; | 171 SSLConfig ssl_config; |
172 service->GetSSLConfig(&ssl_config); | 172 service->GetSSLConfig(&ssl_config); |
173 return ssl_config.version_max >= SSL_PROTOCOL_VERSION_TLS1; | 173 return ssl_config.version_max >= SSL_PROTOCOL_VERSION_TLS1; |
174 } | 174 } |
175 | 175 |
176 } // namespace net | 176 } // namespace net |
OLD | NEW |