(self, conn, where, ret)
| 386 | self.sendHello() |
| 387 | |
| 388 | def customHandshakeCallback(self, conn, where, ret): |
| 389 | # To be deleted when the support for Twisted between >=16.4.0 and < 17.1.0 is dropped |
| 390 | from OpenSSL.SSL import SSL_CB_HANDSHAKE_START, SSL_CB_HANDSHAKE_DONE |
| 391 | if where == SSL_CB_HANDSHAKE_START: |
| 392 | self._client.ui.showDebugMessage("TLS handshake started") |
| 393 | if where == SSL_CB_HANDSHAKE_DONE: |
| 394 | self._client.ui.showDebugMessage("TLS handshake done") |
| 395 | self.handshakeCompleted() |
| 396 | |
| 397 | def handshakeCompleted(self): |
| 398 | self._serverCertificateTLS = self.transport.getPeerCertificate() |
nothing calls this directly
no test coverage detected