Diffusion GnuPG 90e5f49b6a2e

scd: Distinguish cancel by user and protocol error.

Authored by gniibe on Sep 20 2017, 3:06 AM.

Description

scd: Distinguish cancel by user and protocol error.

* scd/apdu.h (SW_HOST_CANCELLED): New.
* scd/apdu.c (host_sw_string): Support SW_HOST_CANCELLED.
(pcsc_error_to_sw): Return SW_HOST_CANCELLED for PCSC_E_CANCELLED.
* scd/iso7816.c (map_sw): Return GPG_ERR_INV_RESPONSE for
SW_HOST_ABORTED and GPG_ERR_CANCELED for SW_HOST_CANCELLED.

Cherry-picked master commit of:
2396055c096884d521c26b76f26263a146207c24

  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Committed
gniibeFeb 19 2019, 7:51 AM
Parents
rG6e422b5135c7: common: Fix gnupg_wait_processes.
Branches
Unknown
Tags
Unknown