diff options
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r-- | Modules/_ssl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c index 380dd1b72d..c5eec7eded 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -64,6 +64,13 @@ static PySocketModule_APIObject PySocketModule; #include "openssl/rand.h" #include "openssl/bio.h" +/* Set HAVE_X509_VERIFY_PARAM_SET1_HOST for non-autoconf builds */ +#ifndef HAVE_X509_VERIFY_PARAM_SET1_HOST +# if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER > 0x1000200fL +# define HAVE_X509_VERIFY_PARAM_SET1_HOST +# endif +#endif + /* SSL error object */ static PyObject *PySSLErrorObject; static PyObject *PySSLCertVerificationErrorObject; |