Home GnuPG
Diffusion GPGME ae4d7761a15b

gpg: Avoid error diagnostics with --override-session-key when verifying

Description

gpg: Avoid error diagnostics with --override-session-key when verifying

* src/engine-gpg.c (gpg_decrypt): only send --no-keyring when we are
not verifying.

Without this change, the signature verification would fail. This
problem was introduced in bded8ebc59c7fdad2617f4c9232a58047656834c in
an attempt to avoid an error when *not* verifying. Clearly more test
suite coverage is needed to avoid introducing this sort of problem in
the future.

  • GnuPG-bug-id: T3464
  • Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>

Details

Provenance
dkgAuthored on May 29 2019, 11:56 PM
gniibeCommitted on Dec 6 2019, 2:41 AM
Parents
rMc0c97dbbe6e0: gpgme-tool: Fix help text for INCLUDE_CERTS.
Branches
Unknown
Tags
Unknown
Tasks
T3464: successful decryption with session key reports failure if public key is unknown