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

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

Issue 2056343006: Remove DHE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: actually connect up the feature flag Created 4 years, 5 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 #include "net/cert/cert_verifier.h" 7 #include "net/cert/cert_verifier.h"
8 8
9 namespace net { 9 namespace net {
10 10
11 const uint16_t kDefaultSSLVersionMin = SSL_PROTOCOL_VERSION_TLS1; 11 const uint16_t kDefaultSSLVersionMin = SSL_PROTOCOL_VERSION_TLS1;
12 12
13 const uint16_t kDefaultSSLVersionMax = SSL_PROTOCOL_VERSION_TLS1_2; 13 const uint16_t kDefaultSSLVersionMax = SSL_PROTOCOL_VERSION_TLS1_2;
14 14
15 const uint16_t kDefaultSSLVersionFallbackMin = SSL_PROTOCOL_VERSION_TLS1_2; 15 const uint16_t kDefaultSSLVersionFallbackMin = SSL_PROTOCOL_VERSION_TLS1_2;
16 16
17 SSLConfig::CertAndStatus::CertAndStatus() : cert_status(0) {} 17 SSLConfig::CertAndStatus::CertAndStatus() : cert_status(0) {}
18 18
19 SSLConfig::CertAndStatus::~CertAndStatus() {} 19 SSLConfig::CertAndStatus::~CertAndStatus() {}
20 20
21 SSLConfig::SSLConfig() 21 SSLConfig::SSLConfig()
22 : rev_checking_enabled(false), 22 : rev_checking_enabled(false),
23 rev_checking_required_local_anchors(false), 23 rev_checking_required_local_anchors(false),
24 version_min(kDefaultSSLVersionMin), 24 version_min(kDefaultSSLVersionMin),
25 version_max(kDefaultSSLVersionMax), 25 version_max(kDefaultSSLVersionMax),
26 version_fallback_min(kDefaultSSLVersionFallbackMin), 26 version_fallback_min(kDefaultSSLVersionFallbackMin),
27 deprecated_cipher_suites_enabled(false), 27 deprecated_cipher_suites_enabled(false),
28 dhe_enabled(false),
28 channel_id_enabled(true), 29 channel_id_enabled(true),
29 false_start_enabled(true), 30 false_start_enabled(true),
30 signed_cert_timestamps_enabled(true), 31 signed_cert_timestamps_enabled(true),
31 require_ecdhe(false), 32 require_ecdhe(false),
32 send_client_cert(false), 33 send_client_cert(false),
33 verify_ev_cert(false), 34 verify_ev_cert(false),
34 version_fallback(false), 35 version_fallback(false),
35 cert_io_enabled(true), 36 cert_io_enabled(true),
36 renego_allowed_default(false) {} 37 renego_allowed_default(false) {}
37 38
(...skipping 28 matching lines...) Expand all
66 if (verify_ev_cert) 67 if (verify_ev_cert)
67 flags |= CertVerifier::VERIFY_EV_CERT; 68 flags |= CertVerifier::VERIFY_EV_CERT;
68 if (cert_io_enabled) 69 if (cert_io_enabled)
69 flags |= CertVerifier::VERIFY_CERT_IO_ENABLED; 70 flags |= CertVerifier::VERIFY_CERT_IO_ENABLED;
70 if (rev_checking_required_local_anchors) 71 if (rev_checking_required_local_anchors)
71 flags |= CertVerifier::VERIFY_REV_CHECKING_REQUIRED_LOCAL_ANCHORS; 72 flags |= CertVerifier::VERIFY_REV_CHECKING_REQUIRED_LOCAL_ANCHORS;
72 return flags; 73 return flags;
73 } 74 }
74 75
75 } // namespace net 76 } // 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