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

Side by Side Diff: net/base/ssl_config_service.cc

Issue 11876044: Remove support for 'system' SSL on Mac (SecureTransport) and Win (SChannel) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 bool SSLConfigService::cached_info_enabled() { 116 bool SSLConfigService::cached_info_enabled() {
117 return g_cached_info_enabled; 117 return g_cached_info_enabled;
118 } 118 }
119 119
120 // static 120 // static
121 uint16 SSLConfigService::default_version_min() { 121 uint16 SSLConfigService::default_version_min() {
122 return g_default_version_min; 122 return g_default_version_min;
123 } 123 }
124 124
125 // static 125 // static
126 void SSLConfigService::SetDefaultVersionMax(uint16 version_max) {
127 g_default_version_max = version_max;
128 }
129
130 // static
131 uint16 SSLConfigService::default_version_max() { 126 uint16 SSLConfigService::default_version_max() {
132 return g_default_version_max; 127 return g_default_version_max;
133 } 128 }
134 129
135 void SSLConfigService::AddObserver(Observer* observer) { 130 void SSLConfigService::AddObserver(Observer* observer) {
136 observer_list_.AddObserver(observer); 131 observer_list_.AddObserver(observer);
137 } 132 }
138 133
139 void SSLConfigService::RemoveObserver(Observer* observer) { 134 void SSLConfigService::RemoveObserver(Observer* observer) {
140 observer_list_.RemoveObserver(observer); 135 observer_list_.RemoveObserver(observer);
(...skipping 30 matching lines...) Expand all
171 bool SSLConfigService::IsSNIAvailable(SSLConfigService* service) { 166 bool SSLConfigService::IsSNIAvailable(SSLConfigService* service) {
172 if (!service) 167 if (!service)
173 return false; 168 return false;
174 169
175 SSLConfig ssl_config; 170 SSLConfig ssl_config;
176 service->GetSSLConfig(&ssl_config); 171 service->GetSSLConfig(&ssl_config);
177 return ssl_config.version_max >= SSL_PROTOCOL_VERSION_TLS1; 172 return ssl_config.version_max >= SSL_PROTOCOL_VERSION_TLS1;
178 } 173 }
179 174
180 } // namespace net 175 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698