Mercurial > cpython-lru_cache-weakref
diff Lib/socket.py @ 43325:193020bf52dc legacy-trunk
More work on SSL support.
* Much expanded test suite:
All protocols tested against all other protocols.
All protocols tested with all certificate options.
Tests for bad key and bad cert.
Test of STARTTLS functionality.
Test of RAND_* functions.
* Fixes for threading/malloc bug.
* Issue 1065 fixed:
sslsocket class renamed to SSLSocket.
sslerror class renamed to SSLError.
Function "wrap_socket" now used to wrap an existing socket.
* Issue 1583946 finally fixed:
Support for subjectAltName added.
Subject name now returned as proper DN list of RDNs.
* SSLError exported from socket as "sslerror".
* RAND_* functions properly exported from ssl.py.
* Documentation improved:
Example of how to create a self-signed certificate.
Better indexing.
| author | Bill Janssen <janssen@parc.com> |
|---|---|
| date | Mon, 10 Sep 2007 21:51:02 +0000 |
| parents | 4771639fc049 |
| children | ee11746212b2 |
line wrap: on
line diff
--- a/Lib/socket.py Mon Sep 10 21:38:27 2007 +0000 +++ b/Lib/socket.py Mon Sep 10 21:51:02 2007 +0000 @@ -56,13 +56,13 @@ # we do an internal import here because the ssl # module imports the socket module import ssl as _realssl - warnings.warn("socket.ssl() is deprecated. Use ssl.sslsocket() instead.", + warnings.warn("socket.ssl() is deprecated. Use ssl.wrap_socket() instead.", DeprecationWarning, stacklevel=2) return _realssl.sslwrap_simple(sock, keyfile, certfile) # we need to import the same constants we used to... + from _ssl import SSLError as sslerror from _ssl import \ - sslerror, \ RAND_add, \ RAND_egd, \ RAND_status, \
