scd: Error code map fix for older Yubikey.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 22 Jul 2019 01:14:21 +0000 (10:14 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 22 Jul 2019 01:14:21 +0000 (10:14 +0900)
* scd/iso7816.c (map_sw): Recognize 6A86.

Fixes-commit: ec56996029d95d4bd26e1badfe207232270c6247
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
scd/iso7816.c

index 954aa3d..d44046e 100644 (file)
@@ -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;