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 e5f9f978490ad9b1f84db0cff771cd4c12f7d10a..803fb0652859e4968edfa95aeaed1ba3a3bb861c 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"