summaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sm/gpgsm.c')
-rw-r--r--sm/gpgsm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sm/gpgsm.c b/sm/gpgsm.c
index 3a84777e1..72e6d41ec 100644
--- a/sm/gpgsm.c
+++ b/sm/gpgsm.c
@@ -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;