From: Christian Heimes Date: Sat, 19 Oct 2013 15:59:48 +0000 (+0200) Subject: Issue #18582: HMAC_CTX_copy() is not available on OpenSSL < 1.0 X-Git-Tag: v3.4.0a4~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=351f539ad8973500a86d117eaeed2028efa6427b;p=thirdparty%2FPython%2Fcpython.git Issue #18582: HMAC_CTX_copy() is not available on OpenSSL < 1.0 --- diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c index 9dba5c7a9434..3f796c30d64f 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