scd: Allow for certificates > 1024 with PC/SC.

* scd/pcsc-wrapper.c (handle_transmit): Enlarge buffer to 4096 too
allow for larger certificates.

--

Cherry-pick from 5798673156.
Forward ported from 2.0.
This commit is contained in:
Andreas Schwier 2014-07-18 18:22:26 +02:00 committed by NIIBE Yutaka
parent 3197f69fab
commit 16a1330fa1
1 changed files with 1 additions and 1 deletions

View File

@ -715,7 +715,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)