diff options
author | NIIBE Yutaka <[email protected]> | 2019-07-22 01:14:21 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2021-06-14 01:24:39 +0000 |
commit | 01a413d5235f1bbd00f83fb86d0e183d8f0b1a57 (patch) | |
tree | c8634f705868e2c811ef710b1b184fd67b5f8ee7 | |
parent | dirmngir: Fix build with --disable-ldap. (diff) | |
download | gnupg-01a413d5235f1bbd00f83fb86d0e183d8f0b1a57.tar.gz gnupg-01a413d5235f1bbd00f83fb86d0e183d8f0b1a57.zip |
scd: Error code map fix for older Yubikey.
* scd/iso7816.c (map_sw): Recognize 6A86.
--
Yubikey NEO does not support the YK4_GET_CAPA command (001D000000),
and it will be screwed up with the command.
GnuPG-bug-id: 5487
Back-port-master-commit: 13bc0431ff1ce51246694208df611cc4561fb4b3
Fixes-commit: ec56996029d95d4bd26e1badfe207232270c6247
Signed-off-by: NIIBE Yutaka <[email protected]>
-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 1d654eb71..c878a03c0 100644 --- a/scd/iso7816.c +++ b/scd/iso7816.c @@ -79,6 +79,7 @@ map_sw (int sw) case SW_FILE_NOT_FOUND: ec = GPG_ERR_ENOENT; break; case SW_RECORD_NOT_FOUND:ec= GPG_ERR_NOT_FOUND; break; case SW_REF_NOT_FOUND: ec = GPG_ERR_NO_OBJ; break; + case SW_INCORRECT_P0_P1:ec = GPG_ERR_INV_VALUE; break; case SW_BAD_P0_P1: ec = GPG_ERR_INV_VALUE; break; case SW_EXACT_LENGTH: ec = GPG_ERR_INV_VALUE; break; case SW_INS_NOT_SUP: ec = GPG_ERR_CARD; break; |