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.c | |
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.c')
-rw-r--r-- | src/or/hs_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/hs_client.c b/src/or/hs_client.c index be5ece068c..19359d260e 100644 --- a/src/or/hs_client.c +++ b/src/or/hs_client.c @@ -521,7 +521,7 @@ client_rendezvous_circ_has_opened(origin_circuit_t *circ) * to a newly allocated extend_info_t object fully initialized. Return NULL if * we can't convert it for which chances are that we are missing or malformed * link specifiers. */ -static extend_info_t * +STATIC extend_info_t * desc_intro_point_to_extend_info(const hs_desc_intro_point_t *ip) { extend_info_t *ei; @@ -594,7 +594,7 @@ intro_point_is_usable(const ed25519_public_key_t *service_pk, /* Using a descriptor desc, return a newly allocated extend_info_t object of a * randomly picked introduction point from its list. Return NULL if none are * usable. */ -static extend_info_t * +STATIC extend_info_t * client_get_random_intro(const ed25519_public_key_t *service_pk) { extend_info_t *ei = NULL, *ei_excluded = NULL; |