[Python-checkins] bpo-34710: fix SSL module build (GH-9347)

Christian Heimes webhook-mailer at python.org
Mon Sep 17 07:53:36 EDT 2018


https://github.com/python/cpython/commit/b3a271fc0ce3e13e427be8914decfc205a220ca8
commit: b3a271fc0ce3e13e427be8914decfc205a220ca8
branch: master
author: Alexandru Ardelean <ardeleanalex at gmail.com>
committer: Christian Heimes <christian at python.org>
date: 2018-09-17T04:53:31-07:00
summary:

bpo-34710: fix SSL module build (GH-9347)

Include ``openssl/dh.h`` header file to fix implicit function declaration of ``DH_free()``.

Signed-off-by: Alexandru Ardelean <ardeleanalex at gmail.com>

files:
A Misc/NEWS.d/next/Build/2018-09-17-13-56-12.bpo-34710.ARqIAK.rst
M 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
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 2bce4816d26f..3c9388480941 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



More information about the Python-checkins mailing list