Diffusion GnuPG 38b9da7de335

sm: Return the last error for pubkey decryption.

Authored by gniibe on Jul 5 2019, 8:46 AM.

Description

sm: Return the last error for pubkey decryption.

* sm/decrypt.c: Use TMP_RC for ksba_cms_get_issuer_serial,
and return the last error when no key is available.
Fix the error report with TMP_RC for second call of
ksba_cms_get_issuer_serial.
  • GnuPG-bug-id: T4561
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>