Skip to content

Commit 5f883fc

Browse files
tiranmiss-islington
authored andcommitted
[2.7] bpo-34710: fix SSL module build (GH-9347) (GH-9353)
Include ``openssl/dh.h`` header file to fix implicit function declaration of ``DH_free()``. Signed-off-by: Alexandru Ardelean <[email protected]>. (cherry picked from commit b3a271f) Co-authored-by: Alexandru Ardelean <[email protected]> https://bugs.python.org/issue34710
1 parent afa591d commit 5f883fc

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed SSL module build with OpenSSL & pedantic CFLAGS.

Modules/_ssl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
#include "openssl/ssl.h"
7575
#include "openssl/err.h"
7676
#include "openssl/rand.h"
77+
#include "openssl/dh.h"
7778

7879
/* SSL error object */
7980
static PyObject *PySSLErrorObject;

0 commit comments

Comments
 (0)