(self)
| 150 | self._pump(client, server) |
| 151 | |
| 152 | def test_ssl_with_small_buffer(self): |
| 153 | self.server_domain.set_credentials(self._testpath("server-certificate.pem"), |
| 154 | self._testpath("server-private-key.pem"), |
| 155 | "server-password") |
| 156 | self.client_domain.set_trusted_ca_db(self._testpath("ca-certificate.pem")) |
| 157 | self.client_domain.set_peer_authentication(SSLDomain.VERIFY_PEER) |
| 158 | |
| 159 | server = SslTest.SslTestConnection(self.server_domain, mode=Transport.SERVER) |
| 160 | client = SslTest.SslTestConnection(self.client_domain) |
| 161 | |
| 162 | client.connection.open() |
| 163 | server.connection.open() |
| 164 | |
| 165 | small_buffer_size = 1 |
| 166 | self._pump(client, server, small_buffer_size) |
| 167 | |
| 168 | assert client.ssl.protocol_name() is not None |
| 169 | client.connection.close() |
| 170 | server.connection.close() |
| 171 | self._pump(client, server) |
| 172 | |
| 173 | def test_server_certificate_fail(self): |
| 174 | """ Test that default configured clients cannot connect to a server that has |
nothing calls this directly
no test coverage detected