aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-10-01 11:22:47 -0500
committerNick Mathewson <nickm@torproject.org>2018-10-01 11:22:47 -0500
commitd19934866417aa9106fb17c39cfec606d33eacdb (patch)
treea3ff3eb465e2c7ff29c939bc031f6c4eea4e0e61
parent5f9839ee424476de83da8533955da58068e57037 (diff)
downloadtor-d19934866417aa9106fb17c39cfec606d33eacdb.tar.gz
tor-d19934866417aa9106fb17c39cfec606d33eacdb.zip
Remove versions.h include from routerparse.h
-rw-r--r--src/core/or/protover.c2
-rw-r--r--src/feature/control/control.c2
-rw-r--r--src/feature/dirauth/process_descs.c1
-rw-r--r--src/feature/dirparse/ns_parse.c1
-rw-r--r--src/feature/dirparse/routerparse.c1
-rw-r--r--src/feature/dirparse/routerparse.h2
-rw-r--r--src/test/fuzz/fuzz_hsdescv3.c1
-rw-r--r--src/test/test_dir.c2
-rw-r--r--src/test/test_hs_service.c31
9 files changed, 21 insertions, 22 deletions
diff --git a/src/core/or/protover.c b/src/core/or/protover.c
index 4458316c9c..e80fbfae81 100644
--- a/src/core/or/protover.c
+++ b/src/core/or/protover.c
@@ -25,7 +25,7 @@
#include "core/or/or.h"
#include "core/or/protover.h"
-#include "feature/dirparse/routerparse.h"
+#include "core/or/versions.h"
#include "lib/tls/tortls.h"
#ifndef HAVE_RUST
diff --git a/src/feature/control/control.c b/src/feature/control/control.c
index 7f0032c0bf..f0db97dc89 100644
--- a/src/feature/control/control.c
+++ b/src/feature/control/control.c
@@ -52,6 +52,7 @@
#include "core/or/connection_or.h"
#include "core/or/policies.h"
#include "core/or/reasons.h"
+#include "core/or/versions.h"
#include "core/proto/proto_control0.h"
#include "core/proto/proto_http.h"
#include "feature/client/addressmap.h"
@@ -65,7 +66,6 @@
#include "feature/dirclient/dirclient.h"
#include "feature/dirclient/dlstatus.h"
#include "feature/dircommon/directory.h"
-#include "feature/dirparse/routerparse.h"
#include "feature/hibernate/hibernate.h"
#include "feature/hs/hs_cache.h"
#include "feature/hs/hs_common.h"
diff --git a/src/feature/dirauth/process_descs.c b/src/feature/dirauth/process_descs.c
index 94c456a775..c379f25bdd 100644
--- a/src/feature/dirauth/process_descs.c
+++ b/src/feature/dirauth/process_descs.c
@@ -17,6 +17,7 @@
#include "app/config/config.h"
#include "core/or/policies.h"
+#include "core/or/versions.h"
#include "feature/dirauth/keypin.h"
#include "feature/dirauth/reachability.h"
#include "feature/dirclient/dlstatus.h"
diff --git a/src/feature/dirparse/ns_parse.c b/src/feature/dirparse/ns_parse.c
index e356c0c11f..72299e8071 100644
--- a/src/feature/dirparse/ns_parse.c
+++ b/src/feature/dirparse/ns_parse.c
@@ -13,6 +13,7 @@
#include "core/or/or.h"
#include "app/config/config.h"
+#include "core/or/versions.h"
#include "feature/client/entrynodes.h"
#include "feature/dirauth/dirvote.h"
#include "feature/dirparse/authcert_parse.h"
diff --git a/src/feature/dirparse/routerparse.c b/src/feature/dirparse/routerparse.c
index 2aa6bef802..2249ab7cbc 100644
--- a/src/feature/dirparse/routerparse.c
+++ b/src/feature/dirparse/routerparse.c
@@ -55,6 +55,7 @@
#include "core/or/or.h"
#include "app/config/config.h"
#include "core/or/policies.h"
+#include "core/or/versions.h"
#include "feature/dirparse/parsecommon.h"
#include "feature/dirparse/policy_parse.h"
#include "feature/dirparse/routerparse.h"
diff --git a/src/feature/dirparse/routerparse.h b/src/feature/dirparse/routerparse.h
index 3022d60d36..6568dce0a4 100644
--- a/src/feature/dirparse/routerparse.h
+++ b/src/feature/dirparse/routerparse.h
@@ -12,8 +12,6 @@
#ifndef TOR_ROUTERPARSE_H
#define TOR_ROUTERPARSE_H
-#include "core/or/versions.h"
-
int router_get_router_hash(const char *s, size_t s_len, char *digest);
int router_get_extrainfo_hash(const char *s, size_t s_len, char *digest);
diff --git a/src/test/fuzz/fuzz_hsdescv3.c b/src/test/fuzz/fuzz_hsdescv3.c
index ce6dfb177a..871fbefa49 100644
--- a/src/test/fuzz/fuzz_hsdescv3.c
+++ b/src/test/fuzz/fuzz_hsdescv3.c
@@ -1,7 +1,6 @@
/* Copyright (c) 2017-2018, The Tor Project, Inc. */
/* See LICENSE for licensing information */
-#define ROUTERPARSE_PRIVATE
#define HS_DESCRIPTOR_PRIVATE
#include "core/or/or.h"
diff --git a/src/test/test_dir.c b/src/test/test_dir.c
index 3b5d6dc3d6..c18aa99fea 100644
--- a/src/test/test_dir.c
+++ b/src/test/test_dir.c
@@ -20,7 +20,6 @@
#define NODE_SELECT_PRIVATE
#define RELAY_PRIVATE
#define ROUTERLIST_PRIVATE
-#define ROUTERPARSE_PRIVATE
#define ROUTER_PRIVATE
#define UNPARSEABLE_PRIVATE
#define VOTEFLAGS_PRIVATE
@@ -30,6 +29,7 @@
#include "app/config/confparse.h"
#include "core/mainloop/connection.h"
#include "core/or/relay.h"
+#include "core/or/versions.h"
#include "feature/client/bridges.h"
#include "feature/client/entrynodes.h"
#include "feature/control/control.h"
diff --git a/src/test/test_hs_service.c b/src/test/test_hs_service.c
index 67686bbeee..957bf6e103 100644
--- a/src/test/test_hs_service.c
+++ b/src/test/test_hs_service.c
@@ -21,7 +21,6 @@
#define STATEFILE_PRIVATE
#define TOR_CHANNEL_INTERNAL_
#define HS_CLIENT_PRIVATE
-#define ROUTERPARSE_PRIVATE
#include "test/test.h"
#include "test/test_helpers.h"
@@ -31,33 +30,33 @@
#include "core/or/or.h"
#include "app/config/config.h"
+#include "app/config/statefile.h"
+#include "core/crypto/hs_ntor.h"
+#include "core/mainloop/connection.h"
+#include "core/mainloop/mainloop.h"
#include "core/or/circuitbuild.h"
#include "core/or/circuitlist.h"
#include "core/or/circuituse.h"
-#include "core/mainloop/connection.h"
#include "core/or/connection_edge.h"
#include "core/or/edge_connection_st.h"
-#include "lib/crypt_ops/crypto_rand.h"
-#include "lib/fs/dir.h"
-#include "feature/dirauth/dirvote.h"
-#include "feature/nodelist/networkstatus.h"
-#include "feature/nodelist/nodelist.h"
#include "core/or/relay.h"
-#include "feature/dirparse/routerparse.h"
+#include "core/or/versions.h"
+#include "feature/dirauth/dirvote.h"
+#include "feature/dirauth/shared_random_state.h"
+#include "feature/dircommon/voting_schedule.h"
+#include "feature/hs/hs_circuit.h"
+#include "feature/hs/hs_circuitmap.h"
+#include "feature/hs/hs_client.h"
#include "feature/hs/hs_common.h"
#include "feature/hs/hs_config.h"
#include "feature/hs/hs_ident.h"
#include "feature/hs/hs_intropoint.h"
-#include "core/crypto/hs_ntor.h"
-#include "feature/hs/hs_circuit.h"
-#include "feature/hs/hs_circuitmap.h"
#include "feature/hs/hs_service.h"
-#include "feature/hs/hs_client.h"
-#include "core/mainloop/mainloop.h"
+#include "feature/nodelist/networkstatus.h"
+#include "feature/nodelist/nodelist.h"
#include "feature/rend/rendservice.h"
-#include "app/config/statefile.h"
-#include "feature/dirauth/shared_random_state.h"
-#include "feature/dircommon/voting_schedule.h"
+#include "lib/crypt_ops/crypto_rand.h"
+#include "lib/fs/dir.h"
#include "core/or/cpath_build_state_st.h"
#include "core/or/crypt_path_st.h"