From ce27a72ca50271fe93d900b2cf97c18b5a816dcc Mon Sep 17 00:00:00 2001 From: Carl Bordum Hansen Date: Sun, 4 Oct 2020 15:20:08 +0200 Subject: [PATCH] bpo-29394: docs for tunnelling TLS through TLS --- Doc/library/ssl.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst index 1cfd165202d0ef..2c78a324146c26 100644 --- a/Doc/library/ssl.rst +++ b/Doc/library/ssl.rst @@ -1820,6 +1820,9 @@ to speed up repeated connections from the same clients. *session*, see :attr:`~SSLSocket.session`. + To wrap an :class:`SSLSocket` in another :class:`SSLSocket`, use + :meth:`SSLContext.wrap_bio`. + .. versionchanged:: 3.5 Always allow a server_hostname to be passed, even if OpenSSL does not have SNI.