Chromium Code Reviews| 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 #ifndef NET_SSL_SSL_CONFIG_H_ | 5 #ifndef NET_SSL_SSL_CONFIG_H_ |
| 6 #define NET_SSL_SSL_CONFIG_H_ | 6 #define NET_SSL_SSL_CONFIG_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 90 | 90 |
| 91 // version_fallback_min contains the minimum version that is acceptable to | 91 // version_fallback_min contains the minimum version that is acceptable to |
| 92 // fallback to. Versions before this may be tried to see whether they would | 92 // fallback to. Versions before this may be tried to see whether they would |
| 93 // have succeeded and thus to give a better message to the user, but the | 93 // have succeeded and thus to give a better message to the user, but the |
| 94 // resulting connection won't be used in these cases. | 94 // resulting connection won't be used in these cases. |
| 95 uint16_t version_fallback_min; | 95 uint16_t version_fallback_min; |
| 96 | 96 |
| 97 // Presorted list of cipher suites which should be explicitly prevented from | 97 // Presorted list of cipher suites which should be explicitly prevented from |
| 98 // being used in addition to those disabled by the net built-in policy. | 98 // being used in addition to those disabled by the net built-in policy. |
| 99 // | 99 // |
| 100 // By default, all cipher suites supported by the underlying SSL | |
| 101 // implementation will be enabled except for: | |
|
davidben
2016/03/08 01:42:16
This comment isn't terribly meaningful anymore sin
| |
| 102 // - Null encryption cipher suites. | |
| 103 // - Weak cipher suites: < 80 bits of security strength. | |
| 104 // - FORTEZZA cipher suites (obsolete). | |
| 105 // - IDEA cipher suites (RFC 5469 explains why). | |
| 106 // - Anonymous cipher suites. | |
| 107 // - ECDSA cipher suites on platforms that do not support ECDSA signed | |
| 108 // certificates, as servers may use the presence of such ciphersuites as a | |
| 109 // hint to send an ECDSA certificate. | |
| 110 // The ciphers listed in |disabled_cipher_suites| will be removed in addition | |
| 111 // to the above list. | |
| 112 // | |
| 113 // Though cipher suites are sent in TLS as "uint8_t CipherSuite[2]", in | 100 // Though cipher suites are sent in TLS as "uint8_t CipherSuite[2]", in |
| 114 // big-endian form, they should be declared in host byte order, with the | 101 // big-endian form, they should be declared in host byte order, with the |
| 115 // first uint8_t occupying the most significant byte. | 102 // first uint8_t occupying the most significant byte. |
| 116 // Ex: To disable TLS_RSA_WITH_RC4_128_MD5, specify 0x0004, while to | 103 // Ex: To disable TLS_RSA_WITH_RC4_128_MD5, specify 0x0004, while to |
| 117 // disable TLS_ECDH_ECDSA_WITH_RC4_128_SHA, specify 0xC002. | 104 // disable TLS_ECDH_ECDSA_WITH_RC4_128_SHA, specify 0xC002. |
| 118 std::vector<uint16_t> disabled_cipher_suites; | 105 std::vector<uint16_t> disabled_cipher_suites; |
| 119 | 106 |
| 120 // Enables deprecated cipher suites. These cipher suites are selected under a | 107 // Enables deprecated cipher suites. These cipher suites are selected under a |
| 121 // fallback to distinguish servers which require them from servers which | 108 // fallback to distinguish servers which require them from servers which |
| 122 // merely prefer them. | 109 // merely prefer them. |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 199 // The list of application-level protocols to enable renegotiation for. | 186 // The list of application-level protocols to enable renegotiation for. |
| 200 NextProtoVector renego_allowed_for_protos; | 187 NextProtoVector renego_allowed_for_protos; |
| 201 | 188 |
| 202 scoped_refptr<X509Certificate> client_cert; | 189 scoped_refptr<X509Certificate> client_cert; |
| 203 scoped_refptr<SSLPrivateKey> client_private_key; | 190 scoped_refptr<SSLPrivateKey> client_private_key; |
| 204 }; | 191 }; |
| 205 | 192 |
| 206 } // namespace net | 193 } // namespace net |
| 207 | 194 |
| 208 #endif // NET_SSL_SSL_CONFIG_H_ | 195 #endif // NET_SSL_SSL_CONFIG_H_ |
| OLD | NEW |