packages/net/pdns/patches/200-openssl-deprecated.patch
Rosen Penev 5b120f55fd
pdns: fix compilation without deprecated OpenSSL APIs
The bn.h header is missing.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-03-29 21:32:31 -07:00

20 lines
474 B
Diff

--- 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