summaryrefslogtreecommitdiff
path: root/src/or/hs_client.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-09-08 18:43:45 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2017-09-08 19:07:00 +0300
commit0307e7e0e7337840386294dfb63f610f31864687 (patch)
tree1ce2be11a3cab822e506f580d61af46b45438295 /src/or/hs_client.c
parente0371935a1787d5f34237343d0b7eaf206e133cf (diff)
downloadtor-0307e7e0e7337840386294dfb63f610f31864687.tar.gz
tor-0307e7e0e7337840386294dfb63f610f31864687.zip
test: Test that client picks the right HSDir for service.
This test is important because it tests that upload_descriptor_to_all() is in synch with pick_hsdir_v3(). That's not the case for the reachability test which just compares the responsible hsdir sets.
Diffstat (limited to 'src/or/hs_client.c')
-rw-r--r--src/or/hs_client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/hs_client.c b/src/or/hs_client.c
index 3394e0eb69..e7d316b745 100644
--- a/src/or/hs_client.c
+++ b/src/or/hs_client.c
@@ -6,6 +6,8 @@
* \brief Implement next generation hidden service client functionality
**/
+#define HS_CLIENT_PRIVATE
+
#include "or.h"
#include "hs_circuit.h"
#include "hs_ident.h"
@@ -158,7 +160,7 @@ directory_launch_v3_desc_fetch(const ed25519_public_key_t *onion_identity_pk,
/** Return the HSDir we should use to fetch the descriptor of the hidden
* service with identity key <b>onion_identity_pk</b>. */
-static routerstatus_t *
+STATIC routerstatus_t *
pick_hsdir_v3(const ed25519_public_key_t *onion_identity_pk)
{
int retval;