OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_win.h" | 5 #include "net/base/ssl_config_service_win.h" |
6 | 6 |
7 #include "base/threading/thread_restrictions.h" | 7 #include "base/threading/thread_restrictions.h" |
8 #include "base/win/registry.h" | 8 #include "base/win/registry.h" |
9 | 9 |
10 using base::TimeDelta; | 10 using base::TimeDelta; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 config->rev_checking_enabled = (revocation != 0); | 76 config->rev_checking_enabled = (revocation != 0); |
77 config->ssl3_enabled = ((protocols & SSL3) != 0); | 77 config->ssl3_enabled = ((protocols & SSL3) != 0); |
78 config->tls1_enabled = ((protocols & TLS1) != 0); | 78 config->tls1_enabled = ((protocols & TLS1) != 0); |
79 SSLConfigService::SetSSLConfigFlags(config); | 79 SSLConfigService::SetSSLConfigFlags(config); |
80 | 80 |
81 // TODO(rsleevi): Possibly respect the registry keys defined in | 81 // TODO(rsleevi): Possibly respect the registry keys defined in |
82 // http://support.microsoft.com/kb/245030 (pre-Vista) or | 82 // http://support.microsoft.com/kb/245030 (pre-Vista) or |
83 // http://msdn.microsoft.com/en-us/library/bb870930(VS.85).aspx (post-Vista). | 83 // http://msdn.microsoft.com/en-us/library/bb870930(VS.85).aspx (post-Vista). |
84 // Currently, these values are respected implicitly when using | 84 // Currently, these values are respected implicitly when using |
85 // SSLClientSocketWin, but they do not propogate to SSLClientSocketNSS | 85 // SSLClientSocketWin, but they do not propagate to SSLClientSocketNSS |
86 // because we're not currently translating the keys. | 86 // because we're not currently translating the keys. |
87 | 87 |
88 return true; | 88 return true; |
89 } | 89 } |
90 | 90 |
91 // static | 91 // static |
92 void SSLConfigServiceWin::SetRevCheckingEnabled(bool enabled) { | 92 void SSLConfigServiceWin::SetRevCheckingEnabled(bool enabled) { |
93 // This registry access goes to disk and will slow down the IO thread. | 93 // This registry access goes to disk and will slow down the IO thread. |
94 // http://crbug.com/61455 | 94 // http://crbug.com/61455 |
95 base::ThreadRestrictions::ScopedAllowIO allow_io; | 95 base::ThreadRestrictions::ScopedAllowIO allow_io; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 void SSLConfigServiceWin::UpdateConfig(TimeTicks now) { | 133 void SSLConfigServiceWin::UpdateConfig(TimeTicks now) { |
134 SSLConfig orig_config = config_info_; | 134 SSLConfig orig_config = config_info_; |
135 GetSSLConfigNow(&config_info_); | 135 GetSSLConfigNow(&config_info_); |
136 if (ever_updated_) | 136 if (ever_updated_) |
137 ProcessConfigUpdate(orig_config, config_info_); | 137 ProcessConfigUpdate(orig_config, config_info_); |
138 config_time_ = now; | 138 config_time_ = now; |
139 ever_updated_ = true; | 139 ever_updated_ = true; |
140 } | 140 } |
141 | 141 |
142 } // namespace net | 142 } // namespace net |
OLD | NEW |