]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
update ssl documentation
authorBill Janssen <janssen@parc.com>
Tue, 12 Aug 2008 17:09:27 +0000 (17:09 +0000)
committerBill Janssen <janssen@parc.com>
Tue, 12 Aug 2008 17:09:27 +0000 (17:09 +0000)
Doc/library/ssl.rst

index 658d972e8e5608f371731b2e9731067e28179bf1..a0a64782618bbb4b7b80778a9974dfc7eb071930 100644 (file)
@@ -279,6 +279,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
+
 .. method:: SSLSocket.getpeercert(binary_form=False)
 
    If there is no certificate for the peer on the other end of the