summaryrefslogtreecommitdiffstats
path: root/scd/apdu.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2011-12-14 18:48:47 +0100
committerWerner Koch <wk@gnupg.org>2011-12-14 18:48:47 +0100
commit0bac31ee9f74a25d76b08c3e0355a338908f083a (patch)
treeb963e6c2d01fc29ae529e7c99abc7707c7363ff1 /scd/apdu.c
parentscd: Add the "undefined" stub application. (diff)
downloadgnupg2-0bac31ee9f74a25d76b08c3e0355a338908f083a.tar.xz
gnupg2-0bac31ee9f74a25d76b08c3e0355a338908f083a.zip
scd: Add more status word values for documentation.
Diffstat (limited to 'scd/apdu.c')
-rw-r--r--scd/apdu.c7
1 files changed, 5 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";