]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
fix build with LibreSSL 2.7 1005/head
authorBernard Spil <brnrd@FreeBSD.org>
Sun, 1 Apr 2018 21:01:44 +0000 (23:01 +0200)
committerBernard Spil <brnrd@FreeBSD.org>
Sun, 1 Apr 2018 21:01:44 +0000 (23:01 +0200)
LibreSSL 2.7 adds OpenSSL 1.1 API leading to conflicts on method names

See also: https://bugs.freebsd.org/226853
Signed-off-by: Bernard Spil <brnrd@FreeBSD.org>
libarchive/archive_openssl_hmac_private.h

index 59f95b80af8387f952816433cd59a0ade777d9c9..921249bb9450f14d35b7dd800a456848de518754 100644 (file)
@@ -28,7 +28,8 @@
 #include <openssl/hmac.h>
 #include <openssl/opensslv.h>
 
-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || \
+       (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L)
 #include <stdlib.h> /* malloc, free */
 #include <string.h> /* memset */
 static inline HMAC_CTX *HMAC_CTX_new(void)