summaryrefslogtreecommitdiff
path: root/src/or/rendclient.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-04-21 15:08:28 -0400
committerNick Mathewson <nickm@torproject.org>2017-04-21 15:08:28 -0400
commit8aadd60eac6d2b4feb176e34805b4bd5a8b77aed (patch)
tree17a30e24707bd2fc6efc635dd2a3d909cffb628f /src/or/rendclient.c
parent4e393f53188055e478c0292af504fb97d02a4ff2 (diff)
downloadtor-8aadd60eac6d2b4feb176e34805b4bd5a8b77aed.tar.gz
tor-8aadd60eac6d2b4feb176e34805b4bd5a8b77aed.zip
Replace remaining directory_initiate_command_* instances
Diffstat (limited to 'src/or/rendclient.c')
-rw-r--r--src/or/rendclient.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/or/rendclient.c b/src/or/rendclient.c
index 8d2ae03c9e..1ae03ed408 100644
--- a/src/or/rendclient.c
+++ b/src/or/rendclient.c
@@ -756,13 +756,15 @@ directory_get_from_hs_dir(const char *desc_id,
/* Send fetch request. (Pass query and possibly descriptor cookie so that
* they can be written to the directory connection and be referred to when
* the response arrives. */
- directory_initiate_command_routerstatus_rend(hs_dir,
- DIR_PURPOSE_FETCH_RENDDESC_V2,
- ROUTER_PURPOSE_GENERAL,
- how_to_fetch,
- desc_id_base32,
- NULL, 0, 0,
- rend_query, NULL);
+ directory_request_t *req =
+ directory_request_new(DIR_PURPOSE_FETCH_RENDDESC_V2);
+ directory_request_set_routerstatus(req, hs_dir);
+ directory_request_set_indirection(req, how_to_fetch);
+ directory_request_set_resource(req, desc_id_base32);
+ directory_request_set_rend_query(req, rend_query);
+ directory_initiate_request(req);
+ directory_request_free(req);
+
log_info(LD_REND, "Sending fetch request for v2 descriptor for "
"service '%s' with descriptor ID '%s', auth type %d, "
"and descriptor cookie '%s' to hidden service "