8000 bpo-34710: fix SSL module build (GH-9347) · python/cpython@fff869e · GitHub
[go: up one dir, main page]

Skip to content

Commit fff869e

Browse files
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 b3a271f) Co-authored-by: Alexandru Ardelean <ardeleanalex@gmail.com>
1 parent f35e4d5 commit fff869e

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
@@ -78,6 +78,7 @@ static PySocketModule_APIObject PySocketModule;
7878
#include "openssl/err.h"
7979
#include "openssl/rand.h"
8080
#include "openssl/bio.h"
81+
#include "openssl/dh.h"
8182

8283
/* SSL error object */
8384
static PyObject *PySSLErrorObject;

0 commit comments

Comments
 (0)
0