]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[2.7] bpo-35264: Modules/_ssl.c: fix build with OpenSSL 1.1.0 (GH-10570)
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Wed, 11 Sep 2019 17:23:28 +0000 (20:23 +0300)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 11 Sep 2019 17:23:28 +0000 (10:23 -0700)
commit0d63669e52dd7e95708ec14e9e3e07d7dc9cd913
treec11433638b6ffd7bd89f64226f022578c82c7ae5
parentf9db011c323556ec68761263c6b91b2f75ca95ba
[2.7] bpo-35264: Modules/_ssl.c: fix build with OpenSSL 1.1.0 (GH-10570)

Fixes a build error with OpenSSL 1.1.0. There is already code in the
`_ssl.c` that handles all the weird cases of the NPN config macros (with
various OpenSSL & LibreSSL versions).
That code will provide a HAVE_NPN variable, which should be used in the
rest of the code to check whether (or what) to compile regarding NPN.

This change adds HAVE_NPN in the remaining places where it should have been
placed.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
https://bugs.python.org/issue35264
Misc/NEWS.d/next/Build/2018-11-16-15-19-09.bpo-35264.h5GxH3.rst [new file with mode: 0644]
Modules/_ssl.c