aboutsummaryrefslogtreecommitdiff
path: root/src/or/nodelist.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-09-05 12:02:16 -0400
committerGeorge Kadianakis <desnacked@riseup.net>2017-09-08 19:07:00 +0300
commit87585ebd2d8a902e729733f1f1cb6a23373a8c33 (patch)
treef3e9cf2ee829705e25a33bd9391cd96571ae9040 /src/or/nodelist.c
parent4d38731e93e927374044fde2730149cb07ac0766 (diff)
downloadtor-87585ebd2d8a902e729733f1f1cb6a23373a8c33.tar.gz
tor-87585ebd2d8a902e729733f1f1cb6a23373a8c33.zip
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 <dgoulet@torproject.org>
Diffstat (limited to 'src/or/nodelist.c')
-rw-r--r--src/or/nodelist.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/nodelist.c b/src/or/nodelist.c
index 2dadfe54a8..674533b222 100644
--- a/src/or/nodelist.c
+++ b/src/or/nodelist.c
@@ -38,6 +38,8 @@
* used for authorities and fallback directories.)
*/
+#define NODELIST_PRIVATE
+
#include "or.h"
#include "address.h"
#include "config.h"
@@ -176,7 +178,7 @@ node_get_or_create(const char *identity_digest)
/* For a given <b>node</b> for the consensus <b>ns</b>, set the hsdir index
* for the node, both current and next if possible. This can only fails if the
* node_t ed25519 identity key can't be found which would be a bug. */
-static void
+STATIC void
node_set_hsdir_index(node_t *node, const networkstatus_t *ns)
{
time_t now = approx_time();