(self)
| 96 | self._pump(client, server) |
| 97 | |
| 98 | def test_anonymous_cipher(self): |
| 99 | if os.name == "nt": |
| 100 | raise Skipped("Windows SChannel lacks anonymous cipher support.") |
| 101 | """ With no configuration at all, the client default |
| 102 | VERIFY_PEER_NAME should preclude anonymous cipher TLS negotiation. |
| 103 | """ |
| 104 | server = SslTest.SslTestConnection(self.server_domain, mode=Transport.SERVER) |
| 105 | client = SslTest.SslTestConnection(self.client_domain) |
| 106 | |
| 107 | # check that no SSL connection exists |
| 108 | assert not server.ssl.cipher_name() |
| 109 | assert not client.ssl.protocol_name() |
| 110 | |
| 111 | # client.transport.trace(Transport.TRACE_DRV) |
| 112 | # server.transport.trace(Transport.TRACE_DRV) |
| 113 | |
| 114 | client.connection.open() |
| 115 | server.connection.open() |
| 116 | self._pump(client, server) |
| 117 | |
| 118 | assert client.transport.closed |
| 119 | assert server.transport.closed |
| 120 | assert client.connection.state & Endpoint.REMOTE_UNINIT |
| 121 | assert server.connection.state & Endpoint.REMOTE_UNINIT |
| 122 | |
| 123 | def test_simple_anonymous(self): |
| 124 | if os.name == "nt": |
nothing calls this directly
no test coverage detected