From: Jeremy Harris Date: Mon, 11 Jan 2016 13:52:14 +0000 (+0000) Subject: DANE: fix build with LibreSSL X-Git-Tag: exim-4_87_RC3~19 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/ae98657dd2f5449aff25d7b5669ae7e273255ca3 DANE: fix build with LibreSSL --- diff --git a/src/src/dane-openssl.c b/src/src/dane-openssl.c index e5f9f9784..803fb0652 100644 --- a/src/src/dane-openssl.c +++ b/src/src/dane-openssl.c @@ -20,8 +20,8 @@ # error "OpenSSL 1.0.0 or higher required" #else /* remainder of file */ -#if OPENSSL_VERSION_NUMBER < 0x10100000L -#define X509_up_ref(x) CRYPTO_add(&((x)->references), 1, CRYPTO_LOCK_X509) +#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) +# define X509_up_ref(x) CRYPTO_add(&((x)->references), 1, CRYPTO_LOCK_X509) #endif #include "danessl.h"