summaryrefslogtreecommitdiffstats
path: root/scd/command.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2009-03-10 17:10:35 +0100
committerWerner Koch <wk@gnupg.org>2009-03-10 17:10:35 +0100
commit1eeefbf7f71a57412589a8479be21249e69b6d28 (patch)
tree06e712b77de83113756f87a46c61dbe194f0f441 /scd/command.c
parentNew gpg-agent command to list key information. (diff)
downloadgnupg2-1eeefbf7f71a57412589a8479be21249e69b6d28.tar.xz
gnupg2-1eeefbf7f71a57412589a8479be21249e69b6d28.zip
Add new attribute KEY-ATTR.
Diffstat (limited to 'scd/command.c')
-rw-r--r--scd/command.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/scd/command.c b/scd/command.c
index 91868a041..2fa1f7c3e 100644
--- a/scd/command.c
+++ b/scd/command.c
@@ -2018,6 +2018,18 @@ send_status_info (ctrl_t ctrl, const char *keyword, ...)
}
+/* Send a ready formatted status line via assuan. */
+void
+send_status_direct (ctrl_t ctrl, const char *keyword, const char *args)
+{
+ assuan_context_t ctx = ctrl->server_local->assuan_ctx;
+
+ if (strchr (args, '\n'))
+ log_error ("error: LF detected in status line - not sending\n");
+ else
+ assuan_write_status (ctx, keyword, args);
+}
+
/* Helper to send the clients a status change notification. */
static void