summaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-08-13 20:31:08 +0000
committerNick Mathewson <nickm@torproject.org>2007-08-13 20:31:08 +0000
commit4e4dcb2571963a7ec6df2e34b6a7b8262396b0f4 (patch)
treed18235c41f5287def446864ef64cc4c88f01a0e4 /src/or/routerlist.c
parent94c90c42e3883b37f392951fa1867cf94c0930d7 (diff)
downloadtor-4e4dcb2571963a7ec6df2e34b6a7b8262396b0f4.tar.gz
tor-4e4dcb2571963a7ec6df2e34b6a7b8262396b0f4.zip
r13989@Kushana: nickm | 2007-08-13 16:31:03 -0400
Actually store the v3 authority id digest of a trusteddirserver svn:r11091
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 39518b6fac..50f3a7dbd1 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -3726,7 +3726,8 @@ router_exit_policy_rejects_all(routerinfo_t *router)
void
add_trusted_dir_server(const char *nickname, const char *address,
uint16_t dir_port, uint16_t or_port,
- const char *digest, authority_type_t type)
+ const char *digest, const char *v3_auth_digest,
+ authority_type_t type)
{
trusted_dir_server_t *ent;
uint32_t a;
@@ -3761,6 +3762,8 @@ add_trusted_dir_server(const char *nickname, const char *address,
ent->is_running = 1;
ent->type = type;
memcpy(ent->digest, digest, DIGEST_LEN);
+ if (v3_auth_digest)
+ memcpy(ent->v3_identity_digest, v3_auth_digest, DIGEST_LEN);
dlen = 64 + strlen(hostname) + (nickname?strlen(nickname):0);
ent->description = tor_malloc(dlen);