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

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

Issue 875683002: Implement AES-GCM in tlslite. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/test/spawned_test_server/base_test_server.cc ('k') | third_party/tlslite/README.chromium » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2236 matching lines...) Expand 10 before | Expand all | Expand 10 after
2247 'certificate request should include the ' 2247 'certificate request should include the '
2248 'specified certificate_type value. This ' 2248 'specified certificate_type value. This '
2249 'option may appear multiple times, ' 2249 'option may appear multiple times, '
2250 'indicating multiple values should be send ' 2250 'indicating multiple values should be send '
2251 'in the request. Valid values are ' 2251 'in the request. Valid values are '
2252 '"rsa_sign", "dss_sign", and "ecdsa_sign". ' 2252 '"rsa_sign", "dss_sign", and "ecdsa_sign". '
2253 'If omitted, "rsa_sign" will be used.') 2253 'If omitted, "rsa_sign" will be used.')
2254 self.option_parser.add_option('--ssl-bulk-cipher', action='append', 2254 self.option_parser.add_option('--ssl-bulk-cipher', action='append',
2255 help='Specify the bulk encryption ' 2255 help='Specify the bulk encryption '
2256 'algorithm(s) that will be accepted by the ' 2256 'algorithm(s) that will be accepted by the '
2257 'SSL server. Valid values are "aes256", ' 2257 'SSL server. Valid values are "aes128gcm", '
2258 '"aes128", "3des", "rc4". If omitted, all ' 2258 '"aes256", "aes128", "3des", "rc4". If '
2259 'algorithms will be used. This option may ' 2259 'omitted, all algorithms will be used. This '
2260 'appear multiple times, indicating ' 2260 'option may appear multiple times, '
2261 'multiple algorithms should be enabled.'); 2261 'indicating multiple algorithms should be '
2262 'enabled.');
2262 self.option_parser.add_option('--ssl-key-exchange', action='append', 2263 self.option_parser.add_option('--ssl-key-exchange', action='append',
2263 help='Specify the key exchange algorithm(s)' 2264 help='Specify the key exchange algorithm(s)'
2264 'that will be accepted by the SSL server. ' 2265 'that will be accepted by the SSL server. '
2265 'Valid values are "rsa", "dhe_rsa". If ' 2266 'Valid values are "rsa", "dhe_rsa". If '
2266 'omitted, all algorithms will be used. This ' 2267 'omitted, all algorithms will be used. This '
2267 'option may appear multiple times, ' 2268 'option may appear multiple times, '
2268 'indicating multiple algorithms should be ' 2269 'indicating multiple algorithms should be '
2269 'enabled.'); 2270 'enabled.');
2270 # TODO(davidben): Add ALPN support to tlslite. 2271 # TODO(davidben): Add ALPN support to tlslite.
2271 self.option_parser.add_option('--enable-npn', dest='enable_npn', 2272 self.option_parser.add_option('--enable-npn', dest='enable_npn',
(...skipping 11 matching lines...) Expand all
2283 self.option_parser.add_option('--ocsp-server-unavailable', 2284 self.option_parser.add_option('--ocsp-server-unavailable',
2284 dest='ocsp_server_unavailable', 2285 dest='ocsp_server_unavailable',
2285 default=False, action='store_true', 2286 default=False, action='store_true',
2286 help='If set, the OCSP server will return ' 2287 help='If set, the OCSP server will return '
2287 'a tryLater status rather than the actual ' 2288 'a tryLater status rather than the actual '
2288 'OCSP response.') 2289 'OCSP response.')
2289 2290
2290 2291
2291 if __name__ == '__main__': 2292 if __name__ == '__main__':
2292 sys.exit(ServerRunner().main()) 2293 sys.exit(ServerRunner().main())
OLDNEW
« no previous file with comments | « net/test/spawned_test_server/base_test_server.cc ('k') | third_party/tlslite/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698