diff options
author | George Kadianakis <desnacked@riseup.net> | 2017-06-01 14:12:33 +0300 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-08-24 13:03:28 -0400 |
commit | c754864cfda8cf1fffcf754c400be0c21b74b50d (patch) | |
tree | 600dd97d9197966eec4783bc2082862cb8de9383 /src/or/directory.c | |
parent | 0f6633abb29743d920c27e8d7888dba4d83217b5 (diff) | |
download | tor-c754864cfda8cf1fffcf754c400be0c21b74b50d.tar.gz tor-c754864cfda8cf1fffcf754c400be0c21b74b50d.zip |
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 <dgoulet@torproject.org>
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 7 |
1 files changed, 7 insertions, 0 deletions
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); |