You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
695 B

  1. diff --git a/src/_cffi_src/openssl/cmac.py b/src/_cffi_src/openssl/cmac.py
  2. index f4a3686..bf52144 100644
  3. --- a/src/_cffi_src/openssl/cmac.py
  4. +++ b/src/_cffi_src/openssl/cmac.py
  5. @@ -5,7 +5,7 @@
  6. from __future__ import absolute_import, division, print_function
  7. INCLUDES = """
  8. -#if OPENSSL_VERSION_NUMBER >= 0x10001000L
  9. +#if !defined(OPENSSL_NO_CMAC) && OPENSSL_VERSION_NUMBER >= 0x10001000L
  10. #include <openssl/cmac.h>
  11. #endif
  12. """
  13. @@ -28,7 +28,7 @@ void CMAC_CTX_free(CMAC_CTX *);
  14. """
  15. CUSTOMIZATIONS = """
  16. -#if OPENSSL_VERSION_NUMBER < 0x10001000L
  17. +#if defined(OPENSSL_NO_CMAC) || OPENSSL_VERSION_NUMBER < 0x10001000L
  18. static const long Cryptography_HAS_CMAC = 0;
  19. typedef void CMAC_CTX;