]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[2.7] bpo-34710: fix SSL module build (GH-9347) (GH-9353)
authorChristian Heimes <christian@python.org>
Mon, 17 Sep 2018 13:42:30 +0000 (06:42 -0700)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 17 Sep 2018 13:42:30 +0000 (06:42 -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>
https://bugs.python.org/issue34710

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 d0ce913d3d899282709da55774e571ca9811274d..a96c41926036cc6b8d89b8034f701ff496ba603c 100644 (file)
@@ -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;