This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yselivanov
Recipients Elizacat, alex.gronholm, asvetlov, gc, gvanrossum, msornay, vstinner, yselivanov
Date 2015-10-26.20:19:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445890761.24.0.781386683195.issue23749@psf.upfronthosting.co.za>
In-reply-to
Content
Guido, Victor,

Please find attached a first draft of the patch.  It's a very early attempt (i.e. I'm not including unit tests/docstrings), and its primary purpose is to gather initial feedback.

Some points:

1. As discussed earlier, the primary API point is new transports.TLSTransport class with a `start_tls(sslcontetx, *, server_side=False, server_hostname=None)` method.

2. While experimenting with the code and unit tests, I thought that it would be great if stream writers could do start_tls too, this patch has that too.  I like this new idea -- makes it so much simpler to write protocols.
History
Date User Action Args
2015-10-26 20:19:21yselivanovsetrecipients: + yselivanov, gvanrossum, vstinner, asvetlov, alex.gronholm, msornay, Elizacat, gc
2015-10-26 20:19:21yselivanovsetmessageid: <1445890761.24.0.781386683195.issue23749@psf.upfronthosting.co.za>
2015-10-26 20:19:21yselivanovlinkissue23749 messages
2015-10-26 20:19:21yselivanovcreate