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

Side by Side Diff: net/ssl/ssl_config.cc

Issue 619463002: net: disable SSLv3 fallback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix debug crash in tests. Created 6 years, 2 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
« no previous file with comments | « net/ssl/ssl_config.h ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/ssl/ssl_config.h" 5 #include "net/ssl/ssl_config.h"
6 6
7 namespace net { 7 namespace net {
8 8
9 const uint16 kDefaultSSLVersionMin = SSL_PROTOCOL_VERSION_SSL3; 9 const uint16 kDefaultSSLVersionMin = SSL_PROTOCOL_VERSION_SSL3;
10 10
11 const uint16 kDefaultSSLVersionMax = SSL_PROTOCOL_VERSION_TLS1_2; 11 const uint16 kDefaultSSLVersionMax = SSL_PROTOCOL_VERSION_TLS1_2;
12 12
13 const uint16 kDefaultSSLVersionFallbackMin = SSL_PROTOCOL_VERSION_TLS1;
14
13 SSLConfig::CertAndStatus::CertAndStatus() : cert_status(0) {} 15 SSLConfig::CertAndStatus::CertAndStatus() : cert_status(0) {}
14 16
15 SSLConfig::CertAndStatus::~CertAndStatus() {} 17 SSLConfig::CertAndStatus::~CertAndStatus() {}
16 18
17 SSLConfig::SSLConfig() 19 SSLConfig::SSLConfig()
18 : rev_checking_enabled(false), 20 : rev_checking_enabled(false),
19 rev_checking_required_local_anchors(false), 21 rev_checking_required_local_anchors(false),
20 version_min(kDefaultSSLVersionMin), 22 version_min(kDefaultSSLVersionMin),
21 version_max(kDefaultSSLVersionMax), 23 version_max(kDefaultSSLVersionMax),
24 version_fallback_min(kDefaultSSLVersionFallbackMin),
22 channel_id_enabled(true), 25 channel_id_enabled(true),
23 false_start_enabled(true), 26 false_start_enabled(true),
24 signed_cert_timestamps_enabled(true), 27 signed_cert_timestamps_enabled(true),
25 require_forward_secrecy(false), 28 require_forward_secrecy(false),
26 send_client_cert(false), 29 send_client_cert(false),
27 verify_ev_cert(false), 30 verify_ev_cert(false),
28 version_fallback(false), 31 version_fallback(false),
29 cert_io_enabled(true) { 32 cert_io_enabled(true) {
30 } 33 }
31 34
(...skipping 13 matching lines...) Expand all
45 if (der_cert == allowed_bad_certs[i].der_cert) { 48 if (der_cert == allowed_bad_certs[i].der_cert) {
46 if (cert_status) 49 if (cert_status)
47 *cert_status = allowed_bad_certs[i].cert_status; 50 *cert_status = allowed_bad_certs[i].cert_status;
48 return true; 51 return true;
49 } 52 }
50 } 53 }
51 return false; 54 return false;
52 } 55 }
53 56
54 } // namespace net 57 } // namespace net
OLDNEW
« no previous file with comments | « net/ssl/ssl_config.h ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698