From 5bfbd763f3f34d779e6435fb13d79f61f25e1af6 Mon Sep 17 00:00:00 2001 From: Bill Janssen Date: Tue, 12 Aug 2008 17:09:57 +0000 Subject: [PATCH] update ssl documentation --- Doc/library/ssl.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst index a41c6ea6217..df161fd3c03 100644 --- a/Doc/library/ssl.rst +++ b/Doc/library/ssl.rst @@ -322,6 +322,15 @@ SSLSocket Objects else: raise +.. method:: SSLSocket.unwrap() + + Performs the SSL shutdown handshake, which removes the TLS layer + from the underlying socket, and returns the underlying socket + object. This can be used to go from encrypted operation over a + connection to unencrypted. The returned socket should always be + used for further communication with the other side of the + connection, rather than the original socket + .. index:: single: certificates .. index:: single: X509 certificate