aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2011-12-14 17:48:47 +0000
committerWerner Koch <[email protected]>2011-12-14 17:48:47 +0000
commit0bac31ee9f74a25d76b08c3e0355a338908f083a (patch)
treeb963e6c2d01fc29ae529e7c99abc7707c7363ff1
parentscd: Add the "undefined" stub application. (diff)
downloadgnupg-0bac31ee9f74a25d76b08c3e0355a338908f083a.tar.gz
gnupg-0bac31ee9f74a25d76b08c3e0355a338908f083a.zip
scd: Add more status word values for documentation.
-rw-r--r--scd/apdu.c7
-rw-r--r--scd/apdu.h3
2 files changed, 8 insertions, 2 deletions
diff --git a/scd/apdu.c b/scd/apdu.c
index c37e8c4c3..5a518465c 100644
--- a/scd/apdu.c
+++ b/scd/apdu.c
@@ -463,8 +463,11 @@ apdu_strerror (int rc)
case SW_FILE_NOT_FOUND : return "file not found";
case SW_RECORD_NOT_FOUND:return "record not found";
case SW_REF_NOT_FOUND : return "reference not found";
- case SW_BAD_LC : return "bad Lc";
- case SW_BAD_P0_P1 : return "bad P0 or P1";
+ case SW_NOT_ENOUGH_MEMORY: return "not enough memory space in the file";
+ case SW_INCONSISTENT_LC: return "Lc inconsistent with TLV structure.";
+ case SW_INCORRECT_P0_P1: return "incorrect parameters P0,P1";
+ case SW_BAD_LC : return "Lc inconsistent with P0,P1";
+ case SW_BAD_P0_P1 : return "bad P0,P1";
case SW_INS_NOT_SUP : return "instruction not supported";
case SW_CLA_NOT_SUP : return "class not supported";
case SW_SUCCESS : return "success";
diff --git a/scd/apdu.h b/scd/apdu.h
index f70425620..75025469e 100644
--- a/scd/apdu.h
+++ b/scd/apdu.h
@@ -41,6 +41,9 @@ enum {
SW_NOT_SUPPORTED = 0x6a81,
SW_FILE_NOT_FOUND = 0x6a82,
SW_RECORD_NOT_FOUND = 0x6a83,
+ SW_NOT_ENOUGH_MEMORY= 0x6a84, /* Not enough memory space in the file. */
+ SW_INCONSISTENT_LC = 0x6a85, /* Lc inconsistent with TLV structure. */
+ SW_INCORRECT_P0_P1 = 0x6a86,
SW_BAD_LC = 0x6a87, /* Lc does not match command or p1/p2. */
SW_REF_NOT_FOUND = 0x6a88,
SW_BAD_P0_P1 = 0x6b00,