| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* bpo-29136: Add TLS 1.3 support
TLS 1.3 introduces a new, distinct set of cipher suites. The TLS 1.3
cipher suites don't overlap with cipher suites from TLS 1.2 and earlier.
Since Python sets its own set of permitted ciphers, TLS 1.3 handshake
will fail as soon as OpenSSL 1.1.1 is released. Let's enable the common
AES-GCM and ChaCha20 suites.
Additionally the flag OP_NO_TLSv1_3 is added. It defaults to 0 (no op) with
OpenSSL prior to 1.1.1. This allows applications to opt-out from TLS 1.3
now.
Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit cb5b68abdeb1b1d56c581d5b4d647018703d61e3)
|
|
|
|
| |
ChaCha20 Poly1305.
|
| |
|
|
|
|
| |
PermissionError
|
| |
|
|
|
|
|
|
| |
Adds a Python-2-only ssl module API and environment variable to
configure the default handling of SSL/TLS certificates for
HTTPS connections.
|
|
|
|
| |
is empty. Patch by Baji.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
availability of the function is checked during the compilation. Patch written
by Bernard Spil.
|
| |
|
|
|
|
|
|
| |
SNI (closes #22921)
Patch from Donald Stufft.
|
|
|
|
| |
called in the constructor
|
|
|
|
| |
The backport currently doesn't achieve anything since the function isn't used (yet).
|
|
|
|
| |
Patch by Christian Heimes and Alex Gaynor.
|
|
|
|
| |
Thanks Alex Gaynor.
|
|
|
|
|
|
| |
protocol version in use.
Backport from default.
|
|
|
|
|
| |
A contribution of Alex Gaynor and David Reid with the generous support of
Rackspace. May God have mercy on their souls.
|
|
|
|
| |
rather than silently let them emit clear text data.
|
|
|
|
|
|
| |
the new socket, the socket would linger indefinitely.
Thanks to Peter Saveliev for reporting.
|
|
|
|
| |
SSLSocket.connect_ex().
|
|
|
|
| |
(except when SSLv2 is explicitly asked for).
|
|
|
|
|
|
|
| |
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!
|
|
|
|
|
|
|
|
|
|
|
| |
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.
........
|
|
|
|
|
|
|
|
|
| |
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...
|
|
|
|
| |
before the certificate footer. Patch by Kyle VanderBeek.
|
|
|
|
| |
caused by the "socket not connected" condition.
|
|
|
|
| |
indefinitely if the other end didn't respond.
|
|
|
|
| |
underlying socket from being closed until all objects get truely destroyed.
|
|
|
|
| |
socket. Initial patch by Péter Szabó.
|
|
|
|
| |
available cipher list. Helps fix test_ssl with OpenSSL 1.0.0.
|
|
|
|
|
| |
using the new attributes `ssl.OPENSSL_VERSION`, `ssl.OPENSSL_VERSION_INFO`
and `ssl.OPENSSL_VERSION_NUMBER`.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Here's a patch which makes test_ssl a better player in the buildbots
environment. I deep-ended on "try-except-else" clauses.
|
|
While cleaning up Bill's C style, I may have cleaned up some code
he didn't touch as well (in _ssl.c).
|