From: Remi Gacogne Date: Sat, 8 Sep 2018 15:15:14 +0000 (+0200) Subject: Fix compilation with LibreSSL 2.7.0+ X-Git-Tag: auth-4.1.5~1^2~1^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=550c924eb3ea0dc9a6ea61162c050d8646cbadd6;p=pdns Fix compilation with LibreSSL 2.7.0+ (cherry picked from commit 1648b8ff39c705fdee526cd73bf2652982b80087) --- diff --git a/pdns/opensslsigners.cc b/pdns/opensslsigners.cc index 8e3bb547b..a31cb6c4d 100644 --- a/pdns/opensslsigners.cc +++ b/pdns/opensslsigners.cc @@ -76,6 +76,8 @@ void openssl_thread_cleanup() OPENSSL_free(openssllocks); } +#if !defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER < 0x2070000fL +/* those symbols are defined in LibreSSL 2.7.0+ */ /* compat helpers. These DO NOT do any of the checking that the libssl 1.1 functions do. */ static inline void RSA_get0_key(const RSA* rsakey, const BIGNUM** n, const BIGNUM** e, const BIGNUM** d) { *n = rsakey->n; @@ -143,6 +145,8 @@ static inline int ECDSA_SIG_set0(ECDSA_SIG* signature, BIGNUM* pr, BIGNUM* ps) { } #endif /* HAVE_LIBCRYPTO_ECDSA */ +#endif /* !defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER < 0x2070000fL */ + #else void openssl_thread_setup() {} void openssl_thread_cleanup() {}