]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Future-proof "id" lines against proposal 220.
authorNick Mathewson <nickm@torproject.org>
Tue, 6 May 2014 21:10:59 +0000 (17:10 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 6 May 2014 21:10:59 +0000 (17:10 -0400)
src/or/dirvote.c

index 8b51306d15d2670e41c63b95c66057e064fdf46a..c7be343ca2308015108e06109cbdf442c3ea7e20 100644 (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);