]> granicus.if.org Git - python/commit
bpo-32819: Simplify and improve ssl.match_hostname (#5620)
authorChristian Heimes <christian@python.org>
Sat, 24 Feb 2018 13:35:56 +0000 (14:35 +0100)
committerGitHub <noreply@github.com>
Sat, 24 Feb 2018 13:35:56 +0000 (14:35 +0100)
commitaef1283ba428e33397d87cee3c54a5110861552d
tree39b2587941610bcb660a8cc1c59e8177197d9ec8
parentc29c03a34a9f3c82704b66f323ce5ea9dc89c8af
bpo-32819: Simplify and improve ssl.match_hostname (#5620)

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>
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]