aboutsummaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_client.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-06-03 14:25:38 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2019-11-18 19:19:00 +0200
commitdb6a48b6bf65f817cfe9318f60616a67d4a8adfe (patch)
tree075eb4f4fe5a5e3a4f8c90586de746ac41e02fa0 /src/feature/hs/hs_client.c
parentee4b2287c6426470db1f93043841bbc6bbcb2df9 (diff)
downloadtor-db6a48b6bf65f817cfe9318f60616a67d4a8adfe.tar.gz
tor-db6a48b6bf65f817cfe9318f60616a67d4a8adfe.zip
control-port: Implement ONION_CLIENT_AUTH_VIEW.
Diffstat (limited to 'src/feature/hs/hs_client.c')
-rw-r--r--src/feature/hs/hs_client.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/feature/hs/hs_client.c b/src/feature/hs/hs_client.c
index bbe7b87a60..9edfd13673 100644
--- a/src/feature/hs/hs_client.c
+++ b/src/feature/hs/hs_client.c
@@ -1500,6 +1500,13 @@ hs_client_remove_auth_credentials(const char *hsaddress)
return REMOVAL_SUCCESS_NOT_FOUND;
}
+/** Get the HS client auth map. */
+digest256map_t *
+get_hs_client_auths_map(void)
+{
+ return client_auths;
+}
+
/* ========== */
/* Public API */
/* ========== */
@@ -2195,12 +2202,6 @@ hs_client_dir_info_changed(void)
#ifdef TOR_UNIT_TESTS
-STATIC digest256map_t *
-get_hs_client_auths_map(void)
-{
- return client_auths;
-}
-
STATIC void
set_hs_client_auths_map(digest256map_t *map)
{
@@ -2208,3 +2209,4 @@ set_hs_client_auths_map(digest256map_t *map)
}
#endif /* defined(TOR_UNIT_TESTS) */
+