aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpg/t-sig-notation.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gpg/t-sig-notation.c')
-rw-r--r--tests/gpg/t-sig-notation.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/gpg/t-sig-notation.c b/tests/gpg/t-sig-notation.c
index df45cfd5..95da481b 100644
--- a/tests/gpg/t-sig-notation.c
+++ b/tests/gpg/t-sig-notation.c
@@ -161,7 +161,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_mem (&in, "Hallo Leute\n", 12, 0);
fail_if_err (err);