diff options
author | George Kadianakis <desnacked@riseup.net> | 2017-06-01 14:07:53 +0300 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-08-24 13:03:28 -0400 |
commit | 0f6633abb29743d920c27e8d7888dba4d83217b5 (patch) | |
tree | 05f761e71346d1a392a9cb286da4a3cbd8f2faff /src/or/hs_common.h | |
parent | 5c9cd912eece244f90ecf31712722dc6b993f6da (diff) | |
download | tor-0f6633abb29743d920c27e8d7888dba4d83217b5.tar.gz tor-0f6633abb29743d920c27e8d7888dba4d83217b5.zip |
prop224: Refactor pick_hsdir() to be used by both v2 and v3.
Also refactor rendclient.c to use the new hs_pick_hdsir() func.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_common.h')
-rw-r--r-- | src/or/hs_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/hs_common.h b/src/or/hs_common.h index 4692a3a019..6ad68d0a8a 100644 --- a/src/or/hs_common.h +++ b/src/or/hs_common.h @@ -221,6 +221,8 @@ int32_t hs_get_hsdir_spread_store(void); void hs_get_responsible_hsdirs(const ed25519_public_key_t *blinded_pk, uint64_t time_period_num, int is_next_period, int is_client, smartlist_t *responsible_dirs); +routerstatus_t *hs_pick_hsdir(smartlist_t *responsible_dirs, + const char *req_key_str); time_t hs_hsdir_requery_period(const or_options_t *options); time_t hs_lookup_last_hid_serv_request(routerstatus_t *hs_dir, |