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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
115 // be able to connect if only 3DES is specified. | 115 // be able to connect if only 3DES is specified. |
116 BULK_CIPHER_3DES = (1 << 3), | 116 BULK_CIPHER_3DES = (1 << 3), |
117 | 117 |
118 BULK_CIPHER_AES128GCM = (1 << 4), | 118 BULK_CIPHER_AES128GCM = (1 << 4), |
119 }; | 119 }; |
120 | 120 |
121 // NOTE: the values of these enumerators are passed to the the Python test | 121 // NOTE: the values of these enumerators are passed to the the Python test |
122 // server. Do not change them. | 122 // server. Do not change them. |
123 enum TLSIntolerantLevel { | 123 enum TLSIntolerantLevel { |
124 TLS_INTOLERANT_NONE = 0, | 124 TLS_INTOLERANT_NONE = 0, |
125 TLS_INTOLERANT_ALL = 1, // Intolerant of all TLS versions. | 125 TLS_INTOLERANT_ALL = 1, // Intolerant of all TLS versions. |
126 TLS_INTOLERANT_TLS1_1 = 2, // Intolerant of TLS 1.1 or higher. | 126 TLS_INTOLERANT_TLS1_1 = 2, // Intolerant of TLS 1.1 or higher. |
127 TLS_INTOLERANT_TLS1_2 = 3, // Intolerant of TLS 1.2 or higher. | 127 TLS_INTOLERANT_TLS1_2 = 3, // Intolerant of TLS 1.2 or higher. |
128 TLS_INTOLERANT_TLS1_2 = 4, // Intolerant of TLS 1.3 or higher. | |
davidben
2016/07/18 09:46:40
Typo? (I guess leave this alone for now until we n
| |
128 }; | 129 }; |
129 | 130 |
130 // Values which control how the server reacts in response to a ClientHello | 131 // Values which control how the server reacts in response to a ClientHello |
131 // it is intolerant of. | 132 // it is intolerant of. |
132 enum TLSIntoleranceType { | 133 enum TLSIntoleranceType { |
133 TLS_INTOLERANCE_ALERT = 0, // Send a handshake_failure alert. | 134 TLS_INTOLERANCE_ALERT = 0, // Send a handshake_failure alert. |
134 TLS_INTOLERANCE_CLOSE = 1, // Close the connection. | 135 TLS_INTOLERANCE_CLOSE = 1, // Close the connection. |
135 TLS_INTOLERANCE_RESET = 2, // Send a TCP reset. | 136 TLS_INTOLERANCE_RESET = 2, // Send a TCP reset. |
136 }; | 137 }; |
137 | 138 |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
364 bool no_anonymous_ftp_user_; | 365 bool no_anonymous_ftp_user_; |
365 | 366 |
366 std::unique_ptr<ScopedPortException> allowed_port_; | 367 std::unique_ptr<ScopedPortException> allowed_port_; |
367 | 368 |
368 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); | 369 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); |
369 }; | 370 }; |
370 | 371 |
371 } // namespace net | 372 } // namespace net |
372 | 373 |
373 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ | 374 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ |
OLD | NEW |