diff options
author | George Kadianakis <desnacked@riseup.net> | 2017-06-01 14:35:39 +0300 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-08-24 13:03:28 -0400 |
commit | 6eb9de1b8c2ede739ebcd3514201c07365fadb18 (patch) | |
tree | 85fc6933c2c2ae8957fd41b5d36fd19965320277 /src/or/directory.c | |
parent | 79ff2e014f5726648e3f2c4a3f521ede76b8c6e2 (diff) | |
download | tor-6eb9de1b8c2ede739ebcd3514201c07365fadb18.tar.gz tor-6eb9de1b8c2ede739ebcd3514201c07365fadb18.zip |
test: Add tests for fetching descs and handling SOCKS conns.
- Add tests that ensure that SOCKS requests for v2/v3 addresses get
intercepted and handled.
- Add test that stores and lookups an HS descriptor in the client-side cache.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 698ee90139..9268c3ca2f 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -2203,16 +2203,6 @@ load_downloaded_routers(const char *body, smartlist_t *which, return added; } -/** A structure to hold arguments passed into each directory response - * handler */ -typedef struct response_handler_args_t { - int status_code; - const char *reason; - const char *body; - size_t body_len; - const char *headers; -} response_handler_args_t; - static int handle_response_fetch_consensus(dir_connection_t *, const response_handler_args_t *); static int handle_response_fetch_certificate(dir_connection_t *, |