summaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2006-04-10 21:33:32 +0000
committerPeter Palfrader <peter@palfrader.org>2006-04-10 21:33:32 +0000
commit0d5808d8bcda3067a4e05975b547b805d1737e9b (patch)
treeaf3f60ef815bed17532dfb25e51ae1ff418053d2 /src/or/routerlist.c
parentff5495fb570b3d5ec3e879c403d8e5afa3d6a2af (diff)
downloadtor-0d5808d8bcda3067a4e05975b547b805d1737e9b.tar.gz
tor-0d5808d8bcda3067a4e05975b547b805d1737e9b.zip
[backport] Stop assuming every authority is a v1 authority
svn:r6378
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 3d5f1a694a..77fa045018 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -2487,7 +2487,7 @@ router_exit_policy_rejects_all(routerinfo_t *router)
* <b>address</b> is NULL, add ourself. */
void
add_trusted_dir_server(const char *nickname, const char *address,
- uint16_t port, const char *digest, int supports_v1)
+ uint16_t port, const char *digest, int is_v1_authority)
{
trusted_dir_server_t *ent;
uint32_t a;
@@ -2520,7 +2520,7 @@ add_trusted_dir_server(const char *nickname, const char *address,
ent->addr = a;
ent->dir_port = port;
ent->is_running = 1;
- ent->is_v1_authority = supports_v1;
+ ent->is_v1_authority = is_v1_authority;
memcpy(ent->digest, digest, DIGEST_LEN);
dlen = 64 + strlen(hostname) + (nickname?strlen(nickname):0);
@@ -2570,7 +2570,7 @@ clear_trusted_dir_servers(void)
/** Return 1 if any trusted dir server supports v1 directories,
* else return 0. */
int
-any_trusted_dir_supports_v1(void)
+any_trusted_dir_is_v1_authority(void)
{
if (trusted_dir_servers)
SMARTLIST_FOREACH(trusted_dir_servers, trusted_dir_server_t *, ent,