aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-03-29 19:28:16 +0000
committerNick Mathewson <nickm@torproject.org>2004-03-29 19:28:16 +0000
commit0e6084d751a66d45d5e6ac6d5d6de4771a24680f (patch)
tree17969cdb4d8c8e6c77dc65460d3f3be9a3155c12 /src/or/or.h
parent47b9d4439a77c4a8f90e7b3c566f0e10d228d854 (diff)
downloadtor-0e6084d751a66d45d5e6ac6d5d6de4771a24680f.tar
tor-0e6084d751a66d45d5e6ac6d5d6de4771a24680f.tar.gz
Remove descriptors that are older than 24 hours from the directory. Use strlcat instead of strncat to generate directories.
svn:r1361
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 25c8420b7..606edfb89 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -905,8 +905,9 @@ int dirserv_init_from_directory_string(const char *dir);
void dirserv_free_descriptors();
int dirserv_dump_directory_to_string(char *s, int maxlen,
crypto_pk_env_t *private_key);
-void directory_set_dirty();
+void directory_set_dirty(void);
size_t dirserv_get_directory(const char **cp);
+void dirserv_remove_old_servers(void);
/********************************* rephist.c ***************************/