diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-09-17 05:19:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-17 05:19:08 -0700 |
commit | fff869e2a0ee3d2d65973d82e57f05479828f5a3 (patch) | |
tree | 9c5757aeaaadb7c75d82b0eaab1928a20fb6396d | |
parent | f35e4d5851555d66f1e7a36b2a37f0d82b3d1706 (diff) | |
download | cpython-git-fff869e2a0ee3d2d65973d82e57f05479828f5a3.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.rst | 1 | ||||
-rw-r--r-- | Modules/_ssl.c | 1 |
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 e0c7dfbdaa..99f24a5b37 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -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; |