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 /g10/server.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 'g10/server.c')
-rw-r--r-- | g10/server.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/g10/server.c b/g10/server.c index 258f08a5d..0e1517617 100644 --- a/g10/server.c +++ b/g10/server.c @@ -770,6 +770,20 @@ gpg_server (ctrl_t ctrl) gpg_error_t gpg_proxy_pinentry_notify (ctrl_t ctrl, const unsigned char *line) { + if (opt.verbose) + { + char *linecopy = xtrystrdup (line); + char *fields[4]; + + if (linecopy + && split_fields (linecopy, fields, DIM (fields)) >= 4 + && !strcmp (fields[0], "PINENTRY_LAUNCHED")) + log_info (_("pinentry launched (pid %s, flavor %s, version %s)\n"), + fields[1], fields[2], fields[3]); + + xfree (linecopy); + } + if (!ctrl || !ctrl->server_local || !ctrl->server_local->allow_pinentry_notify) { |