diff options
author | Christina Quast <chrysh.ng+git@gmail.com> | 2015-05-03 18:02:33 +0200 |
---|---|---|
committer | Christina Quast <chrysh.ng+git@gmail.com> | 2015-05-03 18:02:33 +0200 |
commit | fafa54b37c977faa41565e893397f97a17471812 (patch) | |
tree | b835dbff0887741cad5582e58e5e1437702b5c8c | |
parent | 08ea861b112e25edfecd23c31753db753d789a52 (diff) |
sm_emul: ff 00 ff is the ans to ff 00 ff
-rw-r--r-- | usb_application/smartcard_emulator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usb_application/smartcard_emulator.py b/usb_application/smartcard_emulator.py index a394124..7cf27c1 100644 --- a/usb_application/smartcard_emulator.py +++ b/usb_application/smartcard_emulator.py @@ -14,7 +14,7 @@ class SmartCardEmulator: if cmd[INS] == 0xA4: resp = [0x9F, 0x16] elif cmd == [0xff, 0x00, 0xff]: - resp = [0xff] + resp = cmd elif len(cmd) == 5 and cmd[INS] == 0xC0: data = self.ans_from_len[cmd[LEN]] SW = [0x90, 0x00] |