Some LC_AUTO that were forgotten
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@34 f711b948-2313-0410-aaa9-d29f33439f0b
This commit is contained in:
parent
c6962a322b
commit
4b9dc9ab53
|
@ -37,7 +37,7 @@ class Card:
|
|||
|
||||
def verify_pin(self, pin_number, pin_value):
|
||||
apdu = APDU(self.APDU_VERIFY_PIN, P2 = pin_number,
|
||||
lc = APDU.LC_AUTO, content = pin_value)
|
||||
content = pin_value)
|
||||
result = self.send_apdu(apdu)
|
||||
return result == self.SW_OK
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ class Java_Card(Card):
|
|||
|
||||
def select_application(self, aid):
|
||||
result = self.send_apdu(
|
||||
APDU(self.APDU_SELECT_APPLICATION, lc = APDU.LC_AUTO,
|
||||
APDU(self.APDU_SELECT_APPLICATION,
|
||||
content = aid) )
|
||||
return result
|
||||
|
||||
|
|
Loading…
Reference in New Issue