2
0

130-libarchive-fix-libressl-compat.patch 917 B

12345678910111213141516171819202122
  1. --- a/Utilities/cmlibarchive/libarchive/archive_openssl_evp_private.h
  2. +++ b/Utilities/cmlibarchive/libarchive/archive_openssl_evp_private.h
  3. @@ -28,7 +28,7 @@
  4. #include <openssl/evp.h>
  5. #include <openssl/opensslv.h>
  6. -#if OPENSSL_VERSION_NUMBER < 0x10100000L
  7. +#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
  8. #include <stdlib.h> /* malloc, free */
  9. #include <string.h> /* memset */
  10. static inline EVP_MD_CTX *EVP_MD_CTX_new(void)
  11. --- a/Utilities/cmlibarchive/libarchive/archive_openssl_hmac_private.h
  12. +++ b/Utilities/cmlibarchive/libarchive/archive_openssl_hmac_private.h
  13. @@ -28,7 +28,7 @@
  14. #include <openssl/hmac.h>
  15. #include <openssl/opensslv.h>
  16. -#if OPENSSL_VERSION_NUMBER < 0x10100000L
  17. +#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
  18. #include <stdlib.h> /* malloc, free */
  19. #include <string.h> /* memset */
  20. static inline HMAC_CTX *HMAC_CTX_new(void)