Skip to content

Commit b3a271f

Browse files
commodotiran
authored andcommitted
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 <[email protected]>
1 parent e0e5065 commit b3a271f

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
@@ -63,6 +63,7 @@ static PySocketModule_APIObject PySocketModule;
6363
#include "openssl/err.h"
6464
#include "openssl/rand.h"
6565
#include "openssl/bio.h"
66+
#include "openssl/dh.h"
6667

6768
#ifndef HAVE_X509_VERIFY_PARAM_SET1_HOST
6869
# ifdef LIBRESSL_VERSION_NUMBER

0 commit comments

Comments
 (0)