From 811f4bd5a7559581681bfb1cb14c9c6881813f63 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Thu, 29 Feb 2024 22:04:02 +0100 Subject: [PATCH] [3.12] gh-73580: Docs for tunnelling TLS through TLS (GH-22539) (GH-116149) (cherry picked from commit 91c3c64237f56bde9d1c1b8127fdcb02a112b5a4) Co-authored-by: Carl Bordum Hansen --- Doc/library/ssl.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst index 9f25016ff164a5..a08bf993fb7c9d 100644 --- a/Doc/library/ssl.rst +++ b/Doc/library/ssl.rst @@ -1765,6 +1765,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.