summaryrefslogtreecommitdiffstats
path: root/scd
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2019-07-22 03:14:21 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2019-07-22 03:14:21 +0200
commit13bc0431ff1ce51246694208df611cc4561fb4b3 (patch)
tree3e233ebce4821d5c3aead79a3b58bef2737dd20b /scd
parentgpg: The option --passphrase= can be empty. (diff)
downloadgnupg2-13bc0431ff1ce51246694208df611cc4561fb4b3.tar.xz
gnupg2-13bc0431ff1ce51246694208df611cc4561fb4b3.zip
scd: Error code map fix for older Yubikey.
* scd/iso7816.c (map_sw): Recognize 6A86. Fixes-commit: ec56996029d95d4bd26e1badfe207232270c6247 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'scd')
-rw-r--r--scd/iso7816.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scd/iso7816.c b/scd/iso7816.c
index 954aa3d4a..d44046e67 100644
--- a/scd/iso7816.c
+++ b/scd/iso7816.c
@@ -67,6 +67,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;