]> granicus.if.org Git - python/commitdiff
bpo-34710: fix SSL module build (GH-9347)
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Mon, 17 Sep 2018 11:53:31 +0000 (14:53 +0300)
committerChristian Heimes <christian@python.org>
Mon, 17 Sep 2018 11:53:31 +0000 (04:53 -0700)
Include ``openssl/dh.h`` header file to fix implicit function declaration of ``DH_free()``.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Misc/NEWS.d/next/Build/2018-09-17-13-56-12.bpo-34710.ARqIAK.rst [new file with mode: 0644]
Modules/_ssl.c

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 (file)
index 0000000..b06289d
--- /dev/null
@@ -0,0 +1 @@
+Fixed SSL module build with OpenSSL & pedantic CFLAGS.
index 2bce4816d26fe78783489d8478da583e3e23c325..3c9388480941d47730aab51d705811971f67dbd7 100644 (file)
@@ -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