gpg agent frm within daemon

Werner Koch wk at
Mon Oct 13 09:01:39 CEST 2008

On Thu,  9 Oct 2008 16:52, buanzo at said:

> Any advice? A single URL to a piece of code should suffice ;)

I know that there is a webmail service at a German university
( ?) which uses GnuPG-2.  The environment variable
PINENTRY_USER_DATA is used to implement a loop-back pinentry:

  This value is passed via gpg-agent to pinentry.  It is useful to convey
  extra information to a custom pinentry

Thus you would set this PINENTRY_USER_DATA to identify your connection
before you create a gpgme context.  If needed gpg-agent calls your
custom pinentry and using the envvar it gets the required information
about the connection.



Die Gedanken sind frei.  Auschnahme regelt ein Bundeschgesetz.

More information about the Gnupg-devel mailing list