diff options
| author | NIIBE Yutaka <[email protected]> | 2019-07-05 06:16:08 +0000 |
|---|---|---|
| committer | NIIBE Yutaka <[email protected]> | 2019-07-05 06:16:08 +0000 |
| commit | 6cc4119ec03be61c78189a0bec99372035289b91 (patch) | |
| tree | b58c5b5db6a0afe7ede11f470143a05a686076a0 /common/asshelp2.c | |
| parent | dirmngr: fix handling of HTTPS redirections during HKP (diff) | |
| download | gnupg-6cc4119ec03be61c78189a0bec99372035289b91.tar.gz gnupg-6cc4119ec03be61c78189a0bec99372035289b91.zip | |
gpg: Return the last error for pubkey decryption.
* g10/mainproc.c (proc_encrypted): Check ->result against -1.
When c->dek == NULL, put GPG_ERR_NO_SECKEY only when not set.
* g10/pubkey-enc.c (get_session_key): Set k->result by the result of
get_it.
When no secret key is available for some reasons, return the last
specific error, if any.
GnuPG-bug-id: 4561
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'common/asshelp2.c')
0 files changed, 0 insertions, 0 deletions
