From c754864cfda8cf1fffcf754c400be0c21b74b50d Mon Sep 17 00:00:00 2001 From: George Kadianakis Date: Thu, 1 Jun 2017 14:12:33 +0300 Subject: prop224: Add code that launches v3 HS desc fetches. Entry point is hs_client_refetch_v3_renddesc(). Will be used in subsequent commits. Signed-off-by: David Goulet --- src/or/directory.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/or/directory.c') diff --git a/src/or/directory.c b/src/or/directory.c index e079a5941f..7c96b43ca4 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -1859,6 +1859,13 @@ directory_send_command(dir_connection_t *conn, httpcommand = "GET"; tor_asprintf(&url, "/tor/rendezvous2/%s", resource); break; + case DIR_PURPOSE_FETCH_HSDESC: + tor_assert(resource); + tor_assert(strlen(resource) <= ED25519_BASE64_LEN); + tor_assert(!payload); + httpcommand = "GET"; + tor_asprintf(&url, "/tor/hs/3/%s", resource); + break; case DIR_PURPOSE_UPLOAD_RENDDESC_V2: tor_assert(!resource); tor_assert(payload); -- cgit v1.2.3-54-g00ecf