Connecting to a TLSv1 server with various client options
(self)
| 3392 | |
| 3393 | @requires_tls_version('TLSv1') |
| 3394 | def test_protocol_tlsv1(self): |
| 3395 | """Connecting to a TLSv1 server with various client options""" |
| 3396 | if support.verbose: |
| 3397 | sys.stdout.write("\n") |
| 3398 | try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLSv1, 'TLSv1') |
| 3399 | try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLSv1, 'TLSv1', ssl.CERT_OPTIONAL) |
| 3400 | try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLSv1, 'TLSv1', ssl.CERT_REQUIRED) |
| 3401 | if has_tls_version('SSLv3'): |
| 3402 | try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_SSLv3, False) |
| 3403 | try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLS, False, |
| 3404 | client_options=ssl.OP_NO_TLSv1) |
| 3405 | |
| 3406 | @requires_tls_version('TLSv1_1') |
| 3407 | def test_protocol_tlsv1_1(self): |
nothing calls this directly
no test coverage detected