@@ -664,6 +664,7 @@
error_from_gpgme (error, e);
+ gpgme_set_pinentry_mode (ctx, GPGME_PINENTRY_MODE_LOOPBACK);
gpgme_set_passphrase_cb (ctx, gpgme_passphrase_cb, (void *)passphrase);
*res = ctx;
We need to be able to supply the passphrase to gpgme. When using the
default passphrase, the user is prompted and our callback isn't called.
From the gpgme documentation:
For GnuPG >= 2.1 this option is required to be set to
GPGME_PINENTRY_MODE_LOOPBACK to enable the passphrase callback
mechanism in GPGME through gpgme_set_passphrase_cb.
Fixes issue #15.
Looks good to me, merging.
Commit 1e46e82 fixes this pull-request
Pull-Request has been merged by jkucera