client: add verbose text to authdata command
This commit is contained in:
parent
f6bf12bdcd
commit
8567a0e466
1 changed files with 9 additions and 1 deletions
10
client.c
10
client.c
|
@ -1215,7 +1215,7 @@ give_help(void)
|
|||
"\0\0"
|
||||
"NTP sources:\0\0"
|
||||
"activity\0Check how many NTP sources are online/offline\0"
|
||||
"authdata [-a]\0Display information about authentication\0"
|
||||
"authdata [-a] [-v]\0Display information about authentication\0"
|
||||
"ntpdata [<address>]\0Display information about last valid measurement\0"
|
||||
"add server <name> [options]\0Add new NTP server\0"
|
||||
"add pool <name> [options]\0Add new pool of NTP servers\0"
|
||||
|
@ -2389,6 +2389,14 @@ process_cmd_authdata(char *line)
|
|||
|
||||
n_sources = ntohl(reply.data.n_sources.n_sources);
|
||||
|
||||
if (verbose) {
|
||||
printf( " .- Auth. mechanism (NTS, SK - symmetric key)\n");
|
||||
printf( " | Key length -. Cookie length (bytes) -.\n");
|
||||
printf( " | (bits) | Num. of cookies --. |\n");
|
||||
printf( " | | Key est. attempts | |\n");
|
||||
printf( " | | | | |\n");
|
||||
}
|
||||
|
||||
print_header("Name/IP address Mode KeyID Type KLen Last Atmp NAK Cook CLen");
|
||||
|
||||
/* "NNNNNNNNNNNNNNNNNNNNNNNNNNN MMMM KKKKK AAAA LLLL LLLL AAAA NNNN CCCC LLLL" */
|
||||
|
|
Loading…
Reference in a new issue