aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenryk Plötz <henryk@ploetzli.ch>2010-02-25 10:48:58 +0100
committerHenryk Plötz <henryk@ploetzli.ch>2010-02-25 10:48:58 +0100
commit985941e16ebed91525277827bcae7b979129749f (patch)
tree3b4b56f2a8081862a84c50a9eb4dfd19d26e45bf
parentc125823192d308c755b43b43ed763bd4376a8dd4 (diff)
Copy the CLA value for the GET RESPONSE command from the original APDU
-rw-r--r--cards/generic_card.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cards/generic_card.py b/cards/generic_card.py
index f4eeeb7..bcc33cd 100644
--- a/cards/generic_card.py
+++ b/cards/generic_card.py
@@ -226,7 +226,7 @@ class Card:
if self.check_sw(result.sw, PURPOSE_GET_RESPONSE):
## Need to call GetResponse
- gr_apdu = C_APDU(self.APDU_GET_RESPONSE, le = result.sw2) # FIXME
+ gr_apdu = C_APDU(self.APDU_GET_RESPONSE, le = result.sw2, cla=apdu.cla) # FIXME
result = R_APDU(self._real_send(gr_apdu))
elif self.check_sw(result.sw, PURPOSE_RETRY) and apdu.Le == 0:
## Retry with correct Le