aboutsummaryrefslogtreecommitdiffstats
path: root/cards/generic_card.py
diff options
context:
space:
mode:
authorhploetz <hploetz@f711b948-2313-0410-aaa9-d29f33439f0b>2006-05-18 20:21:51 +0000
committerhploetz <hploetz@f711b948-2313-0410-aaa9-d29f33439f0b>2006-05-18 20:21:51 +0000
commit53742b27055f059b52cd9f3bb1333ab0551fbf99 (patch)
treeb2c42df15236c331c801ee75b2df1976da53bac5 /cards/generic_card.py
parentf2bb9004cbaab3388fc6b8cdb1c0e4155b5a9e8d (diff)
TLV utilities
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@55 f711b948-2313-0410-aaa9-d29f33439f0b
Diffstat (limited to 'cards/generic_card.py')
-rw-r--r--cards/generic_card.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cards/generic_card.py b/cards/generic_card.py
index 8a82b62..0bbf77a 100644
--- a/cards/generic_card.py
+++ b/cards/generic_card.py
@@ -20,7 +20,6 @@ class Card:
STATUS_WORDS = {
SW_OK: "Normal execution",
'61??': "%(SW2)i (0x%(SW2)02x) bytes of response data can be retrieved with GetResponse.",
- '6700': "Wrong length",
'6C??': "Bad value for LE, 0x%(SW2)02x is the correct value.",
'63C?': lambda SW1,SW2: "The counter has reached the value '%i'" % (SW2%16)
}
@@ -37,6 +36,7 @@ class Card:
self._i = 0
self.last_apdu = None
self.last_sw = None
+ self.last_result = None
self.sw_changed = False
def verify_pin(self, pin_number, pin_value):
@@ -95,6 +95,7 @@ class Card:
print "Ending transaction %i\n%s\n" % (self._i, '-'*80)
self._i = self._i + 1
+ self.last_result = result
return result
def can_handle(cls, card):