Author geertj
Recipients Ben.Darnell, alex, chatgris, christian.heimes, dstufft, ezio.melotti, geertj, giampaolo.rodola, gvanrossum, janssen, pitrou, sbt, vstinner, yselivanov
Date 2014-10-05.15:22:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412522575.47.0.0630241792225.issue21965@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2014-10-05 15:22:55geertjsetrecipients: + geertj, gvanrossum, janssen, pitrou, vstinner, giampaolo.rodola, christian.heimes, ezio.melotti, alex, sbt, Ben.Darnell, yselivanov, dstufft, chatgris
2014-10-05 15:22:55geertjsetmessageid: <1412522575.47.0.0630241792225.issue21965@psf.upfronthosting.co.za>
2014-10-05 15:22:55geertjlinkissue21965 messages
2014-10-05 15:22:55geertjcreate