From db6a48b6bf65f817cfe9318f60616a67d4a8adfe Mon Sep 17 00:00:00 2001 From: George Kadianakis Date: Mon, 3 Jun 2019 14:25:38 +0300 Subject: control-port: Implement ONION_CLIENT_AUTH_VIEW. --- src/feature/hs/hs_client.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/feature/hs/hs_client.c') 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) */ + -- cgit v1.2.3-54-g00ecf