]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Move includes to code files.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 12 Mar 2010 15:17:48 +0000 (15:17 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 12 Mar 2010 15:17:48 +0000 (15:17 +0000)
git-svn-id: file:///svn/unbound/trunk@2035 be551aaa-1e26-0410-a405-d3ace91eadb9

64 files changed:
config.h.in
configure.ac
daemon/cachedump.c
daemon/daemon.c
daemon/remote.c
daemon/remote.h
daemon/stats.c
daemon/stats.h
daemon/unbound.c
daemon/worker.c
doc/Changelog
iterator/iter_fwd.c
iterator/iter_hints.c
iterator/iter_priv.c
iterator/iter_priv.h
iterator/iter_resptype.c
iterator/iter_scrub.h
iterator/iter_utils.h
iterator/iterator.c
libunbound/libunbound.c
libunbound/libworker.c
pythonmod/pythonmod.c
services/cache/infra.c
services/localzone.c
services/mesh.c
services/modstack.c
services/outside_network.c
smallapp/unbound-checkconf.c
smallapp/unbound-control.c
smallapp/unbound-host.c
testcode/asynclook.c
testcode/delayer.c
testcode/harvest.c
testcode/perf.c
testcode/pktview.c
testcode/readhex.c
testcode/readhex.h
testcode/signit.c
testcode/streamtcp.c
testcode/unitanchor.c
testcode/unitdname.c
testcode/unitmain.c
testcode/unitmsgparse.c
util/config_file.c
util/data/dname.c
util/data/msgencode.c
util/data/msgparse.c
util/data/msgparse.h
util/data/msgreply.c
util/data/packed_rrset.c
util/data/packed_rrset.h
util/log.h
util/mini_event.c
util/net_help.c
util/netevent.c
util/netevent.h
validator/autotrust.c
validator/val_anchor.c
validator/val_kentry.c
validator/val_neg.c
validator/val_nsec.c
validator/val_nsec3.c
validator/val_sigcrypt.c
validator/validator.c

index c522663ee45d79e5c97797836ae16e582eba9f74..cdb416d65d6881cd6611a378de25084470ca29bd 100644 (file)
 #include <ws2tcpip.h>
 #endif
 
-#ifdef HAVE_GETOPT_H
-#include <getopt.h>
-#endif
-
-#ifdef HAVE_OPENSSL_ERR_H
-#include <openssl/err.h>
-#endif
-
-#ifdef HAVE_OPENSSL_RAND_H
-#include <openssl/rand.h>
-#endif
-
-#ifdef HAVE_OPENSSL_CONF_H
-#include <openssl/conf.h>
-#endif
-
-#ifdef HAVE_OPENSSL_ENGINE_H
-#include <openssl/engine.h>
-#endif
-
 
  
 #ifdef HAVE_ATTR_FORMAT
@@ -819,8 +799,6 @@ struct sockaddr_storage;
 #include "compat/fake-rfc2553.h"
 #endif
 
-#include "ldns/ldns.h"
-
 #ifdef UNBOUND_ALLOC_STATS
 #  define malloc(s) unbound_stat_malloc_log(s, __FILE__, __LINE__, __func__)
 #  define calloc(n,s) unbound_stat_calloc_log(n, s, __FILE__, __LINE__, __func__)
index 6eff2bf038a645bf3bc6159fff4d2a348cce950c..76dd441797e90b5c66e8f10834052b9199cf5dda 100644 (file)
@@ -703,26 +703,6 @@ dnl includes
 #ifdef HAVE_WS2TCPIP_H
 #include <ws2tcpip.h>
 #endif
-
-#ifdef HAVE_GETOPT_H
-#include <getopt.h>
-#endif
-
-#ifdef HAVE_OPENSSL_ERR_H
-#include <openssl/err.h>
-#endif
-
-#ifdef HAVE_OPENSSL_RAND_H
-#include <openssl/rand.h>
-#endif
-
-#ifdef HAVE_OPENSSL_CONF_H
-#include <openssl/conf.h>
-#endif
-
-#ifdef HAVE_OPENSSL_ENGINE_H
-#include <openssl/engine.h>
-#endif
 ]
 
 AHX_CONFIG_FORMAT_ATTRIBUTE
