summaryrefslogtreecommitdiffstats
path: root/Lib/ssl.py
Commit message (Collapse)AuthorAgeFilesLines
* (Merge 3.1) Issue #12012: ssl.PROTOCOL_SSLv2 becomes optionalVictor Stinner2011-05-091-11/+13
| | | | | | | OpenSSL is now compiled with OPENSSL_NO_SSL2 defined (without the SSLv2 protocol) on Debian: fix the ssl module on Debian Testing and Debian Sid. Optimize also ssl.get_protocol_name(): speed does matter!
* Merged revisions 88664 via svnmerge fromAntoine Pitrou2011-02-261-9/+26
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88664 | antoine.pitrou | 2011-02-27 00:24:06 +0100 (dim., 27 févr. 2011) | 4 lines Issue #11326: Add the missing connect_ex() implementation for SSL sockets, and make it work for non-blocking connects. ........
* Issue #9729: Fix the signature of SSLSocket.recvfrom() andAntoine Pitrou2010-09-141-8/+10
| | | | | | | | | SSLSocket.sendto() to match the corresponding socket methods. Also, fix various SSLSocket methods to raise socket.error rather than an unhelpful TypeError when called on an unconnected socket. Original patch by Andrew Bennetts. NOTE: obviously, these methods are untested and unused in the real world...
* Issue #8086: In :func:`ssl.DER_cert_to_PEM_cert()`, fix missing newlineAntoine Pitrou2010-04-271-1/+1
| | | | before the certificate footer. Patch by Kyle VanderBeek.
* When calling getpeername() in SSLSocket.__init__, only silence exceptionsAntoine Pitrou2010-04-261-1/+4
| | | | caused by the "socket not connected" condition.
* Issue #5103: SSL handshake would ignore the socket timeout and blockAntoine Pitrou2010-04-241-6/+1
| | | | indefinitely if the other end didn't respond.
* Issue #5238: Calling makefile() on an SSL object would prevent theAntoine Pitrou2010-04-231-1/+3
| | | | underlying socket from being closed until all objects get truely destroyed.
* Issue #7943: Fix circular reference created when instantiating an SSLAntoine Pitrou2010-04-231-8/+9
| | | | socket. Initial patch by Péter Szabó.
* Issue #8322: Add a *ciphers* argument to SSL sockets, so as to change theAntoine Pitrou2010-04-171-5/+9
| | | | available cipher list. Helps fix test_ssl with OpenSSL 1.0.0.
* Issue #8321: Give access to OpenSSL version numbers from the `ssl` module,Antoine Pitrou2010-04-051-0/+1
| | | | | using the new attributes `ssl.OPENSSL_VERSION`, `ssl.OPENSSL_VERSION_INFO` and `ssl.OPENSSL_VERSION_NUMBER`.
* Issue #3890: Fix recv() and recv_into() on non-blocking SSL sockets.Antoine Pitrou2010-03-211-20/+6
|
* #7730: remove spaces after functions namesEzio Melotti2010-01-181-17/+17
|
* fix name collision issuesBenjamin Peterson2008-12-311-3/+3
|
* #4788 qualify some bare except clausesBenjamin Peterson2008-12-311-2/+2
|
* fix for release blocker 3910, 2.6 regression in socket.ssl methodBill Janssen2008-09-291-2/+13
|
* incorporate fixes from issue 3162; SSL doc patchBill Janssen2008-09-081-5/+39
|
* remove duplicate close() from ssl.py; expose unwrap and add test for itBill Janssen2008-08-121-4/+8
|
* various SSL fixes; issues 1251, 3162, 3212Bill Janssen2008-06-281-256/+105
|
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-1/+1
|
* Add support for asyncore server-side SSL support. This requiresBill Janssen2007-09-161-25/+311
| | | | | | | | | | | | | | | adding the 'makefile' method to ssl.SSLSocket, and importing the requisite fakefile class from socket.py, and making the appropriate changes to it to make it use the SSL connection. Added sample HTTPS server to test_ssl.py, and test that uses it. Change SSL tests to use https://svn.python.org/, instead of www.sf.net and pop.gmail.com. Added utility function to ssl module, get_server_certificate, to wrap up the several things to be done to pull a certificate from a remote server.
* More work on SSL support.Bill Janssen2007-09-101-10/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Added docstrings to methods and functions.Bill Janssen2007-08-301-0/+36
|
* This contains a number of things:Bill Janssen2007-08-291-125/+74
| | | | | | | | | | | | | | | | 1) Improve the documentation of the SSL module, with a fuller explanation of certificate usage, another reference, proper formatting of this and that. 2) Fix Windows bug in ssl.py, and general bug in sslsocket.close(). Remove some unused code from ssl.py. Allow accept() to be called on sslsocket sockets. 3) Use try-except-else in import of ssl in socket.py. Deprecate use of socket.ssl(). 4) Remove use of socket.ssl() in every library module, except for test_socket_ssl.py and test_ssl.py.
* Bill Janssen wrote:Guido van Rossum2007-08-261-4/+5
| | | | | Here's a patch which makes test_ssl a better player in the buildbots environment. I deep-ended on "try-except-else" clauses.
* Server-side SSL and certificate validation, by Bill Janssen.Guido van Rossum2007-08-251-0/+252
While cleaning up Bill's C style, I may have cleaned up some code he didn't touch as well (in _ssl.c).