mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
scd:p15: Implement CHV-STATUS attribute
* scd/command.c (send_status_direct): Return an error. * scd/app-p15.c (do_learn_status): Emit CHV-STATUS. (compare_aodf_objid): New. (do_getattr): Implement CHV-STATUS.
This commit is contained in:
parent
e4c2d7be22
commit
bf1d7bc369
3 changed files with 119 additions and 8 deletions
|
@ -2458,15 +2458,17 @@ send_status_info (ctrl_t ctrl, const char *keyword, ...)
|
|||
|
||||
|
||||
/* Send a ready formatted status line via assuan. */
|
||||
void
|
||||
gpg_error_t
|
||||
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);
|
||||
{
|
||||
log_error ("error: LF detected in status line - not sending\n");
|
||||
return gpg_error (GPG_ERR_INTERNAL);
|
||||
}
|
||||
return assuan_write_status (ctx, keyword, args);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue