diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2019-02-21 07:16:11 +0100 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2019-02-21 07:16:11 +0100 |
commit | bd15aa34ab8ad10adbb7540a8845b4a2600437b6 (patch) | |
tree | dfa874c6fc80f25b8849f003ca03d46b4afa1c50 /scd/iso7816.c | |
parent | tests: Add "disable-scdaemon" in gpg-agent.conf. (diff) | |
download | gnupg2-bd15aa34ab8ad10adbb7540a8845b4a2600437b6.tar.xz gnupg2-bd15aa34ab8ad10adbb7540a8845b4a2600437b6.zip |
scd: Handle ack button timeout as GPG_ERR_TIMEOUT.
* scd/apdu.h (SW_ACK_TIMEOUT): New.
* scd/iso7816.c (map_sw): Return GPG_ERR_TIMEOUT for SW_ACK_TIMEOUT.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to '')
-rw-r--r-- | scd/iso7816.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scd/iso7816.c b/scd/iso7816.c index 758de5b48..a9cd73014 100644 --- a/scd/iso7816.c +++ b/scd/iso7816.c @@ -67,6 +67,7 @@ map_sw (int sw) case SW_EEPROM_FAILURE: ec = GPG_ERR_HARDWARE; break; case SW_TERM_STATE: ec = GPG_ERR_OBJ_TERM_STATE; break; case SW_WRONG_LENGTH: ec = GPG_ERR_INV_VALUE; break; + case SW_ACK_TIMEOUT: ec = GPG_ERR_TIMEOUT; break; case SW_SM_NOT_SUP: ec = GPG_ERR_NOT_SUPPORTED; break; case SW_CC_NOT_SUP: ec = GPG_ERR_NOT_SUPPORTED; break; case SW_CHV_WRONG: ec = GPG_ERR_BAD_PIN; break; |