There was an error while loading. Please reload this page.
1 parent 7058dad commit 351f539Copy full SHA for 351f539
1 file changed
Modules/_hashopenssl.c
@@ -498,7 +498,8 @@ EVP_new(PyObject *self, PyObject *args, PyObject *kwdict)
498
499
500
501
-#if (!defined(OPENSSL_NO_HMAC) && !defined(OPENSSL_NO_SHA))
+#if (OPENSSL_VERSION_NUMBER >= 0x10000000 && !defined(OPENSSL_NO_HMAC) \
502
+ && !defined(OPENSSL_NO_SHA))
503
504
#define PY_PBKDF2_HMAC 1
505
0 commit comments