passphrase callback

folkert folkert at vanheusden.com
Fri May 29 09:05:17 CEST 2015


> > Found out that the documentation on the gnu website is no longer
> > up-to-date and that I need to set the pin mode to loop-back:
> 
> gnu.org or gnupg.org - I have mot updated anything at gnu.org for quite
> soem time.  However, all packages come with a reference manual.

The gnu.org one iirc. It doesn't mention the new pin calls.

> > [pid 14558] write(2, "gpg: invalid option \"--pinentry-mode=loopback\"\n", 47) = 47
> > This is a bit odd I would say?
> 
> No.  --pinentry-mode is a new feature of GnuPG 2.1 and the gpgme manual
> does not yet document this new API.  You are using 2.0 which does not
> provide pinentry-mode at all.

Ah so there's a mismatch between the gpgme and gpg2 version in debian
right? Can you confirm this? Then I'll create a debian bug report for
it.

> >> I'm trying to use gpgme in an unattended environment, e.g. without user
> >> interaction.
> >> Now I try to use gpgme_set_passphrase_cb() and I find two issues:
> >> - when I invoke it without the ctx beining setup, it silently
> >>   ignores/fails
> 
> Sure, without a context gpgme can't store the callback.

Yeah but maybe it should emit an error or so. Maybe in debug-mode.

> >> - even though I set the passphrase callback, it still tries to invoke
> >>   the gpg-agent gui. if I remove that program (as the situation will be
> >>   on he server), it still doesn't use the passphrase callback
> 
> That depends on the configuraion of gpg 2.0 or 1.4.   IIRC< you need to
> use no-use-agent in gpg.conf.

thanks!


Folkert van Heusden

-- 
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com



More information about the Gnupg-devel mailing list