From 70fcd93ca771b2213ec5293f3c8938143a49cbdd Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 4 Nov 2016 12:13:03 -0400 Subject: [PATCH] fixed build error for clang --- Crypto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Crypto.h b/Crypto.h index 8f2a4a38..1644e147 100644 --- a/Crypto.h +++ b/Crypto.h @@ -283,7 +283,7 @@ namespace crypto // take care about openssl version #include -#if !(OPENSSL_VERSION_NUMBER >= 0x010100000) // < 1.1.0 or non-OpenSSL +#if (OPENSSL_VERSION_NUMBER < 0x010100000) || defined(LIBRESSL_VERSION_NUMBER) // 1.1.0 or LibreSSL // define getters and setters introduced in 1.1.0 inline int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g) { d->p = p; d->q = q; d->g = g; return 1; }