tests: Fix for card readers.

This commit is contained in:
NIIBE Yutaka
2018-01-09 09:39:42 +09:00
parent 4e517778d0
commit 4ff0b3c5f8
2 changed files with 7 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2018-01-09 NIIBE Yutaka <gniibe@fsij.org>
* tests/card_reader.py (CardReader.ccid_power_on): Fix for
other card readers for Gemalto's.
2017-12-19 NIIBE Yutaka <gniibe@fsij.org> 2017-12-19 NIIBE Yutaka <gniibe@fsij.org>
* chopstx: Update to 1.7. * chopstx: Update to 1.7.

View File

@@ -179,8 +179,8 @@ class CardReader(object):
# TPDU reader configuration # TPDU reader configuration
self.ns = 0 self.ns = 0
self.nr = 0 self.nr = 0
# For Gemalto USB GemPC Pinpad SmartCard Reader # For Gemalto's SmartCard Reader(s)
if self.__dev.idVendor == 0x08E6 and self.__dev.idProduct == 0x3478: if self.__dev.idVendor == 0x08E6:
# Set PPS # Set PPS
pps = b"\xFF\x11\x18\xF6" pps = b"\xFF\x11\x18\xF6"
status, chain, ret_pps = self.ccid_send_data_block(pps) status, chain, ret_pps = self.ccid_send_data_block(pps)