summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Janssen <janssen@parc.com>2008-08-12 17:09:27 (GMT)
committerBill Janssen <janssen@parc.com>2008-08-12 17:09:27 (GMT)
commit688356f59f3b0fe2412a5f66b79f0f9fdc4a98d2 (patch)
tree9680d635167de23e1644a59a707c696274a98e4f
parent40a0f66e95e18bd7a76829ca312fce690d0c0747 (diff)
downloadcpython-688356f59f3b0fe2412a5f66b79f0f9fdc4a98d2.zip
cpython-688356f59f3b0fe2412a5f66b79f0f9fdc4a98d2.tar.gz
cpython-688356f59f3b0fe2412a5f66b79f0f9fdc4a98d2.tar.bz2
update ssl documentation
-rw-r--r--Doc/library/ssl.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst
index 658d972..a0a6478 100644
--- a/Doc/library/ssl.rst
+++ b/Doc/library/ssl.rst
@@ -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