[tor-commits] [tor/master] Future-proof "id" lines against proposal 220.

nickm at torproject.org nickm at torproject.org
Wed May 7 00:42:38 UTC 2014


commit 2fa601c797eda2af3ae2d43f30c0622c515cdbe5
Author: Nick Mathewson <nickm at torproject.org>
Date:   Tue May 6 17:10:59 2014 -0400

    Future-proof "id" lines against proposal 220.
---
 src/or/dirvote.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/or/dirvote.c b/src/or/dirvote.c
index 8b51306..c7be343 100644
--- a/src/or/dirvote.c
+++ b/src/or/dirvote.c
@@ -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);





More information about the tor-commits mailing list