Connecting to a TLSv1.1 server with various client options. Testing against older TLS versions.
(self)
| 3688 | |
| 3689 | @requires_tls_version('TLSv1_1') |
| 3690 | def test_protocol_tlsv1_1(self): |
| 3691 | """Connecting to a TLSv1.1 server with various client options. |
| 3692 | Testing against older TLS versions.""" |
| 3693 | if support.verbose: |
| 3694 | sys.stdout.write("\n") |
| 3695 | try_protocol_combo(ssl.PROTOCOL_TLSv1_1, ssl.PROTOCOL_TLSv1_1, 'TLSv1.1') |
| 3696 | if has_tls_version('SSLv3'): |
| 3697 | try_protocol_combo(ssl.PROTOCOL_TLSv1_1, ssl.PROTOCOL_SSLv3, False) |
| 3698 | try_protocol_combo(ssl.PROTOCOL_TLSv1_1, ssl.PROTOCOL_TLS, False, |
| 3699 | client_options=ssl.OP_NO_TLSv1_1) |
| 3700 | |
| 3701 | try_protocol_combo(ssl.PROTOCOL_TLS, ssl.PROTOCOL_TLSv1_1, 'TLSv1.1') |
| 3702 | try_protocol_combo(ssl.PROTOCOL_TLSv1_1, ssl.PROTOCOL_TLSv1_2, False) |
| 3703 | try_protocol_combo(ssl.PROTOCOL_TLSv1_2, ssl.PROTOCOL_TLSv1_1, False) |
| 3704 | |
| 3705 | @requires_tls_version('TLSv1_2') |
| 3706 | def test_protocol_tlsv1_2(self): |
nothing calls this directly
no test coverage detected