[issue22921] SSLContext's check_hostname needlessly intertwined with SNI

Donald Stufft report at bugs.python.org
Sun Nov 23 23:48:28 CET 2014


Donald Stufft added the comment:

Uploaded a third patch, this is the same technique as in the -2 patch, except it fixes a missed spot in Lib/ssl.py where I needed a better error message.

Additionally this goes through and unskips all of the tests that were marked as depending on HAS_SNI when what they really depended on was the ability to set SSLContext().check_hostname = True.

This also fixes a number of tests that are currently failing whenever HAS_SNI = False that started to fail as fallout of PEP 476.

----------
Added file: http://bugs.python.org/file37260/check-hostname-no-sni-with-docs-3.patch

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


More information about the Python-bugs-list mailing list