Isolate resolve.h usage in the modules that really need it.

(Almost none of Tor should actually need to touch the platform resolver.)
This commit is contained in:
Nick Mathewson 2018-07-10 13:36:45 -04:00
parent 8de48c111c
commit a2c44a7a7e
13 changed files with 12 additions and 2 deletions

View File

@ -106,6 +106,7 @@
#include "feature/client/transports.h" #include "feature/client/transports.h"
#include "feature/relay/ext_orport.h" #include "feature/relay/ext_orport.h"
#include "feature/dircommon/voting_schedule.h" #include "feature/dircommon/voting_schedule.h"
#include "lib/net/resolve.h"
#ifdef _WIN32 #ifdef _WIN32
#include <shlobj.h> #include <shlobj.h>
#endif #endif

View File

@ -43,6 +43,7 @@
#include "lib/sandbox/sandbox.h" #include "lib/sandbox/sandbox.h"
#include "app/config/statefile.h" #include "app/config/statefile.h"
#include "lib/encoding/confline.h" #include "lib/encoding/confline.h"
#include "lib/net/resolve.h"
#include "app/config/or_state_st.h" #include "app/config/or_state_st.h"

View File

@ -116,6 +116,7 @@
#include "lib/sandbox/sandbox.h" #include "lib/sandbox/sandbox.h"
#include "lib/fs/lockfile.h" #include "lib/fs/lockfile.h"
#include "lib/net/buffers_net.h" #include "lib/net/buffers_net.h"
#include "lib/net/resolve.h"
#include "lib/tls/tortls.h" #include "lib/tls/tortls.h"
#include "lib/evloop/compat_libevent.h" #include "lib/evloop/compat_libevent.h"
#include "lib/encoding/confline.h" #include "lib/encoding/confline.h"

View File

@ -50,7 +50,6 @@
#include "lib/malloc/util_malloc.h" #include "lib/malloc/util_malloc.h"
#include "lib/net/address.h" #include "lib/net/address.h"
#include "lib/net/inaddr.h" #include "lib/net/inaddr.h"
#include "lib/net/resolve.h"
#include "lib/net/socket.h" #include "lib/net/socket.h"
#include "lib/string/compat_ctype.h" #include "lib/string/compat_ctype.h"
#include "lib/string/compat_string.h" #include "lib/string/compat_string.h"

View File

@ -123,6 +123,7 @@
#include "lib/sandbox/sandbox.h" #include "lib/sandbox/sandbox.h"
#include "feature/nodelist/torcert.h" #include "feature/nodelist/torcert.h"
#include "lib/math/fp.h" #include "lib/math/fp.h"
#include "lib/net/resolve.h"
#include "feature/dirauth/dirvote.h" #include "feature/dirauth/dirvote.h"
#include "feature/dirauth/mode.h" #include "feature/dirauth/mode.h"

View File

@ -37,6 +37,7 @@
#include "feature/nodelist/routerparse.h" #include "feature/nodelist/routerparse.h"
#include "feature/nodelist/routerset.h" #include "feature/nodelist/routerset.h"
#include "lib/encoding/confline.h" #include "lib/encoding/confline.h"
#include "lib/net/resolve.h"
#include "core/or/cpath_build_state_st.h" #include "core/or/cpath_build_state_st.h"
#include "core/or/crypt_path_st.h" #include "core/or/crypt_path_st.h"

View File

@ -10,6 +10,7 @@
#include "test/test.h" #include "test/test.h"
#include "feature/client/addressmap.h" #include "feature/client/addressmap.h"
#include "test/log_test_helpers.h" #include "test/log_test_helpers.h"
#include "lib/net/resolve.h"
#ifdef HAVE_SYS_UN_H #ifdef HAVE_SYS_UN_H
#include <sys/un.h> #include <sys/un.h>

View File

@ -10,6 +10,7 @@
#define ROUTERSET_PRIVATE #define ROUTERSET_PRIVATE
#include "core/or/or.h" #include "core/or/or.h"
#include "lib/net/address.h" #include "lib/net/address.h"
#include "lib/net/resolve.h"
#include "feature/client/addressmap.h" #include "feature/client/addressmap.h"
#include "feature/client/bridges.h" #include "feature/client/bridges.h"
#include "core/or/circuitmux_ewma.h" #include "core/or/circuitmux_ewma.h"

View File

@ -20,6 +20,7 @@
#include "feature/rend/rendcache.h" #include "feature/rend/rendcache.h"
#include "feature/dircache/directory.h" #include "feature/dircache/directory.h"
#include "core/or/connection_or.h" #include "core/or/connection_or.h"
#include "lib/net/resolve.h"
#include "test/test_connection.h" #include "test/test_connection.h"
#include "test/test_helpers.h" #include "test/test_helpers.h"
@ -899,4 +900,3 @@ struct testcase_t connection_tests[] = {
{ "failed_orconn_tracker", test_failed_orconn_tracker, TT_FORK, NULL, NULL }, { "failed_orconn_tracker", test_failed_orconn_tracker, TT_FORK, NULL, NULL },
END_OF_TESTCASES END_OF_TESTCASES
}; };

View File

@ -14,6 +14,7 @@
#include "feature/nodelist/nodelist.h" #include "feature/nodelist/nodelist.h"
#include "test/test.h" #include "test/test.h"
#include "test/test_helpers.h" #include "test/test_helpers.h"
#include "lib/net/resolve.h"
#include "feature/control/control_connection_st.h" #include "feature/control/control_connection_st.h"
#include "feature/dirclient/download_status_st.h" #include "feature/dirclient/download_status_st.h"

View File

@ -24,6 +24,7 @@
#include "core/or/relay.h" #include "core/or/relay.h"
#include "feature/nodelist/routerlist.h" #include "feature/nodelist/routerlist.h"
#include "lib/encoding/confline.h" #include "lib/encoding/confline.h"
#include "lib/net/resolve.h"
#include "core/or/cell_st.h" #include "core/or/cell_st.h"
#include "core/or/connection_st.h" #include "core/or/connection_st.h"

View File

@ -21,6 +21,7 @@
#include "lib/encoding/confline.h" #include "lib/encoding/confline.h"
#include "core/or/policies.h" #include "core/or/policies.h"
#include "test/test_helpers.h" #include "test/test_helpers.h"
#include "lib/net/resolve.h"
#define NS_MODULE test_options #define NS_MODULE test_options

View File

@ -19,6 +19,7 @@
#include "test/test.h" #include "test/test.h"
#include "lib/process/subprocess.h" #include "lib/process/subprocess.h"
#include "lib/encoding/confline.h" #include "lib/encoding/confline.h"
#include "lib/net/resolve.h"
#include "app/config/or_state_st.h" #include "app/config/or_state_st.h"