Commit 2fa601c7 authored by Nick Mathewson's avatar Nick Mathewson 🤹
Browse files

Future-proof "id" lines against proposal 220.

parent f077bb55
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);