diff options
author | David Goulet <dgoulet@ev0ke.net> | 2015-04-28 10:22:14 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-04-30 12:35:21 -0400 |
commit | a9b9f6d90f473e1a4fad3816ee73190da15b2291 (patch) | |
tree | b6475d26ec81097b6c1ceb59f4175ab9b6b1638e /src/or/rendclient.h | |
parent | d33327ec22ac1ff2e25c337a12051efd2920cf3a (diff) | |
download | tor-a9b9f6d90f473e1a4fad3816ee73190da15b2291.tar.gz tor-a9b9f6d90f473e1a4fad3816ee73190da15b2291.zip |
Update descriptor ID when it changes in rend_data
When we have a new descriptor ID for an onion address request, change it in
the rend_data_t object and purge the old one from the last hid serv request
cache.
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Diffstat (limited to 'src/or/rendclient.h')
-rw-r--r-- | src/or/rendclient.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/or/rendclient.h b/src/or/rendclient.h index 5227b5cca6..639ec1eff4 100644 --- a/src/or/rendclient.h +++ b/src/or/rendclient.h @@ -19,9 +19,8 @@ void rend_client_rendcirc_has_opened(origin_circuit_t *circ); int rend_client_introduction_acked(origin_circuit_t *circ, const uint8_t *request, size_t request_len); -void rend_client_refetch_v2_renddesc(const rend_data_t *rend_query); -int rend_client_fetch_v2_desc(const rend_data_t *query, - smartlist_t *hsdirs); +void rend_client_refetch_v2_renddesc(rend_data_t *rend_query); +int rend_client_fetch_v2_desc(rend_data_t *query, smartlist_t *hsdirs); void rend_client_cancel_descriptor_fetches(void); void rend_client_purge_last_hid_serv_requests(void); @@ -30,7 +29,7 @@ void rend_client_purge_last_hid_serv_requests(void); #define INTRO_POINT_FAILURE_UNREACHABLE 2 int rend_client_report_intro_point_failure(extend_info_t *failed_intro, - const rend_data_t *rend_query, + rend_data_t *rend_query, unsigned int failure_type); int rend_client_rendezvous_acked(origin_circuit_t *circ, |