diff options
author | George Kadianakis <desnacked@riseup.net> | 2017-08-29 18:28:11 +0300 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2017-09-15 12:46:26 +0300 |
commit | e9b4624cc589d830d7a78128649f7945ac808737 (patch) | |
tree | 27fbe464cbf0a8cb4824fd8f647c3271afcbbe1d /src/or/hs_client.h | |
parent | 29aa400908ff89c72fd9fbd723793058d73ce35f (diff) | |
download | tor-e9b4624cc589d830d7a78128649f7945ac808737.tar.gz tor-e9b4624cc589d830d7a78128649f7945ac808737.zip |
test: Add HS v3 client-side test for picking intro points
This commit adds a pretty advanced test for the client-side making sure that
picking intro is done properly.
This unittest also reveals a memleak on the client_pick_intro() function which
is fixed by the subsequent commit.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_client.h')
-rw-r--r-- | src/or/hs_client.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/or/hs_client.h b/src/or/hs_client.h index 3ea2b8cdf9..d50d346217 100644 --- a/src/or/hs_client.h +++ b/src/or/hs_client.h @@ -71,7 +71,13 @@ void hs_client_free_all(void); STATIC routerstatus_t * pick_hsdir_v3(const ed25519_public_key_t *onion_identity_pk); -#endif +STATIC extend_info_t * +client_get_random_intro(const ed25519_public_key_t *service_pk); + +STATIC extend_info_t * +desc_intro_point_to_extend_info(const hs_desc_intro_point_t *ip); + +#endif /* HS_CLIENT_PRIVATE */ #endif /* TOR_HS_CLIENT_H */ |