diff options
Diffstat (limited to 'Modules/_hashopenssl.c')
-rw-r--r-- | Modules/_hashopenssl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c index 9dba5c7..3f796c3 100644 --- a/Modules/_hashopenssl.c +++ b/Modules/_hashopenssl.c @@ -498,7 +498,8 @@ EVP_new(PyObject *self, PyObject *args, PyObject *kwdict) -#if (!defined(OPENSSL_NO_HMAC) && !defined(OPENSSL_NO_SHA)) +#if (OPENSSL_VERSION_NUMBER >= 0x10000000 && !defined(OPENSSL_NO_HMAC) \ + && !defined(OPENSSL_NO_SHA)) #define PY_PBKDF2_HMAC 1 |