qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 7/8] usb-ccid: Increase ccid max APDU size


From: Stefan Fritsch
Subject: [Qemu-devel] [PATCH 7/8] usb-ccid: Increase ccid max APDU size
Date: Thu, 20 Jul 2017 10:25:22 +0200

From: Stefan Fritsch <address@hidden>

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 <address@hidden>
---
 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 974ecad18d..dff856d456 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]