diff options
Diffstat (limited to 'tests/gpg/t-file-name.c')
| -rw-r--r-- | tests/gpg/t-file-name.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/gpg/t-file-name.c b/tests/gpg/t-file-name.c index 3b29e4f1..a1d1e597 100644 --- a/tests/gpg/t-file-name.c +++ b/tests/gpg/t-file-name.c @@ -54,7 +54,10 @@ main (void) 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_mem (&in, "Hallo Leute\n", 12, 0); fail_if_err (err); |
