diff options
Diffstat (limited to 'tests/gpg/t-decrypt.c')
| -rw-r--r-- | tests/gpg/t-decrypt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/gpg/t-decrypt.c b/tests/gpg/t-decrypt.c index 408564d7..4128a148 100644 --- a/tests/gpg/t-decrypt.c +++ b/tests/gpg/t-decrypt.c @@ -56,7 +56,10 @@ main (int argc, char *argv[]) agent_info = getenv("GPG_AGENT_INFO"); if (!(agent_info && strchr (agent_info, ':'))) - gpgme_set_passphrase_cb (ctx, passphrase_cb, NULL); + { + gpgme_set_pinentry_mode (ctx, GPGME_PINENTRY_MODE_LOOPBACK); + gpgme_set_passphrase_cb (ctx, passphrase_cb, NULL); + } err = gpgme_data_new_from_file (&in, cipher_1_asc, 1); free (cipher_1_asc); |
