core: Allow to query info about the emacn integration.
* pinentry/pinentry-emacs.c (pinentry_emacs_status): New. * pinentry/pinentry.c (cmd_getinfo): Add emacs info getinfo.
With this patch the pinentry launched info of gpg coveys an additional
item. For example:
gpg: pinentry launched (2850 gtk2 1.1.1-beta29 \
/dev/pts/42 xterm localhost:10.0 20620/1000/5 1450/2450 -)
The last item "-" is new with the follwing meaning:
- = No support for emacs at all in pinentry (configure --disable-inside-emacns) 0 = INSIDE_EMACS envvar not set, allow-emacs-pinentry not in gpg-agent.conf, or emacs pinentry server not started. 1 = Prepared for connecting to Emacs but may fallback to standard pinentry on connection failure 2 = Connection to Emacs pinnetry server has been established.
- Signed-off-by: Werner Koch <wk@gnupg.org>