From: Kirill Miazine Date: Sun, 29 Jan 2017 14:55:58 +0000 (+0000) Subject: DANE: fix build under LibreSSL. Bug 2020 X-Git-Tag: exim-4_89_RC1~12 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=278293d39d5c3f77e6deb4c52a7068ea4a1d48dd;p=exim.git DANE: fix build under LibreSSL. Bug 2020 --- diff --git a/src/src/dane-openssl.c b/src/src/dane-openssl.c index aa4760b94..bb927383f 100644 --- a/src/src/dane-openssl.c +++ b/src/src/dane-openssl.c @@ -25,7 +25,7 @@ #if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) # define X509_up_ref(x) CRYPTO_add(&((x)->references), 1, CRYPTO_LOCK_X509) #endif -#if OPENSSL_VERSION_NUMBER >= 0x10100000L +#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) # define EXIM_HAVE_ASN1_MACROS # define EXIM_OPAQUE_X509 #else @@ -1658,7 +1658,7 @@ dane_idx = SSL_get_ex_new_index(0, 0, 0, 0, 0); } -#if OPENSSL_VERSION_NUMBER < 0x10100000L +#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) static void run_once(volatile int * once, void (*init)(void)) {