mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
when clients do --list-fingerprint, it's misleading to
give them one, because it will never be the same again svn:r2800
This commit is contained in:
parent
6252cba522
commit
fde595feb7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user