From 1eeefbf7f71a57412589a8479be21249e69b6d28 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 10 Mar 2009 16:10:35 +0000 Subject: Add new attribute KEY-ATTR. --- scd/command.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'scd/command.c') 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 -- cgit v1.2.3