Fix returning chunked data.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -270,8 +270,8 @@ class OpenPGP_Card(object):
|
|||||||
raise ValueError(sw)
|
raise ValueError(sw)
|
||||||
if sw[0] == 0x61:
|
if sw[0] == 0x61:
|
||||||
return self.cmd_get_response(sw[1])
|
return self.cmd_get_response(sw[1])
|
||||||
if (sw[-2] == 0x61):
|
elif (sw[-2] == 0x61):
|
||||||
return self.cmd_get_response(sw[-1])
|
return sw + self.cmd_get_response(sw[-1])
|
||||||
elif sw[-2] == 0x90 and sw[-1] == 0x00:
|
elif sw[-2] == 0x90 and sw[-1] == 0x00:
|
||||||
return sw[0:-2]
|
return sw[0:-2]
|
||||||
if sw[0] == 0x6a and sw[1] == 0x88:
|
if sw[0] == 0x6a and sw[1] == 0x88:
|
||||||
|
|||||||
Reference in New Issue
Block a user