diff options
author | Werner Koch <wk@gnupg.org> | 2009-03-10 17:10:35 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2009-03-10 17:10:35 +0100 |
commit | 1eeefbf7f71a57412589a8479be21249e69b6d28 (patch) | |
tree | 06e712b77de83113756f87a46c61dbe194f0f441 /scd/command.c | |
parent | New gpg-agent command to list key information. (diff) | |
download | gnupg2-1eeefbf7f71a57412589a8479be21249e69b6d28.tar.xz gnupg2-1eeefbf7f71a57412589a8479be21249e69b6d28.zip |
Add new attribute KEY-ATTR.
Diffstat (limited to 'scd/command.c')
-rw-r--r-- | scd/command.c | 12 |
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 |