From 87585ebd2d8a902e729733f1f1cb6a23373a8c33 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Tue, 5 Sep 2017 12:02:16 -0400 Subject: test: Add an HS v3 reachability unit test This is a large and important unit test for the hidden service version 3! It tests the service reachability for a client using different consensus timings and makes sure that the computed hashring is the same on both side so it is actually reachable. Signed-off-by: David Goulet --- src/or/nodelist.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/or/nodelist.h') diff --git a/src/or/nodelist.h b/src/or/nodelist.h index 9676263f75..318bf0e794 100644 --- a/src/or/nodelist.h +++ b/src/or/nodelist.h @@ -136,5 +136,16 @@ void router_dir_info_changed(void); const char *get_dir_info_status_string(void); int count_loading_descriptors_progress(void); +#ifdef NODELIST_PRIVATE + +#ifdef TOR_UNIT_TESTS + +STATIC void +node_set_hsdir_index(node_t *node, const networkstatus_t *ns); + +#endif /* TOR_UNIT_TESTS */ + +#endif /* NODELIST_PRIVATE */ + #endif -- cgit v1.2.3-54-g00ecf