IMAP4_SSL and OpenSSL compatibility

Antoine Pitrou solipsis at pitrou.net
Tue Feb 26 07:04:15 EST 2013


W. Martin Borgert <debacle <at> debian.org> writes:
> 
> When I add an ssl_version argument to the call to
> ssl.wrap_socket() in imaplib.IMAP4_SSL.open(), I can connect to
> the Exchange server without problems:
> 
> self.sslobj = ssl.wrap_socket(self.sock, self.keyfile, self.certfile,
>                               ssl_version = ssl.PROTOCOL_SSLv3)
> 
> Would it make sense, to make this change in the Python standard
> library?

There is already the ssl_context option for that:
http://docs.python.org/3.3/library/imaplib.html#imaplib.IMAP4_SSL

Regards

Antoine.





More information about the Python-list mailing list