summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKirill Miazine <km@krot.org>2017-01-29 14:55:58 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2017-01-29 14:58:53 +0000
commit278293d39d5c3f77e6deb4c52a7068ea4a1d48dd (patch)
tree39eeaedd358011230b97a4e5c8f358068a04f42a /src
parent560e71cc545182bb51a7d038ac40eebac8e045aa (diff)
DANE: fix build under LibreSSL. Bug 2020
Diffstat (limited to 'src')
-rw-r--r--src/src/dane-openssl.c4
1 files 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))
{