1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

Added basic code for keylisting.

New Assuan command LISTKEYS.
This commit is contained in:
Werner Koch 2001-11-19 16:17:43 +00:00
parent ff1ba2fdc7
commit a413066de1
5 changed files with 22 additions and 7 deletions

View file

@ -730,7 +730,7 @@ main ( int argc, char **argv)
break;
case oWithKeyData: opt.with_key_data=1; /* fall thru */
case oWithColons: opt.with_colons=':'; break;
case oWithColons: ctrl.with_colons = 1; break;
case oSkipVerify: opt.skip_verify=1; break;
@ -969,10 +969,9 @@ main ( int argc, char **argv)
break;
case aListKeys:
sl = NULL;
for ( ; argc; argc--, argv++ )
for (sl=NULL; argc; argc--, argv++)
add_to_strlist (&sl, *argv);
/* public_key_list( sl ); */
gpgsm_list_keys (&ctrl, sl, stdout);
free_strlist(sl);
break;