From 0a6b70f783c152139c07a6d1a8adeee08c5acd46 Mon Sep 17 00:00:00 2001 From: Arnaud Fontaine Date: Mon, 5 Feb 2018 10:01:19 +0100 Subject: [PATCH] Force apdu buffer to be an int buffer --- bin/smartpgp/commands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/smartpgp/commands.py b/bin/smartpgp/commands.py index 995c04a..511b418 100644 --- a/bin/smartpgp/commands.py +++ b/bin/smartpgp/commands.py @@ -112,6 +112,7 @@ def encode_len(data): def _raw_send_apdu(connection, text, apdu): print "%s" % text + apdu = [int(c) for c in apdu] #print ' '.join('{:02X}'.format(c) for c in apdu) (data, sw1, sw2) = connection.transmit(apdu) #print ' '.join('{:02X}'.format(c) for c in data)