]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-34710: fix SSL module build (GH-9347)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 17 Sep 2018 12:19:08 +0000 (05:19 -0700)
committerGitHub <noreply@github.com>
Mon, 17 Sep 2018 12:19:08 +0000 (05:19 -0700)
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>
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 e0c7dfbdaacb2f6f252187a16a0876eb26202ca9..99f24a5b37f2640ab0ca39f8b878f257bc7e4f93 100644 (file)
@@ -78,6 +78,7 @@ static PySocketModule_APIObject PySocketModule;
 #include "openssl/err.h"
 #include "openssl/rand.h"
 #include "openssl/bio.h"
+#include "openssl/dh.h"
 
 /* SSL error object */
 static PyObject *PySSLErrorObject;