Skip to content

Commit

Permalink
Add status word 61XX for basic cards
Browse files Browse the repository at this point in the history
  • Loading branch information
henryk committed Jun 12, 2013
1 parent 2954984 commit 0f7584a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions cards/basic_card.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from iso_7816_4_card import *
from generic_card import Card

class BasicCard_Card(ISO_7816_4_Card):
DRIVER_NAME = ["Basic Card"]

ATRS = [
("3BBC1800813120755A43.*", None),
]

STATUS_MAP = dict(ISO_7816_4_Card.STATUS_MAP)
STATUS_MAP[Card.PURPOSE_GET_RESPONSE] = ()

STATUS_WORDS = dict(ISO_7816_4_Card.STATUS_WORDS)
STATUS_WORDS.update( {
'61??': "Command should have been called with Le equal to %(SW2)i (0x%(SW2)02x)",
} )

def post_merge(self):
self.STATUS_MAP[Card.PURPOSE_GET_RESPONSE] = ()

0 comments on commit 0f7584a

Please sign in to comment.