summaryrefslogtreecommitdiffstats
path: root/tests/gpg/t-encrypt-sym.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gpg/t-encrypt-sym.c')
-rw-r--r--tests/gpg/t-encrypt-sym.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/gpg/t-encrypt-sym.c b/tests/gpg/t-encrypt-sym.c
index 127bac60..d10a9606 100644
--- a/tests/gpg/t-encrypt-sym.c
+++ b/tests/gpg/t-encrypt-sym.c
@@ -55,7 +55,10 @@ main (int argc, char *argv[])
p = getenv("GPG_AGENT_INFO");
if (!(p && strchr (p, ':')))
- 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 (&plain, text, strlen (text), 0);
fail_if_err (err);