Skip to content
Snippets Groups Projects
Commit fde595fe authored by Roger Dingledine's avatar Roger Dingledine
Browse files

when clients do --list-fingerprint, it's misleading to

give them one, because it will never be the same again


svn:r2800
parent 6252cba5
No related branches found
No related tags found
No related merge requests found
......@@ -1040,6 +1040,11 @@ static void do_list_fingerprint(void)
char buf[FINGERPRINT_LEN+1];
crypto_pk_env_t *k;
const char *nickname = get_options()->Nickname;
if(!server_mode(get_options())) {
printf("Clients don't have long-term identity keys. Exiting.");
return;
}
tor_assert(nickname);
if (init_keys() < 0) {
log_fn(LOG_ERR,"Error initializing keys; exiting");
return;
......@@ -1052,7 +1057,7 @@ static void do_list_fingerprint(void)
log_fn(LOG_ERR, "Error computing fingerprint");
return;
}
printf("%s %s\n", nickname?nickname:"client", buf);
printf("%s %s\n", nickname, buf);
}
/** Entry point for password hashing: take the desired password from
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment