From 1dc44b7c5b9253206af527721212d1f55532a7ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Fri, 22 Dec 2023 10:33:01 +0100 Subject: [PATCH] core: Tell gpg that we want to verify signed data * src/engine-gpg.c (gpg_verify): Add "--verify" to command line. -- Since GnuPG 2.1.16 --verify writes the signed data to the file specified by --output. Explicitly telling gpg that we want to verify signed data frees gpg from guessing what we want and avoids the corresponding warning "no command supplied. Trying to guess what you mean ..." GnuPG-bug-id: 6907 --- src/engine-gpg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine-gpg.c b/src/engine-gpg.c index 6954b596..d5b2ab71 100644 --- a/src/engine-gpg.c +++ b/src/engine-gpg.c @@ -3775,6 +3775,8 @@ gpg_verify (void *engine, gpgme_verify_flags_t flags, gpgme_data_t sig, { /* Normal or cleartext signature. */ const char *output = gpgme_data_get_file_name (plaintext); + if (have_gpg_version (gpg, "2.1.16")) + err = add_arg (gpg, "--verify"); err = add_arg (gpg, "--output"); if (!err && output) err = add_arg (gpg, output);