]> granicus.if.org Git - python/commit
[3.7] bpo-32819: Simplify and improve ssl.match_hostname (GH-5620) (#5847)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 24 Feb 2018 14:06:46 +0000 (06:06 -0800)
committerChristian Heimes <christian@python.org>
Sat, 24 Feb 2018 14:06:46 +0000 (15:06 +0100)
commit46632f4d3c1f3aef875d2ada750a298ab0510992
tree4b14643a096a98b25f599f6f5ff7835de003ea9c
parent1c37e277190565f0e30fc9281caae4c899ac3b50
[3.7] bpo-32819: Simplify and improve ssl.match_hostname (GH-5620) (#5847)

ssl.match_hostname() has been simplified and no longer depends on re and
ipaddress module for wildcard and IP addresses. Error reporting for invalid
wildcards has been improved.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit aef1283ba428e33397d87cee3c54a5110861552d)

Co-authored-by: Christian Heimes <christian@python.org>
Lib/ssl.py
Lib/test/test_ssl.py
Misc/NEWS.d/next/Library/2018-02-11-15-54-41.bpo-32819.ZTRX2Q.rst [new file with mode: 0644]