[issue8808] imaplib should support SSL contexts

Sijin Joseph report at bugs.python.org
Wed Apr 27 22:47:49 CEST 2011


Sijin Joseph <sijinjoseph at gmail.com> added the comment:

I am attaching a patch for the default branch that adds a ssl_context parameter to IMAP4_SSL. Also added a couple of tests to test_imaplib to test the existing ctor with certfile and file and also the new one that accepts an SSLContext.

Currently if the ssl_context param is provided then the keyfile and certfile are ignored, I wasn't sure if the ssl_context should be loaded with the certfile if that is provided along with the ssl_context.

If this looks ok, I can add something similar for smtplib as well.

----------
keywords: +patch
Added file: http://bugs.python.org/file21810/8808.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8808>
_______________________________________


More information about the Python-bugs-list mailing list