@@ -771,8 +751,6 @@ struct sockaddr_storage;
 #include "compat/fake-rfc2553.h"
 #endif
 
-#include "ldns/ldns.h"
-
 #ifdef UNBOUND_ALLOC_STATS
 #  define malloc(s) unbound_stat_malloc_log(s, __FILE__, __LINE__, __func__)
 #  define calloc(n,s) unbound_stat_calloc_log(n, s, __FILE__, __LINE__, __func__)
index 3e8b124ab3c319efe741abb35f5b2e095f35cef5..35f0fe446cea2b55d84620fff09ed9d9f371fa47 100644 (file)
@@ -40,6 +40,7 @@
  * to text format.
  */
 #include "config.h"
+#include "ldns/ldns.h"
 #include "daemon/cachedump.h"
 #include "daemon/remote.h"
 #include "daemon/worker.h"
index ccd15736679d4302494464fc333d6d3363fd19ed..fb293b50664e54e7e970d6fb1a9c0dc4acefe408 100644 (file)
  */
 
 #include "config.h"
+#ifdef HAVE_OPENSSL_ERR_H
+#include <openssl/err.h>
+#endif
+
+#ifdef HAVE_OPENSSL_RAND_H
+#include <openssl/rand.h>
+#endif
+
+#ifdef HAVE_OPENSSL_CONF_H
+#include <openssl/conf.h>
+#endif
+
+#ifdef HAVE_OPENSSL_ENGINE_H
+#include <openssl/engine.h>
+#endif
+#include "ldns/ldns.h"
 #include "daemon/daemon.h"
 #include "daemon/worker.h"
 #include "daemon/remote.h"
index 572f61c3c368741e9288a0c7e6e6957463169f2a..7a6f5a6ffc20302cb9cee4e77091d5877a909790 100644 (file)
  * Both the server and the client(control tool) have their own keys.
  */
 #include "config.h"
+#ifdef HAVE_OPENSSL_ERR_H
+#include <openssl/err.h>
+#endif
+#include <ctype.h>
+#include "ldns/ldns.h"
 #include "daemon/remote.h"
 #include "daemon/worker.h"
 #include "daemon/daemon.h"
index bd58cbc90b7c62c8d2474a5ed9b919b6c0aff32a..1edc1b887bd6af682ae86370fc9695a5a31a9b26 100644 (file)
@@ -45,6 +45,9 @@
 
 #ifndef DAEMON_REMOTE_H
 #define DAEMON_REMOTE_H
+#ifdef HAVE_OPENSSL_SSL_H
+#include "openssl/ssl.h"
+#endif
 struct config_file;
 struct listen_list;
 struct listen_port;
index b9474c7442910184ddb9ac559e37b3019b58d0ab..41b4fb80cd77b4330767ef5ec5e4dd3432638f09 100644 (file)
@@ -40,6 +40,7 @@
  * numbers. These 'statistics' may be of interest to the operator.
  */
 #include "config.h"
+#include "ldns/wire2host.h"
 #include "daemon/stats.h"
 #include "daemon/worker.h"
 #include "daemon/daemon.h"
index fa526d6180d6e5a87700b165356744050853c417..ad93dde5ff850e3ff813ce7b2919aab4a1134ad9 100644 (file)
@@ -43,6 +43,7 @@
 #ifndef DAEMON_STATS_H
 #define DAEMON_STATS_H
 #include "util/timehist.h"
+#include "ldns/buffer.h"
 struct worker;
 struct config_file;
 struct comm_point;
index 9e4ea3747c2e44877d73e1570fe18136d5c4a348..afa6a47dc6073f9c4346fd407ef24fd31ca51430 100644 (file)
@@ -41,6 +41,9 @@
  */
 
 #include "config.h"
+#ifdef HAVE_GETOPT_H
+#include <getopt.h>
+#endif
 #include "util/log.h"
 #include "daemon/daemon.h"
 #include "daemon/remote.h"
