From 123034bf7895b305099f847734020886d7e91f2e Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 5 Jun 2019 19:06:20 -0400 Subject: [PATCH] include used openssl headers The bn.h/dsa.h/rsa.h headers aren't included even though APIs from them are used heavily. Include them in files that need them. If we don't, we might hit build failures depending on how OpenSSL was configured. --- dnssec.c | 5 +++++ dnssec_sign.c | 5 +++++ host2str.c | 8 ++++++++ keys.c | 5 +++++ 4 files changed, 23 insertions(+) diff --git a/dnssec.c b/dnssec.c index 86752990..b1a7ab1d 100644 --- a/dnssec.c +++ b/dnssec.c @@ -23,6 +23,11 @@ #include #include #include +#include +#include +#ifdef USE_DSA +#include +#endif #endif ldns_rr * diff --git a/dnssec_sign.c b/dnssec_sign.c index 48bddf3f..2ca1a38b 100644 --- a/dnssec_sign.c +++ b/dnssec_sign.c @@ -17,6 +17,11 @@ #include #include #include +#include +#include +#ifdef USE_DSA +#include +#endif #endif /* HAVE_SSL */ ldns_rr * diff --git a/host2str.c b/host2str.c index 154504c8..99cc89df 100644 --- a/host2str.c +++ b/host2str.c @@ -28,6 +28,14 @@ #include #include +#ifdef HAVE_SSL +#include +#include +#ifdef USE_DSA +#include +#endif +#endif + #ifndef INET_ADDRSTRLEN #define INET_ADDRSTRLEN 16 #endif diff --git a/keys.c b/keys.c index 2a8593df..016f9731 100644 --- a/keys.c +++ b/keys.c @@ -17,6 +17,11 @@ #ifdef HAVE_SSL #include #include +#include +#include +#ifdef USE_DSA +#include +#endif #ifndef OPENSSL_NO_ENGINE #include #endif -- 2.47.3