Home GnuPG
Diffusion GPGME d37bc7e025cd

core: Return CANCELED and BAD_PASSPHRASE error code on decryption.

Description

core: Return CANCELED and BAD_PASSPHRASE error code on decryption.

* src/decrypt.c (op_data_t): Add field pkdecrypt_failed.
(_gpgme_decrypt_status_handler): Consult new field.
(parse_status_error): Handle some error codes.

The idea is to return only a limited set of error codes because a user
won't be able to understand the more esoteric codes.

  • GnuPG-bug-id: T3270
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jul 12 2017, 5:55 PM
Parents
rM87703dbb86ac: core: Simplify parsing of STATUS_ERROR in decrypt.c
Branches
Unknown
Tags
Unknown
Tasks
T3270: No reasonable error codes on decryption failure