Staging
v0.8.1
https://github.com/python/cpython
Revision 231b404cb026649d4b7172e75ac394ef558efe60 authored by Victor Stinner on 13 January 2015, 23:19:09 UTC, committed by Victor Stinner on 13 January 2015, 23:19:09 UTC
The new SSL implementation is based on the new ssl.MemoryBIO which is only
available on Python 3.5. On Python 3.4 and older, the legacy SSL implementation
(using SSL_write, SSL_read, etc.) is used. The proactor event loop only
supports the new implementation.

The new asyncio.sslproto module adds _SSLPipe, SSLProtocol and
_SSLProtocolTransport classes. _SSLPipe allows to "wrap" or "unwrap" a socket
(switch between cleartext and SSL/TLS).

Patch written by Antoine Pitrou. sslproto.py is based on gruvi/ssl.py of the
gruvi project written by Geert Jansen.

This change adds SSL support to ProactorEventLoop on Python 3.5 and newer!

It becomes also possible to implement STARTTTLS: switch a cleartext socket to
SSL.
1 parent 9036e49
History
Tip revision: 231b404cb026649d4b7172e75ac394ef558efe60 authored by Victor Stinner on 13 January 2015, 23:19:09 UTC
Issue #22560: New SSL implementation based on ssl.MemoryBIO
Tip revision: 231b404
File Mode Size
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
Tools
.bzrignore -rw-r--r-- 584 bytes
.gitignore -rw-r--r-- 971 bytes
.hgeol -rw-r--r-- 800 bytes
.hgignore -rw-r--r-- 1.3 KB
.hgtags -rw-r--r-- 6.9 KB
.hgtouch -rw-r--r-- 1.2 KB
LICENSE -rw-r--r-- 12.5 KB
Makefile.pre.in -rw-r--r-- 54.0 KB
README -rw-r--r-- 6.6 KB
config.guess -rwxr-xr-x 41.9 KB
config.sub -rwxr-xr-x 34.9 KB
configure -rwxr-xr-x 440.2 KB
configure.ac -rw-r--r-- 138.6 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 40.2 KB
setup.py -rw-r--r-- 95.2 KB

README

back to top