Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Side by Side Diff: net/test/spawned_test_server/base_test_server.h

Issue 2800853008: Add a dedicated error code for TLS 1.3 interference. (Closed)
Patch Set: mpearson comment Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/ssl/ssl_config.cc ('k') | net/tools/testserver/testserver.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/ssl/ssl_config.cc ('k') | net/tools/testserver/testserver.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698