diff options
author | Nick Mathewson <nickm@torproject.org> | 2003-12-08 23:45:37 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2003-12-08 23:45:37 +0000 |
commit | ac552573dddbd661685382cdd89841a206dc0b00 (patch) | |
tree | 80ed7a762c4e939f8481820c1719be9351b7afa2 /src/or/or.h | |
parent | 8bd7c94bf6ca5ef0ece02b165ed0102eb39e0d78 (diff) | |
download | tor-ac552573dddbd661685382cdd89841a206dc0b00.tar.gz tor-ac552573dddbd661685382cdd89841a206dc0b00.zip |
Make router/directory parsing nondestructive and more const-friendly
svn:r890
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/or/or.h b/src/or/or.h index af8a0419f4..09be6c3986 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -749,11 +749,11 @@ void router_get_routerlist(routerlist_t **prouterlist); void routerinfo_free(routerinfo_t *router); void router_mark_as_down(char *nickname); int router_set_routerlist_from_file(char *routerfile); -int router_get_dir_hash(char *s, char *digest); -int router_get_router_hash(char *s, char *digest); -int router_set_routerlist_from_directory(char *s, crypto_pk_env_t *pkey); -routerinfo_t *router_get_entry_from_string(char**s); -int router_add_exit_policy_from_string(routerinfo_t *router, char *s); +int router_get_dir_hash(const char *s, char *digest); +int router_get_router_hash(const char *s, char *digest); +int router_set_routerlist_from_directory(const char *s, crypto_pk_env_t *pkey); +routerinfo_t *router_get_entry_from_string(const char **s); +int router_add_exit_policy_from_string(routerinfo_t *router, const char *s); int router_supports_exit_address(uint32_t addr, uint16_t port, routerinfo_t *router); int router_compare_addr_to_exit_policy(uint32_t addr, uint16_t port, |