DANE: fix build with LibreSSL
authorJeremy Harris <jgh146exb@wizmail.org>
Mon, 11 Jan 2016 13:52:14 +0000 (13:52 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Mon, 11 Jan 2016 13:54:47 +0000 (13:54 +0000)
src/src/dane-openssl.c

index e5f9f97..803fb06 100644 (file)
@@ -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"