Home GnuPG
Diffusion GPGME ac8d7238dbf1

python: overhaul logic of Context.decrypt()
ac8d7238dbf1Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

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
Parents
rM5e21e61cfef8: python: ctx.decrypt() has problematic error handling
Branches
Unknown
Tags
Unknown
References
dkg/fix-T4271
Tasks
T4271: python gpg.Context.decrypt(verify=False) no longer works