]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
include used openssl headers 15/head
authorMike Frysinger <vapier@chromium.org>
Wed, 5 Jun 2019 23:06:20 +0000 (19:06 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 5 Jun 2019 23:07:57 +0000 (19:07 -0400)
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
dnssec_sign.c
host2str.c
keys.c

index 86752990646f07bd8ad0fee433608a19d228ff4e..b1a7ab1d18b3bc7aaf36b9a9050e09fb12e510e9 100644 (file)
--- a/dnssec.c
+++ b/dnssec.c
 #include <openssl/rand.h>
 #include <openssl/err.h>
 #include <openssl/md5.h>
+#include <openssl/bn.h>
+#include <openssl/rsa.h>
+#ifdef USE_DSA
+#include <openssl/dsa.h>
+#endif
 #endif
 
 ldns_rr *
index 48bddf3f5e123964b9722e48ad8778f34bac8510..2ca1a38b05a07f79620db7314a7c6af802c05a09 100644 (file)
 #include <openssl/rand.h>
 #include <openssl/err.h>
 #include <openssl/md5.h>
+#include <openssl/bn.h>
+#include <openssl/rsa.h>
+#ifdef USE_DSA
+#include <openssl/dsa.h>
+#endif
 #endif /* HAVE_SSL */
 
 ldns_rr *
index 154504c80629bf56102ef793831bb71f34e38757..99cc89df284c9b19440dffaa211bfd94563e4853 100644 (file)
 #include <time.h>
 #include <sys/time.h>
 
+#ifdef HAVE_SSL
+#include <openssl/bn.h>
+#include <openssl/rsa.h>
+#ifdef USE_DSA
+#include <openssl/dsa.h>
+#endif
+#endif
+
 #ifndef INET_ADDRSTRLEN
 #define INET_ADDRSTRLEN 16
 #endif
diff --git a/keys.c b/keys.c
index 2a8593dfb80926cb8890a9504c7711136624f0a6..016f9731114aee0e760381ad6a71c50bed953470 100644 (file)
--- a/keys.c
+++ b/keys.c
 #ifdef HAVE_SSL
 #include <openssl/ssl.h>
 #include <openssl/rand.h>
+#include <openssl/bn.h>
+#include <openssl/rsa.h>
+#ifdef USE_DSA
+#include <openssl/dsa.h>
+#endif
 #ifndef OPENSSL_NO_ENGINE
 #include <openssl/engine.h>
 #endif