]> granicus.if.org Git - pdns/commitdiff
Fix compilation with LibreSSL 2.7.0+
authorRemi Gacogne <remi.gacogne@powerdns.com>
Sat, 8 Sep 2018 15:15:14 +0000 (17:15 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Sat, 8 Sep 2018 15:15:14 +0000 (17:15 +0200)
pdns/opensslsigners.cc

index 6a2e8569403955d9847f39b2b608a99cabbb5953..d0a65e6489d1c0f0b2c66dfd3ed2ba5faa4d9526 100644 (file)
@@ -77,6 +77,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;
@@ -144,6 +146,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() {}