index 053c6e73ea32a6c3b86cab070822af78b04c4a67..76e51353349dc64bec555038fbab908783725f42 100644 (file)
@@ -40,6 +40,7 @@
  * pending requests.
  */
 #include "config.h"
+#include "ldns/wire2host.h"
 #include "util/log.h"
 #include "util/net_help.h"
 #include "util/random.h"
index 264acf0e17692ca481074d6feefa30853cbbb299..69bfab2db4896714296f735235ba75fac59bd26e 100644 (file)
@@ -5,6 +5,7 @@
        - ldns tarball updated.
        - Fix python use when multithreaded.
        - Fix solaris python compile.
+       - Include less in config.h and include per code file for ldns, ssl.
 
 11 March 2010: Wouter
        - another memory allocation option: --enable-alloc-nonregional.
index 0d19c0c0a64368a1849d9c29542b27dd3d596767..f0fca1eddcb770d273551716ee3f48526c08d56c 100644 (file)
@@ -40,6 +40,9 @@
  * Keep track of forward zones and config settings.
  */
 #include "config.h"
+#include "ldns/rdata.h"
+#include "ldns/dname.h"
+#include "ldns/rr.h"
 #include "iterator/iter_fwd.h"
 #include "iterator/iter_delegpt.h"
 #include "util/regional.h"
index 1ca46a12bc1bd4734e41690da83362c6fbaf522a..bf740684276a5204b4c98af93cb40117e58ead2c 100644 (file)
@@ -40,6 +40,8 @@
  * Keep track of stub and root hints, and read those from config.
  */
 #include "config.h"
+#include "ldns/dname.h"
+#include "ldns/rr.h"
 #include "iterator/iter_hints.h"
 #include "iterator/iter_delegpt.h"
 #include "util/regional.h"
index 03cf6db858f11239e899cfae379af4d0a9ce4f46..2d97a93ad0661bf98c45077e16d86d844ce55c66 100644 (file)
@@ -41,6 +41,7 @@
  */
 
 #include "config.h"
+#include "ldns/dname.h"
 #include "iterator/iter_priv.h"
 #include "util/regional.h"
 #include "util/log.h"
index 62860ffb58ebcd98574fa73853c0db7db7c8def5..164f69cc764da8dd2f8773598127153f06743a08 100644 (file)
@@ -43,6 +43,7 @@
 #ifndef ITERATOR_ITER_PRIV_H
 #define ITERATOR_ITER_PRIV_H
 #include "util/rbtree.h"
+#include "ldns/buffer.h"
 struct iter_env;
 struct config_file;
 struct regional;
index 9f7726c603baaf88fade2f287f2e6eb68a3965d5..b7d022dbe2b003224eea0d6830fea11a39ae2b2b 100644 (file)
@@ -40,6 +40,7 @@
  * one of the response types.
  */
 #include "config.h"
+#include "ldns/packet.h"
 #include "iterator/iter_resptype.h"
 #include "iterator/iter_delegpt.h"
 #include "services/cache/dns.h"
index 8bceb0059479bb6ecadb459b8800cb0af1abe2ea..dc246205a8f1ca8f81556ee9b6a0b42bbb69bdf0 100644 (file)
@@ -42,6 +42,7 @@
 
 #ifndef ITERATOR_ITER_SCRUB_H
 #define ITERATOR_ITER_SCRUB_H
+#include "ldns/buffer.h"
 struct msg_parse;
 struct query_info;
 struct regional;
index 2a1a724c2797dadd51006d12af0179434664a2a3..9a1db5fe9d9f597ee7e24fd09b8f22da51b7adb6 100644 (file)
@@ -43,6 +43,7 @@
 #ifndef ITERATOR_ITER_UTILS_H
 #define ITERATOR_ITER_UTILS_H
 #include "iterator/iter_resptype.h"
+#include "ldns/buffer.h"
 struct iter_env;
 struct iter_hints;
 struct iter_forwards;
index 33635b50edbd7325d798404f1c5fc9fccc220ea8..d8b5588a7f26e466354ee4de8ff1e9830c893d34 100644 (file)
@@ -41,6 +41,7 @@
  */
 
 #include "config.h"
