Is it possible to set a passphrase_cb in gpgme with openpgp protocol

Werner Koch wk at gnupg.org
Mon Jul 21 15:46:56 CEST 2014


On Fri,  4 Jul 2014 11:52, rethab at rethab.ch said:

> I read in the ruby-bindings library that this only worked with version 1.X
> but seems not to work anymore with 2.X. Is there any truth to this?

Right.  GnuPG-2 require the gpg-agent and the gpg-agent is soley
responsible for asking for the passphrase.  Check out the mail archives
on how to work around this (pinentry wrapper).

But: On common request GnuPG 2.1 (currently in beta) has a feature to
allow gpg-agent to call back to gpg (and in turn to gpgme etc) for the
passphrase (see --allow-looopback-pinentry and pinentry-mode).  GPGME
supports this.


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gnupg-users mailing list