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

Side by Side Diff: net/tools/testserver/testserver.py

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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2013 The Chromium Authors. All rights reserved. 2 # Copyright 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """This is a simple HTTP/FTP/TCP/UDP/BASIC_AUTH_PROXY/WEBSOCKET server used for 6 """This is a simple HTTP/FTP/TCP/UDP/BASIC_AUTH_PROXY/WEBSOCKET server used for
7 testing Chrome. 7 testing Chrome.
8 8
9 It supports several test URLs, as specified by the handlers in TestPageHandler. 9 It supports several test URLs, as specified by the handlers in TestPageHandler.
10 By default, it listens on an ephemeral port and sends the port number back to 10 By default, it listens on an ephemeral port and sends the port number back to
(...skipping 2175 matching lines...) Expand 10 before | Expand all | Expand 10 after
2186 default=0, type=int, 2186 default=0, type=int,
2187 help='If non-zero then the generated ' 2187 help='If non-zero then the generated '
2188 'certificate will have this serial number') 2188 'certificate will have this serial number')
2189 self.option_parser.add_option('--tls-intolerant', dest='tls_intolerant', 2189 self.option_parser.add_option('--tls-intolerant', dest='tls_intolerant',
2190 default='0', type='int', 2190 default='0', type='int',
2191 help='If nonzero, certain TLS connections ' 2191 help='If nonzero, certain TLS connections '
2192 'will be aborted in order to test version ' 2192 'will be aborted in order to test version '
2193 'fallback. 1 means all TLS versions will be ' 2193 'fallback. 1 means all TLS versions will be '
2194 'aborted. 2 means TLS 1.1 or higher will be ' 2194 'aborted. 2 means TLS 1.1 or higher will be '
2195 'aborted. 3 means TLS 1.2 or higher will be ' 2195 'aborted. 3 means TLS 1.2 or higher will be '
2196 'aborted. 4 means TLS 1.3 or higher will be '
2196 'aborted.') 2197 'aborted.')
2197 self.option_parser.add_option('--tls-intolerance-type', 2198 self.option_parser.add_option('--tls-intolerance-type',
2198 dest='tls_intolerance_type', 2199 dest='tls_intolerance_type',
2199 default="alert", 2200 default="alert",
2200 help='Controls how the server reacts to a ' 2201 help='Controls how the server reacts to a '
2201 'TLS version it is intolerant to. Valid ' 2202 'TLS version it is intolerant to. Valid '
2202 'values are "alert", "close", and "reset".') 2203 'values are "alert", "close", and "reset".')
2203 self.option_parser.add_option('--signed-cert-timestamps-tls-ext', 2204 self.option_parser.add_option('--signed-cert-timestamps-tls-ext',
2204 dest='signed_cert_timestamps_tls_ext', 2205 dest='signed_cert_timestamps_tls_ext',
2205 default='', 2206 default='',
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
2296 'an anonymous user.') 2297 'an anonymous user.')
2297 self.option_parser.add_option('--disable-channel-id', action='store_true') 2298 self.option_parser.add_option('--disable-channel-id', action='store_true')
2298 self.option_parser.add_option('--disable-extended-master-secret', 2299 self.option_parser.add_option('--disable-extended-master-secret',
2299 action='store_true') 2300 action='store_true')
2300 self.option_parser.add_option('--token-binding-params', action='append', 2301 self.option_parser.add_option('--token-binding-params', action='append',
2301 default=[], type='int') 2302 default=[], type='int')
2302 2303
2303 2304
2304 if __name__ == '__main__': 2305 if __name__ == '__main__':
2305 sys.exit(ServerRunner().main()) 2306 sys.exit(ServerRunner().main())
OLDNEW
« no previous file with comments | « net/test/spawned_test_server/base_test_server.h ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698