[Python-checkins] cpython: Issue #18582: HMAC_CTX_copy() is not available on OpenSSL < 1.0

christian.heimes python-checkins at python.org
Sat Oct 19 17:59:57 CEST 2013


http://hg.python.org/cpython/rev/88fac1574049
changeset:   86473:88fac1574049
user:        Christian Heimes <christian at cheimes.de>
date:        Sat Oct 19 17:59:48 2013 +0200
summary:
  Issue #18582: HMAC_CTX_copy() is not available on OpenSSL < 1.0

files:
  Modules/_hashopenssl.c |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c
--- a/Modules/_hashopenssl.c
+++ b/Modules/_hashopenssl.c
@@ -498,7 +498,8 @@
 
 
 
-#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
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list