diff options
author | Nick Mathewson <nickm@torproject.org> | 2003-05-08 03:36:53 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2003-05-08 03:36:53 +0000 |
commit | c3998e94f9175f588bad98fa70d674136b617212 (patch) | |
tree | 5fc3bac3cdaff83a650fee6e6f852a1d53f02da4 /src/or/or.h | |
parent | bcfbccb056a94d37f20cd528dcf052f1558770d2 (diff) | |
download | tor-c3998e94f9175f588bad98fa70d674136b617212.tar tor-c3998e94f9175f588bad98fa70d674136b617212.tar.gz |
Call the right signed-directory functions; try to describe the difference between everything; remove some unused interfaces
svn:r276
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/or/or.h b/src/or/or.h index 911c29d8d..98971dcad 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -740,10 +740,12 @@ int prepare_for_poll(int *timeout); int do_main_loop(void); void dumpstats(void); -void dump_directory_to_string(char *s, int maxlen); -void dump_directory_to_string_impl(char *s, int maxlen, directory_t *directory); -int dump_signed_directory_to_string_impl(char *s, int maxlen, directory_t *dir, crypto_pk_env_t *private_key); - +int dump_signed_directory_to_string(char *s, int maxlen, + crypto_pk_env_t *private_key); +/* Exported for debugging */ +int dump_signed_directory_to_string_impl(char *s, int maxlen, + directory_t *dir, + crypto_pk_env_t *private_key); int main(int argc, char *argv[]); @@ -796,9 +798,13 @@ int router_is_me(uint32_t addr, uint16_t port); void router_forget_router(uint32_t addr, uint16_t port); int router_get_list_from_file(char *routerfile); int router_resolve(routerinfo_t *router); +/* Reads a list of known routers, unsigned. */ int router_get_list_from_string(char *s); +/* Exported for debugging */ int router_get_list_from_string_impl(char *s, directory_t **dest); +/* Reads a signed directory. */ int router_get_dir_from_string(char *s, crypto_pk_env_t *pkey); +/* Exported or debugging */ int router_get_dir_from_string_impl(char *s, directory_t **dest, crypto_pk_env_t *pkey); routerinfo_t *router_get_entry_from_string(char **s); |