NIIBE Yutaka
90e5f49b6a
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>
2019-02-19 15:51:14 +09:00
..
2019-02-19 15:51:14 +09:00
2019-02-19 15:51:14 +09:00
2019-02-11 10:59:32 +01:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2019-01-22 10:14:55 +01:00
2019-02-11 10:59:32 +01:00
2017-04-10 13:18:30 +09:00
2017-03-07 20:25:54 +09:00
2019-02-11 10:59:32 +01:00
2017-04-28 10:06:33 +09:00
2016-11-05 12:02:19 +01:00
2019-01-17 08:13:17 +09:00
2018-12-18 10:18:23 +09:00
2011-12-01 11:09:02 +01:00
2019-02-11 10:59:32 +01:00
2019-02-19 15:51:14 +09:00
2019-02-11 10:59:32 +01:00
2017-03-07 20:25:54 +09:00
2013-05-07 21:35:48 +02:00
2018-03-19 16:36:30 +09:00
2019-01-22 10:14:55 +01:00