PyDocs

Nav

Networking and Interprocess Communication

SSLSocket.do_handshake

ssl

method of SSLSocket (source) not WASI
  • SSLSocket.do_handshake(block=False)
Start the SSL/TLS handshake.
Changed in 3.4, 3.5, 3.7
  • 3.4: The handshake method also performs match_hostname() when the check_hostname attribute of the socket’s context is true.
  • 3.5: The socket timeout is no longer reset each time bytes are received or sent. The socket timeout is now the maximum total duration of the handshake.
  • 3.7: Hostname or IP address is matched by OpenSSL during handshake. The function match_hostname() is no longer used. In case OpenSSL refuses a hostname or IP address, the handshake is aborted early and a TLS alert message is sent to the peer.
0 Examples
No examples for ssl/SSLSocket.do_handshake.
See Also
No see-alsos for ssl/SSLSocket.do_handshake
0 Notes
No notes for SSLSocket.do_handshake