]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.7] bpo-37428: Don't set PHA verify flag on client side (GH-14421) (GH-14493)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 1 Jul 2019 06:51:40 +0000 (23:51 -0700)
committerGitHub <noreply@github.com>
Mon, 1 Jul 2019 06:51:40 +0000 (23:51 -0700)
commitcf7617460a920dd75ced017792045d3ae77648ad
tree3f23bbe13f1cbcf4c7e162ede5a3eeb4c55cc494
parente2e41cd114ae761fbfee4e7c6539f5df5c8c7116
[3.7] bpo-37428: Don't set PHA verify flag on client side (GH-14421) (GH-14493)

SSLContext.post_handshake_auth = True no longer sets
SSL_VERIFY_POST_HANDSHAKE verify flag for client connections. Although the
option is documented as ignored for clients, OpenSSL implicitly enables cert
chain validation when the flag is set.

Signed-off-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue37428
(cherry picked from commit f0f5930ac88482ef896283db5be9b8d508d077db)

Co-authored-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue37428
Lib/test/test_ssl.py
Misc/NEWS.d/next/Library/2019-06-27-13-27-02.bpo-37428._wcwUd.rst [new file with mode: 0644]
Modules/_ssl.c