+#include "ldns/ldns.h"
 #include "iterator/iterator.h"
 #include "iterator/iter_utils.h"
 #include "iterator/iter_hints.h"
index aae452ace37a21f5046a40b81e7303f3bfd869da..804eb96759c864e6ef736d280c6c783649cbab96 100644 (file)
@@ -44,6 +44,7 @@
 /* include the public api first, it should be able to stand alone */
 #include "libunbound/unbound.h"
 #include "config.h"
+#include <ctype.h>
 #include "libunbound/context.h"
 #include "libunbound/libworker.h"
 #include "util/locks.h"
index dc54b03a23babf3b15e31d8a99a7992500f76f8b..0c28b76151b7b9220938b1c3695682e41fb6b3d1 100644 (file)
@@ -42,6 +42,8 @@
  * returns from the procedure when done.
  */
 #include "config.h"
+#include <ldns/dname.h>
+#include <ldns/wire2host.h>
 #include "libunbound/libworker.h"
 #include "libunbound/context.h"
 #include "libunbound/unbound.h"
index bfeb521d1a323ff36afa0bd385e2fb84be524907..579b82ab3c4eff85b35221e3c30070cd643a4411 100644 (file)
@@ -44,6 +44,7 @@
 #endif
 
 #include "config.h"
+#include "ldns/ldns.h"
 
 #undef _POSIX_C_SOURCE
 #undef _XOPEN_SOURCE
index fbc52549a7d6b1085215fb9b1780b915f29ed159..9c32c8110e02a3045a0abb9cd04a71ca58de6b3a 100644 (file)
@@ -39,6 +39,7 @@
  * This file contains the infrastructure cache.
  */
 #include "config.h"
+#include "ldns/rr.h"
 #include "services/cache/infra.h"
 #include "util/storage/slabhash.h"
 #include "util/storage/lookup3.h"
index 0a870e59d6a6e669e08aa377b6d9630510b97f5f..dba7f3b330a230f483e9e0ee3272358843129d93 100644 (file)
@@ -39,6 +39,8 @@
  * This file contains functions to enable local zone authority service.
  */
 #include "config.h"
+#include "ldns/dname.h"
+#include "ldns/host2wire.h"
 #include "services/localzone.h"
 #include "util/regional.h"
 #include "util/config_file.h"
index 6a5cc926f49d41f951cd044406c4f0afc80571c3..ff34016f721beb8b5fcb6d262a2a5eecd9b13c88 100644 (file)
@@ -43,6 +43,7 @@
  * send back to clients.
  */
 #include "config.h"
+#include "ldns/wire2host.h"
 #include "services/mesh.h"
 #include "services/outbound_list.h"
 #include "services/cache/dns.h"
index e57c0247abdf53f884766c821c76f8ba51118ca8..7395598c31cd1057f334d38cba66a860e818e991 100644 (file)
@@ -39,6 +39,7 @@
  * This file contains functions to help maintain a stack of modules.
  */
 #include "config.h"
+#include <ctype.h>
 #include "services/modstack.h"
 #include "util/module.h"
 #include "util/fptr_wlist.h"
index 6fe8268b0cde02a6b9a85cc4d6a2e478ab66dd26..02eead896b7352bdbf3b3dfae3bb21a378df0dce 100644 (file)
@@ -40,6 +40,8 @@
  * wait for the pending answer events.
  */
 #include "config.h"
+#include <ctype.h>
+#include "ldns/wire2host.h"
 #include "services/outside_network.h"
 #include "services/listen_dnsport.h"
 #include "services/cache/infra.h"
index f48088ae2aebfdbe536a50556ffffc0dcefe4286..40ca6b72b4c1205838ae67943c63b245aa0266f2 100644 (file)
@@ -52,6 +52,9 @@
 #include "iterator/iter_fwd.h"
 #include "validator/validator.h"
 #include "services/localzone.h"
+#ifdef HAVE_GETOPT_H
+#include <getopt.h>
+#endif
 #ifdef HAVE_PWD_H
 #include <pwd.h>
 #endif
