Browse Source

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>
pull/9361/head
Alexandru Ardelean 8 years ago
committed by Christian Heimes
parent
commit
b3a271fc0c
  1. 1
      Misc/NEWS.d/next/Build/2018-09-17-13-56-12.bpo-34710.ARqIAK.rst
  2. 1
      Modules/_ssl.c

1
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.

1
Modules/_ssl.c

@ -63,6 +63,7 @@ static PySocketModule_APIObject PySocketModule;
#include "openssl/err.h"
#include "openssl/rand.h"
#include "openssl/bio.h"
#include "openssl/dh.h"
#ifndef HAVE_X509_VERIFY_PARAM_SET1_HOST
# ifdef LIBRESSL_VERSION_NUMBER

Loading…
Cancel
Save