summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-09-17 05:18:23 -0700
committerGitHub <noreply@github.com>2018-09-17 05:18:23 -0700
commite2c0aea670d603b187733606a4601d77f355bc47 (patch)
tree41803d1f4bc21ecf5085cb97a8aa73ee30544c9b
parent1d3078849381335008379e3de96d5a81d2131113 (diff)
downloadcpython-git-e2c0aea670d603b187733606a4601d77f355bc47.tar.gz
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@gmail.com> (cherry picked from commit b3a271fc0ce3e13e427be8914decfc205a220ca8) Co-authored-by: Alexandru Ardelean <ardeleanalex@gmail.com>
-rw-r--r--Misc/NEWS.d/next/Build/2018-09-17-13-56-12.bpo-34710.ARqIAK.rst1
-rw-r--r--Modules/_ssl.c1
2 files changed, 2 insertions, 0 deletions
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 0000000000..b06289d091
--- /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 bf379f01a1..6af48ee0ff 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