[issue21965] Add support for Memory BIO to _ssl
Geert Jansen
report at bugs.python.org
Sun Oct 5 17:22:55 CEST 2014
Geert Jansen added the comment:
Maybe an example is useful on how the Memory BIO stuff can be used to implement SSL on top of a proactor event loop. I just added support for this to my Gruvi project in the branch "feat-memory-bio":
An "SslPipe" utility class that uses the memory BIOs:
https://github.com/geertj/gruvi/blob/feat-memory-bio/gruvi/ssl.py#L23
A PEP-3156 style transport:
https://github.com/geertj/gruvi/blob/feat-memory-bio/gruvi/ssl.py#L234
And a backport of this for Python 2.7, 3,3 and 3.4:
https://github.com/geertj/gruvi/blob/feat-memory-bio/gruvi/_sslcompat.c
https://github.com/geertj/gruvi/blob/feat-memory-bio/gruvi/sslcompat.py
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21965>
_______________________________________
More information about the Python-bugs-list
mailing list