index ed9c88bda0eab9fc02791b73f6f5f2eb7fe3fd35..57741dd2edb03686afc3d64c6c3d5348c9ec7716 100644 (file)
  */
 
 #include "config.h"
+#ifdef HAVE_GETOPT_H
+#include <getopt.h>
+#endif
+#ifdef HAVE_OPENSSL_SSL_H
+#include <openssl/ssl.h>
+#endif
+#ifdef HAVE_OPENSSL_ERR_H
+#include <openssl/err.h>
+#endif
+#ifdef HAVE_OPENSSL_RAND_H
+#include <openssl/rand.h>
+#endif
 #include "util/log.h"
 #include "util/config_file.h"
 #include "util/locks.h"
index 88d0b8a1ea37006ff5fb7b70a154d708c405d0c5..2a663a9d4a4c5d54fd84f5548009ae56082a599f 100644 (file)
@@ -41,6 +41,9 @@
  */
 
 #include "config.h"
+#ifdef HAVE_GETOPT_H
+#include <getopt.h>
+#endif
 /* remove alloc checks, not in this part of the code */
 #ifdef UNBOUND_ALLOC_STATS
 #undef malloc
index 9ee4312dab0a9a943470307f1d6f0e5704616566..6abab7b2233d4676e9438d94595a66ed3ff2ec6a 100644 (file)
@@ -41,6 +41,9 @@
  */
 
 #include "config.h"
+#ifdef HAVE_GETOPT_H
+#include <getopt.h>
+#endif
 #include "libunbound/unbound.h"
 #include "libunbound/context.h"
 #include "util/locks.h"
index b5a0594c61bfa929f89a7d647690a015e14c6c2c..b3b6ffcdbc1e2b832c13ac1bcb80021054157308 100644 (file)
  */
 
 #include "config.h"
+#ifdef HAVE_GETOPT_H
+#include <getopt.h>
+#endif
+#ifdef HAVE_TIME_H
+#include <time.h>
+#endif
+#include <sys/time.h>
 #include "util/net_help.h"
 #include "util/config_file.h"
 #include <signal.h>
index e84f255dcab7919ba7b91ab30766f2e7babd6caf..7b1342f454af3ffa8b295d69c878b0eed3255d67 100644 (file)
  */
 
 #include "config.h"
+#ifdef HAVE_GETOPT_H
+#include <getopt.h>
+#endif
+#include "ldns/ldns.h"
 #include <signal.h>
 #include "libunbound/unbound.h"
 #ifdef HAVE_SYS_STAT_H
index fe7f07369a1e676e4febf5211b81d1202505c725..e079a19eaa457c43c023284f30e2aebe78ff9c2b 100644 (file)
  */
 
 #include "config.h"
+#ifdef HAVE_GETOPT_H
+#include <getopt.h>
+#endif
+#include "ldns/ldns.h"
 #include <signal.h>
 #include "util/log.h"
 #include "util/locks.h"
index 0b66cc912427e199f52b36e3eed8b89226bbc6cf..494f8e7b3b3375f25bd11041b0565fa313d81a69 100644 (file)
@@ -40,6 +40,7 @@
  */
 
 #include "config.h"
+#include "ldns/ldns.h"
 #include "util/log.h"
 #include "util/data/dname.h"
 #include "util/data/msgparse.h"
index 70a3603d0b2f98232dd5184851449375ca62b60f..f212ddd747c846770a38247037c121a365859f4a 100644 (file)
@@ -38,6 +38,7 @@
  * Declarations useful for the unit tests.
  */
 #include "config.h"
+#include <ctype.h>
 #include "testcode/readhex.h"
 #include "util/log.h"
 
index bdd9aee5208d4ec9dd1655afd91e5b8fad243785..c145829a13453c30ae891b6eedc8a4542ff60e1c 100644 (file)
@@ -40,6 +40,7 @@
 
 #ifndef TESTCODE_READHEX_H
 #define TESTCODE_READHEX_H
