aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2016-08-25 11:04:59 -0400
committerDavid Goulet <dgoulet@torproject.org>2016-11-04 10:32:49 -0400
commitf59990f24ddf3e5c7cdeb82c9e8cf16c7dcce56b (patch)
tree1c0256e5668698dc9f5143fc9e16cf22b9a5c9e0 /src/or/directory.h
parent45a72356cbf085f02d92edcbd9f5a3ed129216cc (diff)
downloadtor-f59990f24ddf3e5c7cdeb82c9e8cf16c7dcce56b.tar.gz
tor-f59990f24ddf3e5c7cdeb82c9e8cf16c7dcce56b.zip
prop224: Directory support for v3 descriptor fetch
Signed-off-by: David Goulet <dgoulet@torproject.org> Signed-off-by: George Kadianakis <desnacked@riseup.net>
Diffstat (limited to 'src/or/directory.h')
-rw-r--r--src/or/directory.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/or/directory.h b/src/or/directory.h
index a6c33d7f39..2fe42f2de6 100644
--- a/src/or/directory.h
+++ b/src/or/directory.h
@@ -134,8 +134,16 @@ time_t download_status_get_next_attempt_at(const download_status_t *dls);
int purpose_needs_anonymity(uint8_t dir_purpose, uint8_t router_purpose);
+#ifdef DIRECTORY_PRIVATE
+
+struct get_handler_args_t;
+STATIC int handle_get_hs_descriptor_v3(dir_connection_t *conn,
+ const struct get_handler_args_t *args);
+
+#endif
+
#ifdef TOR_UNIT_TESTS
-/* Used only by directory.c and test_dir.c */
+/* Used only by test_dir.c */
STATIC int parse_http_url(const char *headers, char **url);
STATIC dirinfo_type_t dir_fetch_type(int dir_purpose, int router_purpose,