OLD | NEW |
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_3; |
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), |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 if (verify_ev_cert) | 66 if (verify_ev_cert) |
67 flags |= CertVerifier::VERIFY_EV_CERT; | 67 flags |= CertVerifier::VERIFY_EV_CERT; |
68 if (cert_io_enabled) | 68 if (cert_io_enabled) |
69 flags |= CertVerifier::VERIFY_CERT_IO_ENABLED; | 69 flags |= CertVerifier::VERIFY_CERT_IO_ENABLED; |
70 if (rev_checking_required_local_anchors) | 70 if (rev_checking_required_local_anchors) |
71 flags |= CertVerifier::VERIFY_REV_CHECKING_REQUIRED_LOCAL_ANCHORS; | 71 flags |= CertVerifier::VERIFY_REV_CHECKING_REQUIRED_LOCAL_ANCHORS; |
72 return flags; | 72 return flags; |
73 } | 73 } |
74 | 74 |
75 } // namespace net | 75 } // namespace net |
OLD | NEW |