gpg agent frm within daemon

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


On Thu,  9 Oct 2008 16:52, buanzo at buanzo.com.ar 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
(uni-paderborn.de ?) which uses GnuPG-2.  The environment variable
PINENTRY_USER_DATA is used to implement a loop-back pinentry:

  @item PINENTRY_USER_DATA
  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.


Salam-Shalom,

   Werner


-- 
Die Gedanken sind frei.  Auschnahme regelt ein Bundeschgesetz.




More information about the Gnupg-devel mailing list