mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: Add list-option "show-usage".
* g10/gpg.c (parse_list_options): Add "show-usage". * g10/options.h (LIST_SHOW_USAGE): New. * g10/keyid.c (usagestr_from_pk): Add arg FILL. Change caller. * g10/keylist.c (list_keyblock_print): Print usage info.
This commit is contained in:
parent
cb127024b9
commit
7d0492075e
7 changed files with 22 additions and 4 deletions
|
@ -629,7 +629,7 @@ revokestr_from_pk( PKT_public_key *pk )
|
|||
|
||||
|
||||
const char *
|
||||
usagestr_from_pk( PKT_public_key *pk )
|
||||
usagestr_from_pk (PKT_public_key *pk, int fill)
|
||||
{
|
||||
static char buffer[10];
|
||||
int i = 0;
|
||||
|
@ -647,7 +647,7 @@ usagestr_from_pk( PKT_public_key *pk )
|
|||
if ( (use & PUBKEY_USAGE_AUTH) )
|
||||
buffer[i++] = 'A';
|
||||
|
||||
while (i < 4)
|
||||
while (fill && i < 4)
|
||||
buffer[i++] = ' ';
|
||||
|
||||
buffer[i] = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue