core: Use fully correct command args for gpg --verify.

* src/engine-gpg.c (gpg_verify): Supply --verify for fixed gpg
versions.
--

With 2.1.something we print a warning if no explict command was
given.  Since 2.1.16 this has been fixed to also allow the combination
of --verify and --output.  Thus we now always use "--verify".

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2019-06-12 12:54:11 +02:00
parent 3b32f7a97f
commit ef50bffc71
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -3278,6 +3278,8 @@ gpg_verify (void *engine, gpgme_data_t sig, gpgme_data_t signed_text,
err = add_arg (gpg, "-");
if (!err)
err = add_input_size_hint (gpg, sig);
if (!err && have_gpg_version (gpg, "2.1.16"))
err = add_arg (gpg, "--verify");
if (!err)
err = add_arg (gpg, "--");
if (!err)