summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-10-19 15:59:48 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-10-19 15:59:48 (GMT)
commit351f539ad8973500a86d117eaeed2028efa6427b (patch)
treed91bc54aa9b2233bf32ed25a4f185e745d112a87 /Modules
parent7058dad0bd3b2f50cd04892108ffe33a5252ef78 (diff)
downloadcpython-351f539ad8973500a86d117eaeed2028efa6427b.zip
cpython-351f539ad8973500a86d117eaeed2028efa6427b.tar.gz
cpython-351f539ad8973500a86d117eaeed2028efa6427b.tar.bz2
Issue #18582: HMAC_CTX_copy() is not available on OpenSSL < 1.0
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_hashopenssl.c3
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