| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ | 5 #ifndef NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ |
| 6 #define NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ | 6 #define NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // be able to connect if only 3DES is specified. | 147 // be able to connect if only 3DES is specified. |
| 148 BULK_CIPHER_3DES = (1 << 3), | 148 BULK_CIPHER_3DES = (1 << 3), |
| 149 | 149 |
| 150 BULK_CIPHER_AES128GCM = (1 << 4), | 150 BULK_CIPHER_AES128GCM = (1 << 4), |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 // NOTE: the values of these enumerators are passed to the the Python test | 153 // NOTE: the values of these enumerators are passed to the the Python test |
| 154 // server. Do not change them. | 154 // server. Do not change them. |
| 155 enum TLSIntolerantLevel { | 155 enum TLSIntolerantLevel { |
| 156 TLS_INTOLERANT_NONE = 0, | 156 TLS_INTOLERANT_NONE = 0, |
| 157 TLS_INTOLERANT_ALL = 1, // Intolerant of all TLS versions. | 157 TLS_INTOLERANT_ALL = 1, // Intolerant of all TLS versions. |
| 158 TLS_INTOLERANT_TLS1_1 = 2, // Intolerant of TLS 1.1 or higher. | 158 TLS_INTOLERANT_TLS1_1 = 2, // Intolerant of TLS 1.1 or higher. |
| 159 TLS_INTOLERANT_TLS1_2 = 3, // Intolerant of TLS 1.2 or higher. | 159 TLS_INTOLERANT_TLS1_2 = 3, // Intolerant of TLS 1.2 or higher. |
| 160 TLS_INTOLERANT_TLS1_3 = 4, // Intolerant of TLS 1.3 or higher. |
| 160 }; | 161 }; |
| 161 | 162 |
| 162 // Values which control how the server reacts in response to a ClientHello | 163 // Values which control how the server reacts in response to a ClientHello |
| 163 // it is intolerant of. | 164 // it is intolerant of. |
| 164 enum TLSIntoleranceType { | 165 enum TLSIntoleranceType { |
| 165 TLS_INTOLERANCE_ALERT = 0, // Send a handshake_failure alert. | 166 TLS_INTOLERANCE_ALERT = 0, // Send a handshake_failure alert. |
| 166 TLS_INTOLERANCE_CLOSE = 1, // Close the connection. | 167 TLS_INTOLERANCE_CLOSE = 1, // Close the connection. |
| 167 TLS_INTOLERANCE_RESET = 2, // Send a TCP reset. | 168 TLS_INTOLERANCE_RESET = 2, // Send a TCP reset. |
| 168 }; | 169 }; |
| 169 | 170 |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 bool no_anonymous_ftp_user_; | 422 bool no_anonymous_ftp_user_; |
| 422 | 423 |
| 423 std::unique_ptr<ScopedPortException> allowed_port_; | 424 std::unique_ptr<ScopedPortException> allowed_port_; |
| 424 | 425 |
| 425 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); | 426 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); |
| 426 }; | 427 }; |
| 427 | 428 |
| 428 } // namespace net | 429 } // namespace net |
| 429 | 430 |
| 430 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ | 431 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ |
| OLD | NEW |