diff options
| author | Werner Koch <[email protected]> | 2016-11-03 19:07:56 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2016-11-03 19:10:38 +0000 |
| commit | c1ea0b577a468030d2b006317ba27fc1746c4b14 (patch) | |
| tree | 5356039c0b3e26d5b4e039fb68419c74be35fa05 /agent/command.c | |
| parent | g10: Improve and unify key selection for -r and --locate-keys. (diff) | |
| download | gnupg-c1ea0b577a468030d2b006317ba27fc1746c4b14.tar.gz gnupg-c1ea0b577a468030d2b006317ba27fc1746c4b14.zip | |
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 <[email protected]>
Diffstat (limited to 'agent/command.c')
| -rw-r--r-- | agent/command.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/agent/command.c b/agent/command.c index 999f608af..4db2834db 100644 --- a/agent/command.c +++ b/agent/command.c @@ -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); } |
