[New-bugs-announce] [issue17133] ssl.wrap_socket doesn't take server_hostname as a kwarg

Vinay Sajip report at bugs.python.org
Tue Feb 5 16:14:25 CET 2013


New submission from Vinay Sajip:

The wrap_socket function in ssl.py (unlike the method of the same name in SSLContext) doesn't accept a server_hostname argument, despite the fact that it's a one-liner calling SSLSocket, which does take that argument. It it like this for a reason, or just an oversight?

Unless there is some reason not to do so, I think a server_hostname kwarg should be added to the wrap_socket function.

----------
messages: 181442
nosy: pitrou, vinay.sajip
priority: normal
severity: normal
status: open
title: ssl.wrap_socket doesn't take server_hostname as a kwarg
type: enhancement
versions: Python 3.4

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


More information about the New-bugs-announce mailing list