Connecting to a TLSv1 server with various client options
(self)
| 3675 | |
| 3676 | @requires_tls_version('TLSv1') |
| 3677 | def test_protocol_tlsv1(self): |
| 3678 | """Connecting to a TLSv1 server with various client options""" |
| 3679 | if support.verbose: |
| 3680 | sys.stdout.write("\n") |
| 3681 | try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLSv1, 'TLSv1') |
| 3682 | try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLSv1, 'TLSv1', ssl.CERT_OPTIONAL) |
| 3683 | try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLSv1, 'TLSv1', ssl.CERT_REQUIRED) |
| 3684 | if has_tls_version('SSLv3'): |
| 3685 | try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_SSLv3, False) |
| 3686 | try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLS, False, |
| 3687 | client_options=ssl.OP_NO_TLSv1) |
| 3688 | |
| 3689 | @requires_tls_version('TLSv1_1') |
| 3690 | def test_protocol_tlsv1_1(self): |
nothing calls this directly
no test coverage detected