+#include "ldns/buffer.h"
 
 /** 
  * Helper to convert hex string to packet buffer.
index 3072ffefaded7e77a7ffb167743b4b576805d524..52f06a86b3370230ac1de8e65671414f3a2e5bad 100644 (file)
@@ -40,6 +40,7 @@
  * construct input to test the validator with.
  */
 #include "config.h"
+#include "ldns/ldns.h"
 #include "util/log.h"
 #include "util/config_file.h"
 #include "util/net_help.h"
index 68d5a309838f16637758e74771d7c0fb6da0d846..bf1b597a705ee388a4b192d275b5984c7cb8c2c3 100644 (file)
  */
 
 #include "config.h"
+#ifdef HAVE_GETOPT_H
+#include <getopt.h>
+#endif
+#include "ldns/ldns.h"
 #include <signal.h>
 #include "util/locks.h"
 #include "util/log.h"
index ac7b9d5b5c365c30c65f0b0289012e6298e0a783..346b417b778270ae83d0e916f3d11315b3b7e77c 100644 (file)
@@ -39,6 +39,7 @@
  */
 
 #include "config.h"
+#include "ldns/rr.h"
 #include "util/log.h"
 #include "util/data/dname.h"
 #include "testcode/unitmain.h"
index 3c3d71ac83b91b9b320a202a84f9568053624d02..d4c745fca57835bc856fe2f72bdcebe9fa552e4d 100644 (file)
@@ -39,6 +39,8 @@
  */
 
 #include "config.h"
+#include "ldns/dname.h"
+#include "ldns/host2wire.h"
 #include "util/log.h"
 #include "testcode/unitmain.h"
 #include "util/data/dname.h"
index adde574e55e48679ec3e7b896793de2b8f540f46..6b540db9d6e527144d56cd27cd76dc787f97fa70 100644 (file)
  */
 
 #include "config.h"
+#ifdef HAVE_OPENSSL_ERR_H
+#include <openssl/err.h>
+#endif
+
+#ifdef HAVE_OPENSSL_RAND_H
+#include <openssl/rand.h>
+#endif
+
+#ifdef HAVE_OPENSSL_CONF_H
+#include <openssl/conf.h>
+#endif
+
+#ifdef HAVE_OPENSSL_ENGINE_H
+#include <openssl/engine.h>
+#endif
+#include "ldns/ldns.h"
 #include "util/log.h"
 #include "testcode/unitmain.h"
 
index bee500bcf06458f8db6020645cbe1e9c0d87db78..43e43778dadc69c4147487da6d3a37e42373af48 100644 (file)
@@ -39,6 +39,7 @@
  */
 
 #include "config.h"
+#include "ldns/ldns.h"
 #include "util/log.h"
 #include "testcode/unitmain.h"
 #include "util/data/msgparse.h"
index 8d014e185d479fbae3d7c95715cd87c31150a3c9..e818df9a21ad6f3f88ca1ef9edbc82d9e42d0660 100644 (file)
@@ -40,6 +40,8 @@
  */
 
 #include "config.h"
+#include <ctype.h>
+#include "ldns/ldns.h"
 #include "util/log.h"
 
 #include "util/configyyrename.h"
index 0cf10765b38e40dbc8d6aeb2feac2fe3f7352024..b7889791961edd2af5a2c2b7d19b58743bd63ecb 100644 (file)
@@ -40,6 +40,7 @@
  */
 
 #include "config.h"
+#include <ctype.h>
 #include "util/data/dname.h"
 #include "util/data/msgparse.h"
 #include "util/log.h"
index b98719843d5b545887fb21adf2751501ca4f8a9f..32567e2b7307a7a9ae8f5e8b54583c980ed3ee24 100644 (file)
@@ -40,6 +40,7 @@
  */
 
 #include "config.h"
+#include "ldns/wire2host.h"
 #include "util/data/msgencode.h"
 #include "util/data/msgreply.h"
 #include "util/data/msgparse.h"
index 4655943ce162e0dc5124232563182dc499ce3b39..2db8832ce1dcc4a79596f7adc3ec8ac0eb029cbc 100644 (file)
@@ -37,6 +37,7 @@
  * Routines for message parsing a packet buffer to a descriptive structure.
  */
 #include "config.h"
