Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #39971 > unrolled thread

Re: IMAP4_SSL and OpenSSL compatibility

Started by"W. Martin Borgert" <debacle@debian.org>
First post2013-02-26 17:57 +0100
Last post2013-03-01 23:46 +0100
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: IMAP4_SSL and OpenSSL compatibility "W. Martin Borgert" <debacle@debian.org> - 2013-02-26 17:57 +0100
    Re: IMAP4_SSL and OpenSSL compatibility Matej Cepl <mcepl@redhat.com> - 2013-03-01 23:46 +0100

#39971 — Re: IMAP4_SSL and OpenSSL compatibility

From"W. Martin Borgert" <debacle@debian.org>
Date2013-02-26 17:57 +0100
SubjectRe: IMAP4_SSL and OpenSSL compatibility
Message-ID<mailman.2553.1361897864.2939.python-list@python.org>
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

[toc] | [next] | [standalone]


#40369

FromMatej Cepl <mcepl@redhat.com>
Date2013-03-01 23:46 +0100
Message-ID<slrnkj2bti.knq.mcepl@wycliff.ceplovi.cz>
In reply to#39971
On 2013-02-26, 16:57 GMT, W. Martin Borgert wrote:
>   1. Is there any plan to backport this Python >= 3.3 feature to
>      Python 2?

No, development of Python 2 ceased to exist (only important bugfixes or 
security fix will happen, IIRC)

If you need advanced use of SSL, use pyOpenSSL (it has been ported to 
Python 3 already, so you won't loose any compatibility).

Matěj

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web