diff options
author | Jeffery To <jeffery.to@gmail.com> | 2016-07-28 02:57:24 +0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2016-07-27 14:57:24 -0400 |
commit | 11997b1947837be4cd24a1edfeabad0cdd800a45 (patch) | |
tree | a55805ec4ab20c11f4794b7d8d455d2a49e92ca8 /src/_cffi_src | |
parent | e035c50510cc02e0aeaf49c60508d5d8b83120a8 (diff) | |
download | cryptography-11997b1947837be4cd24a1edfeabad0cdd800a45.tar.gz cryptography-11997b1947837be4cd24a1edfeabad0cdd800a45.tar.bz2 cryptography-11997b1947837be4cd24a1edfeabad0cdd800a45.zip |
Fixed openssl binding if no-cmac (#3062)
Diffstat (limited to 'src/_cffi_src')
-rw-r--r-- | src/_cffi_src/openssl/cmac.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/_cffi_src/openssl/cmac.py b/src/_cffi_src/openssl/cmac.py index 24aa4b31..67abc858 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 CRYPTOGRAPHY_OPENSSL_101_OR_GREATER +#if !defined(OPENSSL_NO_CMAC) && CRYPTOGRAPHY_OPENSSL_101_OR_GREATER #include <openssl/cmac.h> #endif """ @@ -28,7 +28,7 @@ void CMAC_CTX_free(CMAC_CTX *); """ CUSTOMIZATIONS = """ -#if CRYPTOGRAPHY_OPENSSL_101_OR_GREATER +#if !defined(OPENSSL_NO_CMAC) && CRYPTOGRAPHY_OPENSSL_101_OR_GREATER static const long Cryptography_HAS_CMAC = 1; #else static const long Cryptography_HAS_CMAC = 0; |