From 278293d39d5c3f77e6deb4c52a7068ea4a1d48dd Mon Sep 17 00:00:00 2001 From: Kirill Miazine Date: Sun, 29 Jan 2017 14:55:58 +0000 Subject: DANE: fix build under LibreSSL. Bug 2020 --- src/src/dane-openssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) { -- cgit v1.2.3