[PATCH] gpg: Allow setting of temporary pinentry program

Daiki Ueno ueno at gnu.org
Fri May 22 05:42:07 CEST 2015


Related to https://bugs.gnupg.org/gnupg/issue1976, where I was
originally requesting to fix a behavior of --pinentry-mode=loopback for
Emacs.  However using the option is seemingly not the the preferred way
and NIIBE-san suggested to write a pinentry wrapper instead.

Unfortunately, it is not an option for Emacs.  We want to use the custom
pinentry program only temporarily, and continue to use the default
pinentry program for other use-cases (e.g. calling gpg from
gnome-terminal).  This is currently not possible.

So, the attached patch adds --pinentry-program option to gpg, which will
be passed to gpg-agent:

  $ ./g10/gpg2 --symmetric --pinentry-program '/usr/bin/pinentry-gnome3' \
               -o /dev/null < README

To be honest, I doubt this change is acceptable, and I prefer that the
loopback behavior is eventually fixed, regardless of the original intent
of that option.

Daiki Ueno
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gpg-Allow-setting-of-temporary-pinentry-program.patch
Type: text/x-patch
Size: 5606 bytes
Desc: not available
URL: </pipermail/attachments/20150522/9692041e/attachment.bin>

More information about the Gnupg-devel mailing list