mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
agent: Extend the PINENTRY_LAUNCHED inquiry and status.
* agent/call-pinentry.c (start_pinentry): Get flavor and version and pass it to agent_inq_pinentry_launched. * agent/command.c (agent_inq_pinentry_launched): Add arg EXTRA. * g10/server.c (gpg_proxy_pinentry_notify): Print a new diagnostic. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
ab89164be0
commit
c1ea0b577a
4 changed files with 44 additions and 5 deletions
|
@ -362,14 +362,15 @@ agent_print_status (ctrl_t ctrl, const char *keyword, const char *format, ...)
|
|||
that might disturb some older clients, this is only done if enabled
|
||||
via an option. Returns an gpg error code. */
|
||||
gpg_error_t
|
||||
agent_inq_pinentry_launched (ctrl_t ctrl, unsigned long pid)
|
||||
agent_inq_pinentry_launched (ctrl_t ctrl, unsigned long pid, const char *extra)
|
||||
{
|
||||
char line[100];
|
||||
char line[256];
|
||||
|
||||
if (!ctrl || !ctrl->server_local
|
||||
|| !ctrl->server_local->allow_pinentry_notify)
|
||||
return 0;
|
||||
snprintf (line, DIM(line), "PINENTRY_LAUNCHED %lu", pid);
|
||||
snprintf (line, DIM(line), "PINENTRY_LAUNCHED %lu%s%s",
|
||||
pid, extra?" ":"", extra? extra:"");
|
||||
return assuan_inquire (ctrl->server_local->assuan_ctx, line, NULL, NULL, 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue