Copy the CLA value for the GET RESPONSE command from the original APDU
This commit is contained in:
parent
c125823192
commit
985941e16e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue