pdns: fix compilation without deprecated OpenSSL APIs
authorRosen Penev <redacted>
Mon, 30 Mar 2020 03:01:04 +0000 (20:01 -0700)
committerRosen Penev <redacted>
Mon, 30 Mar 2020 04:32:31 +0000 (21:32 -0700)
The bn.h header is missing.

Signed-off-by: Rosen Penev <redacted>
net/pdns/Makefile
net/pdns/patches/200-openssl-deprecated.patch [new file with mode: 0644]

index aee3f2a3d86f4ace456023ff5b2bd7d6845f6b41..fe80565e8fc91b4e8dea2b7f3e310030f7a8379b 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=pdns
 PKG_VERSION:=4.2.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=https://downloads.powerdns.com/releases/
diff --git a/net/pdns/patches/200-openssl-deprecated.patch b/net/pdns/patches/200-openssl-deprecated.patch
new file mode 100644 (file)
index 0000000..cc6544b
--- /dev/null
@@ -0,0 +1,20 @@
+--- a/pdns/opensslsigners.cc
++++ b/pdns/opensslsigners.cc
+@@ -29,6 +29,7 @@
+ #if defined(HAVE_LIBCRYPTO_ED25519) || defined(HAVE_LIBCRYPTO_ED448)
+ #include <openssl/evp.h>
+ #endif
++#include <openssl/bn.h>
+ #include <openssl/sha.h>
+ #include <openssl/rand.h>
+ #include <openssl/rsa.h>
+--- a/pdns/pkcs11signers.cc
++++ b/pdns/pkcs11signers.cc
+@@ -15,6 +15,7 @@
+ #include "pdns/lock.hh"
+ #ifdef HAVE_LIBCRYPTO_ECDSA
++#include <openssl/bn.h>
+ #include <openssl/ec.h>
+ #endif
git clone https://git.99rst.org/PROJECT