aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpg/t-encrypt-mixed.c
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2016-09-06 14:32:01 +0000
committerAndre Heinecke <[email protected]>2016-09-06 14:32:01 +0000
commit151da95470f174dc770b2111890ad650a1697276 (patch)
tree589c57959fee1f71ff0b9d76255cf290d3277648 /tests/gpg/t-encrypt-mixed.c
parentcore: Check for gpg version for loopback mode (diff)
downloadgpgme-151da95470f174dc770b2111890ad650a1697276.tar.gz
gpgme-151da95470f174dc770b2111890ad650a1697276.zip
tests: Set passphrase cb in t-encrypt-mixed
* tests/gpg/t-encrypt-mixed.c (main): Set passphrase cb. -- This fixes the test when run without an agent and our faked pinentry program.
Diffstat (limited to '')
-rw-r--r--tests/gpg/t-encrypt-mixed.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gpg/t-encrypt-mixed.c b/tests/gpg/t-encrypt-mixed.c
index 6ad976aa..488b1cea 100644
--- a/tests/gpg/t-encrypt-mixed.c
+++ b/tests/gpg/t-encrypt-mixed.c
@@ -59,6 +59,8 @@ main (int argc, char *argv[])
err = gpgme_data_new (&out);
fail_if_err (err);
+ gpgme_set_passphrase_cb (ctx, passphrase_cb, NULL);
+
/* A recipient for which we don't have a secret key */
err = gpgme_get_key (ctx, "D695676BDCEDCC2CDD6152BCFE180B1DA9E3B0B2",
&key[0], 0);