From f3f6ecef48b019fe18fac371b64c3f3466ef3388 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 12 May 2008 02:14:01 +0000 Subject: r19690@catbus: nickm | 2008-05-11 22:13:31 -0400 Implement a proposal to let a directory authority migrate its identity key without ceasing to sign consensuses. svn:r14584 --- src/or/dirserv.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/or/dirserv.c') diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 63bc2b0e28..dc7bc3f003 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -2285,6 +2285,13 @@ dirserv_generate_networkstatus_vote_obj(crypto_pk_env_t *private_key, voter->or_port = options->ORPort; voter->contact = tor_strdup(contact); memcpy(voter->signing_key_digest, signing_key_digest, DIGEST_LEN); + if (options->V3AuthUseLegacyKey) { + authority_cert_t *c = get_my_v3_legacy_cert(); + if (c) { + crypto_pk_get_digest(c->identity_key, voter->legacy_id_digest); + } + } + v3_out->voters = smartlist_create(); smartlist_add(v3_out->voters, voter); v3_out->cert = authority_cert_dup(cert); -- cgit v1.2.3-54-g00ecf