diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-10-03 02:37:52 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-10-03 02:37:52 +0000 |
commit | 9e8ae9766e5d4eb94972f2e7118ce8e9c2e09381 (patch) | |
tree | 0f3716d7dcda024edbec69a67827609dfe19299d /src/or/or.h | |
parent | 5e74ce8d57e0de041480db99ffb11c4a90249355 (diff) | |
download | tor-9e8ae9766e5d4eb94972f2e7118ce8e9c2e09381.tar.gz tor-9e8ae9766e5d4eb94972f2e7118ce8e9c2e09381.zip |
Only check versions against downloaded directories, not cached directories.tor-0.0.9pre2
svn:r2413
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/or.h b/src/or/or.h index eba01b8e61..5c14e4d69e 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1420,7 +1420,8 @@ void router_mark_as_down(const char *digest); void routerlist_remove_old_routers(int age); int router_load_routerlist_from_file(char *routerfile, int trusted); int router_load_routerlist_from_string(const char *s, int trusted); -int router_load_routerlist_from_directory(const char *s,crypto_pk_env_t *pkey); +int router_load_routerlist_from_directory(const char *s,crypto_pk_env_t *pkey, + int check_version); int router_compare_addr_to_exit_policy(uint32_t addr, uint16_t port, struct exit_policy_t *policy); #define ADDR_POLICY_ACCEPTED 0 @@ -1455,7 +1456,8 @@ int router_parse_list_from_string(const char **s, time_t published); int router_parse_routerlist_from_directory(const char *s, routerlist_t **dest, - crypto_pk_env_t *pkey); + crypto_pk_env_t *pkey, + int check_version); running_routers_t *router_parse_runningrouters(const char *str); routerinfo_t *router_parse_entry_from_string(const char *s, const char *end); int router_add_exit_policy_from_string(routerinfo_t *router, const char *s); |