[issue8806] ftplib should support SSL contexts

Antoine Pitrou report at bugs.python.org
Mon May 24 20:56:25 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

> 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?

Entirely sense to me :)

----------

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


More information about the Python-bugs-list mailing list