Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 351f539

Browse files
committed
Issue #18582: HMAC_CTX_copy() is not available on OpenSSL < 1.0
1 parent 7058dad commit 351f539

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Modules/_hashopenssl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,8 @@ EVP_new(PyObject *self, PyObject *args, PyObject *kwdict)
498498

499499

500500

501-
#if (!defined(OPENSSL_NO_HMAC) && !defined(OPENSSL_NO_SHA))
501+
#if (OPENSSL_VERSION_NUMBER >= 0x10000000 && !defined(OPENSSL_NO_HMAC) \
502+
&& !defined(OPENSSL_NO_SHA))
502503

503504
#define PY_PBKDF2_HMAC 1
504505

0 commit comments

Comments
 (0)