Future-proof "id" lines against proposal 220.

This commit is contained in:
Nick Mathewson 2014-05-06 17:10:59 -04:00
parent f077bb55ab
commit 2fa601c797

View File

@ -3591,7 +3591,7 @@ dirvote_create_microdescriptor(const routerinfo_t *ri, int consensus_method)
if (consensus_method >= MIN_METHOD_FOR_ID_HASH_IN_MD) {
char idbuf[BASE64_DIGEST_LEN+1];
digest_to_base64(idbuf, ri->cache_info.identity_digest);
smartlist_add_asprintf(chunks, "id %s\n", idbuf);
smartlist_add_asprintf(chunks, "id rsa1024 %s\n", idbuf);
}
output = smartlist_join_strings(chunks, "", 0, NULL);