Fix cast of APDU res to byte array (aka string)

This commit is contained in:
Rob
2018-10-25 15:35:23 +01:00
committed by Frank Morgner
parent 2c7a8e53b5
commit d40b203774

View File

@@ -131,4 +131,4 @@ class RelayOS(SmartcardOS):
rapdu = rapdu + [sw1, sw2] rapdu = rapdu + [sw1, sw2]
# return the response APDU as string # return the response APDU as string
return "".join([bytes(b) for b in rapdu]) return "".join(map(chr, rapdu))