Context info for pinentry-mac

Roman Zechmeister Mento at gpgtools.org
Fri May 20 10:43:37 CEST 2016


Am 19.05.2016 um 15:25 schrieb Werner Koch <wk at gnupg.org>:

> For now you need to use the envvar PINENTRY_USER_DATA.

When gpg-agent isn't running and i do something like "PINENTRY_USER_DATA=foo gpg2 -s", foo is passed to pinentry. So far, so good.
If i then run "gpg2 -s", foo is again passed to pinentry.

How can i prevent this behavior?
My ideas:
1. Make sure gpg-agent is launched before the first gpg2 operation.
2. Call gpg2 every time like "PINENTRY_USER_DATA='-' gpg2 -s".

Are there any other solutions?


Regards, Mento

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: </pipermail/attachments/20160520/845ee8b0/attachment.sig>


More information about the Gnupg-devel mailing list