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.
This commit is contained in:
Andre Heinecke 2016-09-06 16:32:01 +02:00
parent e8cb143c83
commit 151da95470

View File

@ -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);