From: Dave C. <da...@cr...> - 2006-11-22 20:24:13
|
Hiya folks, My little email client, Polymer, has been using PyOpenSSL for a while. I've been missing certain functionality, so I've patched it in as best I can. I'd like to guage interest in putting the patch into the main distribution. Basically: 1) Add a get_cipher_name method, returns current cipher name or None (if there's no cipher). 2) Add a get_comp_name method, returns current compression algorithm name or None. 3) Added support for Python file protocol objects. Basically, if you pass in something that has a read and write method, then PyOpenSSL will use them. Sockets don't have these methods, so you still get the efficient C-path direct to the socket if you pass in a socket, but it allows you to insert Python code after the TLS layer. I find this useful to capture statistics, but it could be useful for other things. These three could, of course, be three patches, or they could be one. I don't much care either way. :-) Dave. -- Dave Cridland - mailto:da...@cr... - xmpp:dw...@ja... - acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/ - http://dave.cridland.net/ Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade |