Followup: gpgme_set_passphrase_cb not working...

Andre Heinecke aheinecke at
Fri Mar 23 09:35:04 CET 2018


On Wednesday, March 21, 2018 7:05:57 PM CET Mike Inman wrote:
> FWIW, here's the log entry from an attempt to use gpgme_set_passphrase_cb
> on a symmetric encryption.  For some reason I still cannot figure out, my
> callback function isn't being used, the system prompt still appears (twice,
> once to confirm.)

From the other thread I take it that you are using GPGME with GnuPG-2.0.28 ? 
In the log I don't see the gpg version, but I didn't see it mentioned in the 
other thread that the GnuPG-2.0.x series does not support the passphrase 

I ran into the same problem some time ago and documented it as a note in the 
GPGME manual. :

"Note: The passphrase_cb only works with GnuPG 1.x and 2.1.x and not with the 
2.0.x series. "

An ugly workaround could be to use some kind of fake pinentry (see the tests 
in GPGME) and configure that in the gpg-agent.conf. But you are probably better 
of bundling a 2.1 / 2.2 Version of GnuPG with your Application.

Best Regards,

Andre Heinecke |  ++49-541-335083-262  |
Intevation GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the Gnupg-users mailing list