From 8e8962fe64142739fa15f71088d8f3a047e48b6b Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Mon, 17 Sep 2018 13:00:34 +0300 Subject: [PATCH] bpo-34710: fix SSL module build Not sure if this fails on all SSL versions. This was found while building OpenWrt with Python 3.7.0 on x86 & OpenSSL 1.0.2p. The `dh.h` header is included in several files, but it doesn't seem to be included in the ones that are included in `_ssl.c` (as far as I could tell). Signed-off-by: Alexandru Ardelean --- Misc/NEWS.d/next/Build/2018-09-17-13-56-12.bpo-34710.ARqIAK.rst | 1 + Modules/_ssl.c | 1 + 2 files changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Build/2018-09-17-13-56-12.bpo-34710.ARqIAK.rst diff --git a/Misc/NEWS.d/next/Build/2018-09-17-13-56-12.bpo-34710.ARqIAK.rst b/Misc/NEWS.d/next/Build/2018-09-17-13-56-12.bpo-34710.ARqIAK.rst new file mode 100644 index 00000000000000..b06289d091e5fd --- /dev/null +++ b/Misc/NEWS.d/next/Build/2018-09-17-13-56-12.bpo-34710.ARqIAK.rst @@ -0,0 +1 @@ +Fixed SSL module build with OpenSSL & pedantic CFLAGS. diff --git a/Modules/_ssl.c b/Modules/_ssl.c index 2bce4816d26fe7..3c9388480941d4 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -63,6 +63,7 @@ static PySocketModule_APIObject PySocketModule; #include "openssl/err.h" #include "openssl/rand.h" #include "openssl/bio.h" +#include "openssl/dh.h" #ifndef HAVE_X509_VERIFY_PARAM_SET1_HOST # ifdef LIBRESSL_VERSION_NUMBER