core: Return a better error code on certain decryption failures.
authorWerner Koch <wk@gnupg.org>
Wed, 6 Jun 2018 14:20:27 +0000 (16:20 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 6 Jun 2018 14:20:27 +0000 (16:20 +0200)
commit2c4c5692472f5870f907c2c3f01870879cb0c34b
treec192300ba172d8dc58e360541a67ec067829a2b2
parent998fec8a4fbc46315fe6836980954eed402b38c5
core: Return a better error code on certain decryption failures.

* src/decrypt.c (op_data_t): Add field first_status_error.
(parse_status_error): Set it.
(_gpgme_decrypt_status_handler): Prefer an ERROR code over a
NO_SECKEY.
--

GnuPG-bug-id: 3983
Signed-off-by: Werner Koch <wk@gnupg.org>
src/decrypt.c