From: Christian Heimes Date: Mon, 17 Sep 2018 13:42:30 +0000 (-0700) Subject: [2.7] bpo-34710: fix SSL module build (GH-9347) (GH-9353) X-Git-Tag: v2.7.16rc1~141 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f883fcb9b50b8335953b3849b7f224d5cd59d56;p=thirdparty%2FPython%2Fcpython.git [2.7] bpo-34710: fix SSL module build (GH-9347) (GH-9353) Include ``openssl/dh.h`` header file to fix implicit function declaration of ``DH_free()``. Signed-off-by: Alexandru Ardelean . (cherry picked from commit b3a271fc0ce3e13e427be8914decfc205a220ca8) Co-authored-by: Alexandru Ardelean https://bugs.python.org/issue34710 --- 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 000000000000..b06289d091e5 --- /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 d0ce913d3d89..a96c41926036 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -74,6 +74,7 @@ #include "openssl/ssl.h" #include "openssl/err.h" #include "openssl/rand.h" +#include "openssl/dh.h" /* SSL error object */ static PyObject *PySSLErrorObject;