#17 crypto: Set pinentry-mode to LOOPBACK
Merged 5 years ago by jkucera. Opened 6 years ago by laney.
laney/volume_key master  into  master

file modified
+1
@@ -664,6 +664,7 @@ 

        error_from_gpgme (error, e);

        goto err_ctx;

      }

+   gpgme_set_pinentry_mode (ctx, GPGME_PINENTRY_MODE_LOOPBACK);

    gpgme_set_passphrase_cb (ctx, gpgme_passphrase_cb, (void *)passphrase);

    *res = ctx;

    return 0;

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

5 years ago

Pull-Request has been merged by jkucera

5 years ago
Metadata