]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.9] bpo-43522: Fix SSLContext.hostname_checks_common_name (GH-24899) 25451/head
authorChristian Heimes <christian@python.org>
Sat, 17 Apr 2021 08:07:19 +0000 (10:07 +0200)
committerChristian Heimes <christian@python.org>
Sat, 17 Apr 2021 09:06:09 +0000 (11:06 +0200)
commit330b49e397168df789fd0dd20cfe7e81b8e47258
treec4b28a8979106bbf8a5d3eaa39ff96720c97b3c1
parente1903e11a3d42512effe336026e0c67f602e5848
[3.9] bpo-43522: Fix SSLContext.hostname_checks_common_name (GH-24899)

Fix problem with ssl.SSLContext.hostname_checks_common_name. OpenSSL does not
copy hostflags from *struct SSL_CTX* to *struct SSL*.

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

Co-authored-by: Christian Heimes <christian@python.org>
18 files changed:
Doc/library/ssl.rst
Lib/test/allsans.pem
Lib/test/capath/b1930218.0
Lib/test/capath/ceff1710.0
Lib/test/idnsans.pem
Lib/test/keycert2.pem
Lib/test/keycert3.pem
Lib/test/keycert4.pem
Lib/test/keycertecc.pem
Lib/test/make_ssl_certs.py
Lib/test/nosan.pem [new file with mode: 0644]
Lib/test/pycacert.pem
Lib/test/pycakey.pem
Lib/test/revocation.crl
Lib/test/test_asyncio/utils.py
Lib/test/test_ssl.py
Misc/NEWS.d/next/Library/2021-03-16-22-37-32.bpo-43522.dhNwOu.rst [new file with mode: 0644]
Modules/_ssl.c