From: Carl Bordum Hansen Date: Thu, 29 Feb 2024 20:56:04 +0000 (+0100) Subject: gh-73580: Docs for tunnelling TLS through TLS (GH-22539) X-Git-Tag: v3.13.0a5~176 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=91c3c64237f56bde9d1c1b8127fdcb02a112b5a4;p=thirdparty%2FPython%2Fcpython.git gh-73580: Docs for tunnelling TLS through TLS (GH-22539) --- diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst index fa81c3f208cf..ce8f3dd2d317 100644 --- a/Doc/library/ssl.rst +++ b/Doc/library/ssl.rst @@ -1790,6 +1790,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.