I am tasked with migrating a server's networking from plain sockets to SSL in python 2.5, and I've run into a snag. It seems that just about no SSL library out there fully implements the socket interface, so the code we currently have can't be straight migrated.
Specifically, I can't seem to find a library that supports the 'setblocking' method (most of these are wrappers, so would it be terrible to just address the wrapped socket directly?) and most don't seem to treat the wrapped socket as a file-like device, so the crucial 'select' method won't work (again, could I run select on the wrapped socket?).
(read, write, error) = select([socket], [socket], [], 0.2)
I have tried tlslite and M2Crypto so far, but neither seem to work transparently as sockets.
Any ideas would be appreciated.