OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "net/base/ssl_config_service_defaults.h" | 7 #include "net/base/ssl_config_service_defaults.h" |
8 #include "net/base/ssl_false_start_blacklist.h" | 8 #include "net/base/ssl_false_start_blacklist.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 return false; | 45 return false; |
46 } | 46 } |
47 | 47 |
48 SSLConfigService::SSLConfigService() | 48 SSLConfigService::SSLConfigService() |
49 : observer_list_(ObserverList<Observer>::NOTIFY_EXISTING_ONLY) { | 49 : observer_list_(ObserverList<Observer>::NOTIFY_EXISTING_ONLY) { |
50 } | 50 } |
51 | 51 |
52 // static | 52 // static |
53 bool SSLConfigService::IsKnownFalseStartIncompatibleServer( | 53 bool SSLConfigService::IsKnownFalseStartIncompatibleServer( |
54 const std::string& hostname) { | 54 const std::string& hostname) { |
55 return SSLFalseStartBlacklist::IsMember(hostname); | 55 return SSLFalseStartBlacklist::IsMember(hostname.c_str()); |
56 } | 56 } |
57 | 57 |
58 static bool g_cached_info_enabled = false; | 58 static bool g_cached_info_enabled = false; |
59 static bool g_origin_bound_certs_enabled = false; | 59 static bool g_origin_bound_certs_enabled = false; |
60 static bool g_false_start_enabled = true; | 60 static bool g_false_start_enabled = true; |
61 static bool g_dns_cert_provenance_checking = false; | 61 static bool g_dns_cert_provenance_checking = false; |
62 | 62 |
63 // static | 63 // static |
64 void SSLConfigService::DisableFalseStart() { | 64 void SSLConfigService::DisableFalseStart() { |
65 g_false_start_enabled = false; | 65 g_false_start_enabled = false; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 bool SSLConfigService::IsSNIAvailable(SSLConfigService* service) { | 141 bool SSLConfigService::IsSNIAvailable(SSLConfigService* service) { |
142 if (!service) | 142 if (!service) |
143 return false; | 143 return false; |
144 | 144 |
145 SSLConfig ssl_config; | 145 SSLConfig ssl_config; |
146 service->GetSSLConfig(&ssl_config); | 146 service->GetSSLConfig(&ssl_config); |
147 return ssl_config.tls1_enabled; | 147 return ssl_config.tls1_enabled; |
148 } | 148 } |
149 | 149 |
150 } // namespace net | 150 } // namespace net |
OLD | NEW |