diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-09-02 18:57:09 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-09-02 18:57:09 +0000 |
commit | d6e47bec460501b5d05903e90d6cf8188cd47de6 (patch) | |
tree | cbf3d3beb47226a2b111756ff646ca3d463554a1 /src/or/or.h | |
parent | bda41ba3fdcedf1bf9564e9b57d656bb6565f076 (diff) | |
download | tor-d6e47bec460501b5d05903e90d6cf8188cd47de6.tar.gz tor-d6e47bec460501b5d05903e90d6cf8188cd47de6.zip |
Keep a deflated version of each directory so we can deliver it when requested
svn:r2328
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h index a5cac7bce2..ab5ed36bb0 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -116,6 +116,7 @@ #include "../common/tortls.h" #include "../common/log.h" #include "../common/util.h" +#include "../common/torgzip.h" /** Upper bound on maximum simultaneous connections; can be lowered by * config file. */ @@ -1185,7 +1186,7 @@ void dirserv_remove_old_servers(int age); int dirserv_dump_directory_to_string(char *s, unsigned int maxlen, crypto_pk_env_t *private_key); void directory_set_dirty(void); -size_t dirserv_get_directory(const char **cp); +size_t dirserv_get_directory(const char **cp, int deflate); size_t dirserv_get_runningrouters(const char **rr); void dirserv_set_cached_directory(const char *directory, time_t when); |