Received: from eggs.gnu.org ([2001:4830:134:3::10]:44374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dY7N9-0006Mq-Ot for qemu-devel@nongnu.org; Thu, 20 Jul 2017 05:03:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dY7N9-0004QN-4y for qemu-devel@nongnu.org; Thu, 20 Jul 2017 05:03:51 -0400 Received: from manul.sfritsch.de ([2a01:4f8:172:195f:112::2]:37006) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dY7N8-0004Pa-W4 for qemu-devel@nongnu.org; Thu, 20 Jul 2017 05:03:51 -0400 From: Stefan Fritsch Date: Thu, 20 Jul 2017 11:02:50 +0200 Message-Id: <1500541371-24788-8-git-send-email-sf@sfritsch.de> In-Reply-To: <1500541371-24788-1-git-send-email-sf@sfritsch.de> References: <1500541371-24788-1-git-send-email-sf@sfritsch.de> Subject: [Qemu-devel] [PATCH v2 7/8] usb-ccid: Increase ccid max APDU size List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann , qemu-devel@nongnu.org From: Stefan Fritsch The emulated ccid smartcard reader has a fixed limit for APDUs from the card. Increase this to 1024. We have seen software that tries to use 768 byte APDUs. Signed-off-by: Stefan Fritsch --- hw/usb/dev-smartcard-reader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c index 709c65c384..72324e8313 100644 --- a/hw/usb/dev-smartcard-reader.c +++ b/hw/usb/dev-smartcard-reader.c @@ -82,7 +82,7 @@ static void usb_packet_dump(int lvl, const char *dir, uint8_t *buf, size_t len) #define BULK_OUT_DATA_SIZE 65536 #define PENDING_ANSWERS_NUM 128 -#define BULK_IN_BUF_SIZE 384 +#define BULK_IN_BUF_SIZE 1024 #define BULK_IN_PENDING_NUM 8 #define CCID_MAX_PACKET_SIZE 64 -- 2.11.0