aboutsummaryrefslogtreecommitdiffstats
path: root/sm/server.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sm/server.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/sm/server.c b/sm/server.c
index 616ae9bfe..298ccda2d 100644
--- a/sm/server.c
+++ b/sm/server.c
@@ -378,7 +378,20 @@ cmd_listkeys (ASSUAN_CONTEXT ctx, char *line)
ctrl->with_colons = 1;
/* fixme: check that the returned data_fp is not NULL */
gpgsm_list_keys (assuan_get_pointer (ctx), NULL,
- assuan_get_data_fp (ctx));
+ assuan_get_data_fp (ctx), 3);
+
+ return 0;
+}
+
+static int
+cmd_listsecretkeys (ASSUAN_CONTEXT ctx, char *line)
+{
+ CTRL ctrl = assuan_get_pointer (ctx);
+
+ ctrl->with_colons = 1;
+ /* fixme: check that the returned data_fp is not NULL */
+ gpgsm_list_keys (assuan_get_pointer (ctx), NULL,
+ assuan_get_data_fp (ctx), 2);
return 0;
}
@@ -442,6 +455,7 @@ register_commands (ASSUAN_CONTEXT ctx)
{ "", ASSUAN_CMD_OUTPUT, NULL },
{ "MESSAGE", 0, cmd_message },
{ "LISTKEYS", 0, cmd_listkeys },
+ { "LISTSECRETKEYS", 0, cmd_listsecretkeys },
{ "GENKEY", 0, cmd_genkey },
{ NULL }
};