chiark / gitweb /
gpg: More diagnostics for a launched pinentry.
authorWerner Koch <wk@gnupg.org>
Fri, 3 Feb 2017 11:04:52 +0000 (12:04 +0100)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 14 Feb 2017 00:29:34 +0000 (00:29 +0000)
commitb767d41039f59c9522b03ffd2dc72f50f7560ff9
tree6b0e79b8be63bcbd7c489148cd68aa49a31a0ada
parent2fb59ae3cf54472db52bbbc44760e768e310593e
gpg: More diagnostics for a launched pinentry.

* agent/call-pinentry.c (start_pinentry): Call getinfo/ttyinfo.
* g10/server.c (gpg_proxy_pinentry_notify): Simplify the output so
that we do not change the code when adding new fields to
PINENTRY_LAUNCHED.
--

This patch changes the --verbose output of gpg to show
for example

  gpg: pinentry launched (5228 gtk2 1.0.1-beta10 \
  /dev/pts/4 xterm localhost:10.0)

the used tty, its type, and the value of DISPLAY in addiion to the
pid, flavor, and version.

Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit 7052a0d77cf8f3a445b252a809d29be445788625)

Gbp-Pq: Name 0026-gpg-More-diagnostics-for-a-launched-pinentry.patch
agent/call-pinentry.c
g10/server.c