Home GnuPG
Diffusion GPGME 65c28da4e49a

python: overhaul logic of Context.decrypt()

Description

python: overhaul logic of Context.decrypt()

* lang/python/src/core.py (Context.decrypt): simplify and clarify the
logic behind handling verify=False.
* lang/python/tests/t-decrypt.py: ensure that we test verify=False

The function-internal variables were pretty unclear to the reader, and
the logic caused pretty nasty breakage when verify=False.

  • GnuPG-Bug-Id: T4271
  • Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>

Details

Provenance
dkgAuthored on Dec 4 2018, 6:44 PM
aheineckeCommitted on Dec 5 2018, 11:46 AM
Parents
rM878a0ad01265: python: ctx.decrypt() has problematic error handling
Branches
Unknown
Tags
Unknown
Tasks
T4271: python gpg.Context.decrypt(verify=False) no longer works