diff options
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 |