-
-
Notifications
You must be signed in to change notification settings - Fork 30k
-
-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ftplib should support SSL contexts #53052
Comments
3.2 introduces SSL contexts, which allow bundling SSL configuration options, certificates and private keys into a single (potentially long-lived) structure. The FTP_TLS constructor should allow passing an SSL context object instead of a key/cert pair. |
I'm assigning this one to me. My proposal:
Makes sense? |
Entirely sense to me :) |
Patch in attachment. |
You could add checks for: self.assertIs(self.client.sock.context, ctx)
[...]
self.assertIs(sock.context, ctx) (I know, the "context" attribute isn't documented, I'm going to fix |
Now documented at: |
If you're fine with the current patch I can go on and commit it (including the context attribute test). |
Committed in r81548. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: