MCPcopy Create free account
hub / github.com/Syncplay/syncplay / customHandshakeCallback

Method customHandshakeCallback

syncplay/protocols.py:388–395  ·  view source on GitHub ↗
(self, conn, where, ret)

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 2

handshakeCompletedMethod · 0.95
showDebugMessageMethod · 0.45

Tested by

no test coverage detected