FAQ

Quoting "Antoine Pitrou" <solipsis@pitrou.net>:
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

Many thanks! Two more questions:


1. Is there any plan to backport this Python >= 3.3 feature to
Python 2?


2. Would the following lines be correct for Python 3.3?

import imaplib
IMAP4_SSL("192.168.1.1.", ssl_context =
SSLContext(ssl.PROTOCOL_SSLv3))


Cheers

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 4 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedFeb 25, '13 at 10:43p
activeMar 1, '13 at 7:03p
posts4
users2
websitepython.org

People

Translate

site design / logo © 2022 Grokbase