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 geertj
Recipients geertj, pitrou, vstinner
Date 2014-10-06.11:59:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412596740.64.0.0830219605627.issue22564@psf.upfronthosting.co.za>
In-reply-to
Content
Hi Victor,

see below my comments:

* SSLSocket.read(), SSLOBject.read() and _ssl._SSLSocket.read() taking a buffer as the second positional argument.

Both SSLSocket.read() and _SSLSocket.read() already accepted two arguments so I went for consistency. The former has been publicly documented in prior releases so I don't think it can be changed?

* versionadded for server_hostname set to 3.5

This is when it was first documented. If it's more correct to specify when it was first implemented then I can put it to 3.2.

* server_hostname property is idna encoded bytes instead of unicode

Agreed that it should be changes to unicode.

Currently SSLSocket.server_hostname is whatever was passed to the constructor, which can be unicode or an already encoded bytes instance. SSLObject.server_hostname on the other hand is always a bytes instance.

Should SSLSocket.server_hostname also be changed to always return unicode even if a bytes was passed to the constructor? I'd tend to say yes especially because the attribute was not documented before. But it would be a change in behavior.

Now that I think of it - since SSLSocket now uses SSLObject to check the hostname, and SSLObject exposes server_hostname as a bytes instance, is hostname checking currently broken for non-ascii hostnames?

* Documentation suggestions.

Mostly make sense. I will have a look.
History
Date User Action Args
2014-10-06 11:59:00geertjsetrecipients: + geertj, pitrou, vstinner
2014-10-06 11:59:00geertjsetmessageid: <1412596740.64.0.0830219605627.issue22564@psf.upfronthosting.co.za>
2014-10-06 11:59:00geertjlinkissue22564 messages
2014-10-06 11:59:00geertjcreate