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 namespace net { | 7 namespace net { |
8 | 8 |
9 const uint16 kDefaultSSLVersionMin = SSL_PROTOCOL_VERSION_SSL3; | 9 const uint16 kDefaultSSLVersionMin = SSL_PROTOCOL_VERSION_TLS1; |
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; | 13 const uint16 kDefaultSSLVersionFallbackMin = SSL_PROTOCOL_VERSION_TLS1; |
14 | 14 |
15 SSLConfig::CertAndStatus::CertAndStatus() : cert_status(0) {} | 15 SSLConfig::CertAndStatus::CertAndStatus() : cert_status(0) {} |
16 | 16 |
17 SSLConfig::CertAndStatus::~CertAndStatus() {} | 17 SSLConfig::CertAndStatus::~CertAndStatus() {} |
18 | 18 |
19 SSLConfig::SSLConfig() | 19 SSLConfig::SSLConfig() |
(...skipping 28 matching lines...) Expand all Loading... |
48 if (der_cert == allowed_bad_certs[i].der_cert) { | 48 if (der_cert == allowed_bad_certs[i].der_cert) { |
49 if (cert_status) | 49 if (cert_status) |
50 *cert_status = allowed_bad_certs[i].cert_status; | 50 *cert_status = allowed_bad_certs[i].cert_status; |
51 return true; | 51 return true; |
52 } | 52 } |
53 } | 53 } |
54 return false; | 54 return false; |
55 } | 55 } |
56 | 56 |
57 } // namespace net | 57 } // namespace net |
OLD | NEW |