summaryrefslogtreecommitdiff
path: root/src/or/directory.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-11-06 14:48:22 +0200
committerNick Mathewson <nickm@torproject.org>2017-11-17 09:52:40 -0500
commit7fc64f02a3057405f9e75d70848afd2e9b95da05 (patch)
tree6f126115f02e8ffa0433c3e5cba5922e135fcfee /src/or/directory.h
parent1d5e693b63bffe06cb69932176eb0ac4ea4decbd (diff)
downloadtor-7fc64f02a3057405f9e75d70848afd2e9b95da05.tar.gz
tor-7fc64f02a3057405f9e75d70848afd2e9b95da05.zip
Introduce cache for outdated microdesc dirservers.
We gonna use this cache to avoid dirservers without outdated md info.
Diffstat (limited to 'src/or/directory.h')
-rw-r--r--src/or/directory.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/or/directory.h b/src/or/directory.h
index 14d5ae9ef4..571c30a0fc 100644
--- a/src/or/directory.h
+++ b/src/or/directory.h
@@ -166,7 +166,12 @@ STATIC char *accept_encoding_header(void);
STATIC int allowed_anonymous_connection_compression_method(compress_method_t);
STATIC void warn_disallowed_anonymous_compression_method(compress_method_t);
-#endif
+struct response_handler_args_t;
+
+STATIC int handle_response_fetch_microdesc(dir_connection_t *conn,
+ const struct response_handler_args_t *args);
+
+#endif /* defined(DIRECTORY_PRIVATE) */
#ifdef TOR_UNIT_TESTS
/* Used only by test_dir.c */