diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2017-09-20 03:06:43 +0200 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2017-09-20 03:06:43 +0200 |
commit | 2396055c096884d521c26b76f26263a146207c24 (patch) | |
tree | 08782084a7bf005b1774723b00a20aa15e609da3 /sm | |
parent | common: Accept the Z-suffix for yymmddThhmmssZ format. (diff) | |
download | gnupg2-2396055c096884d521c26b76f26263a146207c24.tar.xz gnupg2-2396055c096884d521c26b76f26263a146207c24.zip |
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.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'sm')
0 files changed, 0 insertions, 0 deletions