vicc: debug incoming commands as well
This commit is contained in:
@@ -605,6 +605,8 @@ class VirtualICC(object):
|
|||||||
logging.warning("Expected %u bytes, but received only %u",
|
logging.warning("Expected %u bytes, but received only %u",
|
||||||
size, len(msg))
|
size, len(msg))
|
||||||
|
|
||||||
|
logging.info("Command APDU (%d bytes):\n %s\n", len(msg),
|
||||||
|
hexdump(msg, indent=2))
|
||||||
answer = self.os.execute(msg)
|
answer = self.os.execute(msg)
|
||||||
logging.info("Response APDU (%d bytes):\n %s\n", len(answer),
|
logging.info("Response APDU (%d bytes):\n %s\n", len(answer),
|
||||||
hexdump(answer, indent=2))
|
hexdump(answer, indent=2))
|
||||||
|
|||||||
Reference in New Issue
Block a user