PyDocs

Nav

Networking and Interprocess Communication

SSLContext.sni_callback

ssl

attribute of SSLContext · Added in 3.7not WASI
Set a callback that will be called when a server name is provided by the SSL/TLS client in the SNI extension.

If the argument is None then the callback is disabled.  The method
is called with the SSLSocket, the server name as a string, and the
SSLContext object.

See RFC 6066 for details of the SNI extension.
Changed in 3.15
  • 3.15: After the callback assigns a new SSLSocket.context, later ClientHello messages on the connection are dispatched to the new context’s sni_callback.
0 Examples
No examples for ssl/SSLContext.sni_callback.
See Also
No see-alsos for ssl/SSLContext.sni_callback
0 Notes
No notes for SSLContext.sni_callback