+#include "ldns/ldns.h"
 #include "util/data/msgparse.h"
 #include "util/net_help.h"
 #include "util/data/dname.h"
index bc367fd7e3451b4c3687bf6e7835c5a138cffb6e..a5d10eb994a3c463f4d26dabeeeb48f592df87ac 100644 (file)
@@ -63,6 +63,7 @@
 #ifndef UTIL_DATA_MSGPARSE_H
 #define UTIL_DATA_MSGPARSE_H
 #include "util/storage/lruhash.h"
+#include "ldns/packet.h"
 struct rrset_parse;
 struct rr_parse;
 struct regional;
index 65f344fbeee9f81888a6a70d7ea9869106c1005b..22e146884cfc85b36ee5192ef6868ea24b171bfd 100644 (file)
@@ -40,6 +40,7 @@
  */
 
 #include "config.h"
+#include "ldns/ldns.h"
 #include "util/data/msgreply.h"
 #include "util/storage/lookup3.h"
 #include "util/log.h"
index c1791eda7d48b2386ac1ca6051c981acf88c7308..77780d613683d0ab33ab6eba6f782a1ff2651bf7 100644 (file)
@@ -40,6 +40,7 @@
  */
 
 #include "config.h"
+#include "ldns/wire2host.h"
 #include "util/data/packed_rrset.h"
 #include "util/data/dname.h"
 #include "util/storage/lookup3.h"
index ad09cae63e5f8c2981f826c855135631a4b368cd..92fef8151d8bc421961d1ed691c7cd8eec256001 100644 (file)
@@ -42,6 +42,7 @@
 #ifndef UTIL_DATA_PACKED_RRSET_H
 #define UTIL_DATA_PACKED_RRSET_H
 #include "util/storage/lruhash.h"
+#include "ldns/rr.h"
 struct alloc_cache;
 struct regional;
 
index a69a26f92b20c947973e952ab5f156ac97050d1a..4f8ac7a7e8d71a22a5ba9ef2b72c413bae43f079 100644 (file)
@@ -41,6 +41,7 @@
 
 #ifndef UTIL_LOG_H
 #define UTIL_LOG_H
+#include "ldns/buffer.h"
 
 /**
  * verbosity value:
index aa5a92e6f9ab244bf110a4ed801d2ed1b831e426..f66214ddb8fad2ca208c5d0860ea17d9ba525f60 100644 (file)
  */
 
 #include "config.h"
+#ifdef HAVE_TIME_H
+#include <time.h>
+#endif
+#include <sys/time.h>
 
 #if defined(USE_MINI_EVENT) && !defined(USE_WINSOCK)
 #include <signal.h>
index 8733bb8f845341543dbca55a3538e831b67d60ef..182f39d8e50b8a43c9e48c7e90a9312cd05a7ef0 100644 (file)
@@ -38,6 +38,7 @@
  */
 
 #include "config.h"
+#include "ldns/ldns.h"
 #include "util/net_help.h"
 #include "util/log.h"
 #include "util/data/dname.h"
index 2f2635744e93ee3cf2b34726b2f5d1e14cbfc3ce..eda2892034fa25435d38f41d21776d7bbb19c2f8 100644 (file)
@@ -39,6 +39,7 @@
  * This file contains event notification functions.
  */
 #include "config.h"
+#include "ldns/wire2host.h"
 #include "util/netevent.h"
 #include "util/log.h"
 #include "util/net_help.h"
index d9d43c0a2533b1c5cf16bb3c52a48f3f447b83ee..68f8428b5b383e2f687d280a50c8e95b3ade53aa 100644 (file)
@@ -60,6 +60,7 @@
 #ifndef NET_EVENT_H
 #define NET_EVENT_H
 
+#include "ldns/buffer.h"
 struct comm_point;
 struct comm_reply;
 struct event_base;
index 56c83b264ecd4d2ee7ad2832477331cdaf9fca3e..4e90862ce810efbf2458dd85948077d6ee3d5968 100644 (file)
@@ -41,6 +41,7 @@
  * It was modified to fit into unbound. The state table process is the same.
  */
 #include "config.h"
