mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
pdns: fix compilation without deprecated OpenSSL APIs
The bn.h header is missing. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=pdns
|
PKG_NAME:=pdns
|
||||||
PKG_VERSION:=4.2.1
|
PKG_VERSION:=4.2.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=https://downloads.powerdns.com/releases/
|
PKG_SOURCE_URL:=https://downloads.powerdns.com/releases/
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
Reference in New Issue
Block a user