diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-10-04 21:21:09 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-10-04 21:21:09 +0000 |
commit | 2d203fdcf319b45477bdcad7e3476ac3c45ee7e0 (patch) | |
tree | 77e9ae8a63c4ad69a1782a8d4c6798b125817743 /src/or/or.h | |
parent | b10df0d5950c28f8e4684014a4f6d02d51b61f74 (diff) | |
download | tor-2d203fdcf319b45477bdcad7e3476ac3c45ee7e0.tar.gz tor-2d203fdcf319b45477bdcad7e3476ac3c45ee7e0.zip |
link nicknames to trusted directory servers; log these nicknames when mentioning servers; also, when we get a naming conflict; log which nicknames or keys are supposed to bind.
svn:r5184
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h index ad5a0d0d15..c1e3203010 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2062,6 +2062,8 @@ void router_free_all_keys(void); /** Represents information about a single trusted directory server. */ typedef struct trusted_dir_server_t { + char *description; + char *nickname; char *address; /**< Hostname */ uint32_t addr; /**< IPv4 address */ uint16_t dir_port; /**< Directory port */ @@ -2138,7 +2140,8 @@ int router_exit_policy_all_routers_reject(uint32_t addr, uint16_t port, int need_uptime); int router_exit_policy_rejects_all(routerinfo_t *router); -void add_trusted_dir_server(const char *addr, uint16_t port, +void add_trusted_dir_server(const char *nickname, + const char *addr, uint16_t port, const char *digest, int supports_v1); void clear_trusted_dir_servers(void); networkstatus_t *networkstatus_get_by_digest(const char *digest); |