diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-03-19 16:36:24 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-03-19 16:36:24 +0300 |
commit | a9b2552be34d667371d601584fae18625df34e7a (patch) | |
tree | d58984ef269ff30e47d37f05e29dcb12b8c1cec9 /app-arch/libarchive/files/libressl.patch | |
parent | e2539146d56f6cb812d0c70717b6721a33d15df8 (diff) |
libarchive with libressl patch
Diffstat (limited to 'app-arch/libarchive/files/libressl.patch')
-rw-r--r-- | app-arch/libarchive/files/libressl.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/app-arch/libarchive/files/libressl.patch b/app-arch/libarchive/files/libressl.patch new file mode 100644 index 0000000..277f69b --- /dev/null +++ b/app-arch/libarchive/files/libressl.patch @@ -0,0 +1,25 @@ +diff -Naur libarchive-3.3.2/libarchive/archive_openssl_hmac_private.h libarchive-3.3.2_patched/libarchive/archive_openssl_hmac_private.h +--- libarchive-3.3.2/libarchive/archive_openssl_hmac_private.h 2017-05-08 03:38:09.000000000 +0300 ++++ libarchive-3.3.2_patched/libarchive/archive_openssl_hmac_private.h 2018-03-19 16:26:58.769729201 +0300 +@@ -28,21 +28,4 @@ + #include <openssl/hmac.h> + #include <openssl/opensslv.h> + +-#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) +-{ +- HMAC_CTX *ctx = (HMAC_CTX *)calloc(1, sizeof(HMAC_CTX)); +- return ctx; +-} +- +-static inline void HMAC_CTX_free(HMAC_CTX *ctx) +-{ +- HMAC_CTX_cleanup(ctx); +- memset(ctx, 0, sizeof(*ctx)); +- free(ctx); +-} +-#endif +- + #endif |