void-packages/srcpkgs/libarchive/patches/libressl.patch

23 lines
971 B
Diff
Raw Normal View History

2017-03-03 10:39:59 +00:00
--- libarchive/archive_openssl_hmac_private.h.orig 2017-03-03 10:31:40.000000000 +0000
+++ libarchive/archive_openssl_hmac_private.h 2017-03-03 10:31:54.288574182 +0000
@@ -28,7 +28,7 @@
#include <openssl/hmac.h>
#include <openssl/opensslv.h>
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
#include <stdlib.h> /* malloc, free */
#include <string.h> /* memset */
static inline HMAC_CTX *HMAC_CTX_new(void)
--- libarchive/archive_openssl_evp_private.h.orig 2017-01-29 05:06:27.000000000 +0000
+++ libarchive/archive_openssl_evp_private.h 2017-03-03 10:34:47.238583104 +0000
@@ -28,7 +28,7 @@
#include <openssl/evp.h>
#include <openssl/opensslv.h>
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
#include <stdlib.h> /* malloc, free */
#include <string.h> /* memset */
static inline EVP_MD_CTX *EVP_MD_CTX_new(void)