+#include "ldns/ldns.h"
 #include "validator/autotrust.h"
 #include "validator/val_anchor.h"
 #include "validator/val_utils.h"
index 4c6116373136016fae740c2aa2e18b914c50e060..0b4ca4259cad80ce6c5e44cf3358e6fb48b2f997 100644 (file)
@@ -39,6 +39,9 @@
  * This file contains storage for the trust anchors for the validator.
  */
 #include "config.h"
+#include <ctype.h>
+#include "ldns/dname.h"
+#include "ldns/host2wire.h"
 #include "validator/val_anchor.h"
 #include "validator/val_sigcrypt.h"
 #include "validator/autotrust.h"
index fccaed431825c0dee3c90b6717dde3b6b61586f2..d58630fc5ad6f0429d65413b80e86e44a961b808 100644 (file)
@@ -39,6 +39,7 @@
  * This file contains functions for dealing with validator key entries.
  */
 #include "config.h"
+#include "ldns/ldns.h"
 #include "validator/val_kentry.h"
 #include "util/data/packed_rrset.h"
 #include "util/data/dname.h"
index 6c9b7da14304cbdc9b6fe450864258087795f31d..27839c6ab8ded9567502d397dee6e36d4393b705 100644 (file)
@@ -42,6 +42,9 @@
  * from cached NSEC records.
  */
 #include "config.h"
+#ifdef HAVE_OPENSSL_SSL_H
+#include "openssl/ssl.h"
+#endif
 #include "validator/val_neg.h"
 #include "validator/val_nsec.h"
 #include "validator/val_nsec3.h"
index 5ddb9ad2c8988140c17b4012a6f270dda8ae53fc..195b5494ad3bb16ae320f92a11fde741c21a4b55 100644 (file)
@@ -41,6 +41,7 @@
  * for denial of existance, and proofs for presence of types.
  */
 #include "config.h"
+#include "ldns/packet.h"
 #include "validator/val_nsec.h"
 #include "validator/val_utils.h"
 #include "util/data/msgreply.h"
index a99f19f0a2b0b44de8739d9ee31faa0c250fe226..c48e91351be9c142cf8a391a5cd7829d65838e09 100644 (file)
  * for denial of existance, and proofs for presence of types.
  */
 #include "config.h"
+#include <ctype.h>
+#ifdef HAVE_OPENSSL_SSL_H
+#include "openssl/ssl.h"
+#endif
 #include "validator/val_nsec3.h"
 #include "validator/validator.h"
 #include "validator/val_kentry.h"
index 84c25dda1458cbc321d08621f88192b65e525a22..9ca21a1a91dc54037eba0a5592b24ea08436b56c 100644 (file)
@@ -41,6 +41,7 @@
  * bridging between RR wireformat data and crypto calls.
  */
 #include "config.h"
+#include "ldns/ldns.h"
 #include "validator/val_sigcrypt.h"
 #include "validator/validator.h"
 #include "util/data/msgreply.h"
 #error "Need SSL library to do digital signature cryptography"
 #endif
 
+#ifdef HAVE_OPENSSL_ERR_H
+#include <openssl/err.h>
+#endif
+
+#ifdef HAVE_OPENSSL_RAND_H
+#include <openssl/rand.h>
+#endif
+
+#ifdef HAVE_OPENSSL_CONF_H
+#include <openssl/conf.h>
+#endif
+
+#ifdef HAVE_OPENSSL_ENGINE_H
+#include <openssl/engine.h>
+#endif
+
 /** return number of rrs in an rrset */
 static size_t
 rrset_get_count(struct ub_packed_rrset_key* rrset)
index 5f26f6511919e82b0a90ca72965bba16e0464854..650b689585ff70163b048e03c6c85ce006d5940a 100644 (file)
@@ -40,6 +40,7 @@
  * According to RFC 4034.
  */
 #include "config.h"
+#include "ldns/ldns.h"
 #include "validator/validator.h"
 #include "validator/val_anchor.h"
 #include "validator/val_kcache.h"