[issue8806] ftplib should support SSL contexts

Giampaolo Rodola' report at bugs.python.org
Mon May 24 20:48:26 CEST 2010


Giampaolo Rodola' <g.rodola at gmail.com> added the comment:

I'm assigning this one to me.
Btw, before writing anything I think it would be better to decide what to do first, possibly by adopting the same approach everywhere (smtplib, imaplib, poplib, urllib and http.client).

My proposal: 

- the user should still be able to use keyfile and certfile if desired, they're quicker to use and backward compatibility must be maintained.

- SSL context can be provided by passing a new "context" argument to the constructor.

- if context arg is passed FTP_TLS.ssl_version should be ignored and SSLContext.protocol used instead

- keyfile/certfile and context arguments should be mutually exclusive (ValueError)


Makes sense?

----------
assignee:  -> giampaolo.rodola

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


More information about the Python-bugs-list mailing list