Connecting to a TLSv1.1 server with various client options. Testing against older TLS versions.
(self)
| 3405 | |
| 3406 | @requires_tls_version('TLSv1_1') |
| 3407 | def test_protocol_tlsv1_1(self): |
| 3408 | """Connecting to a TLSv1.1 server with various client options. |
| 3409 | Testing against older TLS versions.""" |
| 3410 | if support.verbose: |
| 3411 | sys.stdout.write("\n") |
| 3412 | try_protocol_combo(ssl.PROTOCOL_TLSv1_1, ssl.PROTOCOL_TLSv1_1, 'TLSv1.1') |
| 3413 | if has_tls_version('SSLv3'): |
| 3414 | try_protocol_combo(ssl.PROTOCOL_TLSv1_1, ssl.PROTOCOL_SSLv3, False) |
| 3415 | try_protocol_combo(ssl.PROTOCOL_TLSv1_1, ssl.PROTOCOL_TLS, False, |
| 3416 | client_options=ssl.OP_NO_TLSv1_1) |
| 3417 | |
| 3418 | try_protocol_combo(ssl.PROTOCOL_TLS, ssl.PROTOCOL_TLSv1_1, 'TLSv1.1') |
| 3419 | try_protocol_combo(ssl.PROTOCOL_TLSv1_1, ssl.PROTOCOL_TLSv1_2, False) |
| 3420 | try_protocol_combo(ssl.PROTOCOL_TLSv1_2, ssl.PROTOCOL_TLSv1_1, False) |
| 3421 | |
| 3422 | @requires_tls_version('TLSv1_2') |
| 3423 | def test_protocol_tlsv1_2(self): |
nothing calls this directly
no test coverage detected