From 5798673156a66f4c39e1d34e358b03539194d57c Mon Sep 17 00:00:00 2001 From: Andreas Schwier Date: Fri, 18 Jul 2014 18:22:26 +0200 Subject: [PATCH] scd: Allow for certificates > 1024 with PC/SC. * scd/pcsc-wrapper.c (handle_transmit): Enlarge buffer to 4096 too allow for larger certificates. --- scd/pcsc-wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scd/pcsc-wrapper.c b/scd/pcsc-wrapper.c index f3d92ff70..0d572d2c1 100644 --- a/scd/pcsc-wrapper.c +++ b/scd/pcsc-wrapper.c @@ -714,7 +714,7 @@ handle_transmit (unsigned char *argbuf, size_t arglen) long err; struct pcsc_io_request_s send_pci; pcsc_dword_t recv_len; - unsigned char buffer[1024]; + unsigned char buffer[4096]; /* The apdu should at least be one byte. */ if (!arglen)