diff options
| author | NIIBE Yutaka <[email protected]> | 2025-12-25 02:21:49 +0100 |
|---|---|---|
| committer | NIIBE Yutaka <[email protected]> | 2025-12-25 02:26:20 +0100 |
| commit | 538d7cd52b809fcd77a554f04cd2c8ac8915732c (patch) | |
| tree | f208b17477cfa5aa4b08ea42acd0e2706ff5aec4 /tests/gpg/t-decrypt-verify.c | |
| parent | w32: Fix debug print on 64-bit machine. (diff) | |
| download | gpgme-538d7cd52b809fcd77a554f04cd2c8ac8915732c.tar.gz gpgme-538d7cd52b809fcd77a554f04cd2c8ac8915732c.zip | |
tests:gpg: Use GPGME_PINENTRY_MODE_LOOPBACK for tests.
* tests/gpg/t-decrypt-verify.c (main): Call gpgme_set_pinentry_mode.
* tests/gpg/t-decrypt.c (main): Likewise.
* tests/gpg/t-edit-sign.c (main): Likewise.
* tests/gpg/t-edit.c (main): Likewise.
* tests/gpg/t-encrypt-mixed.c (main): Likewise.
* tests/gpg/t-encrypt-sign.c (main): Likewise.
* tests/gpg/t-encrypt-sign.c (main): Likewise.
* tests/gpg/t-encrypt-sym.c (main): Likewise.
* tests/gpg/t-file-name.c (main): Likewise.
* tests/gpg/t-sig-notation.c (main): Likewise.
* tests/gpg/t-sign.c (main): Likewise.
* tests/gpg/t-signers.c (main): Likewise.
* tests/gpg/t-thread1.c (main): Likewise.
* tests/gpg/Makefile.am (gpg-agent.conf): We use the passphrase_cb.
--
We can't remove tests/gpg/pinentry since it's used by tests/json.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'tests/gpg/t-decrypt-verify.c')
| -rw-r--r-- | tests/gpg/t-decrypt-verify.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/gpg/t-decrypt-verify.c b/tests/gpg/t-decrypt-verify.c index 424cc817..b548aa93 100644 --- a/tests/gpg/t-decrypt-verify.c +++ b/tests/gpg/t-decrypt-verify.c @@ -126,7 +126,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_file (&in, cipher_2_asc, 1); free (cipher_2_asc); |
