mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 06:58:39 +01:00
python-cryptography: update to 1.5
The cmac patch was upstreamed (pyca/cryptography#3062). Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
diff --git a/src/_cffi_src/openssl/cmac.py b/src/_cffi_src/openssl/cmac.py
|
||||
index f4a3686..bf52144 100644
|
||||
--- a/src/_cffi_src/openssl/cmac.py
|
||||
+++ b/src/_cffi_src/openssl/cmac.py
|
||||
@@ -5,7 +5,7 @@
|
||||
from __future__ import absolute_import, division, print_function
|
||||
|
||||
INCLUDES = """
|
||||
-#if OPENSSL_VERSION_NUMBER >= 0x10001000L
|
||||
+#if !defined(OPENSSL_NO_CMAC) && OPENSSL_VERSION_NUMBER >= 0x10001000L
|
||||
#include <openssl/cmac.h>
|
||||
#endif
|
||||
"""
|
||||
@@ -28,7 +28,7 @@ void CMAC_CTX_free(CMAC_CTX *);
|
||||
"""
|
||||
|
||||
CUSTOMIZATIONS = """
|
||||
-#if OPENSSL_VERSION_NUMBER < 0x10001000L
|
||||
+#if defined(OPENSSL_NO_CMAC) || OPENSSL_VERSION_NUMBER < 0x10001000L
|
||||
|
||||
static const long Cryptography_HAS_CMAC = 0;
|
||||
typedef void CMAC_CTX;
|
||||
Reference in New Issue
Block a user