diff options
author | Andreas Schwier <andreas.schwier@cardcontact.de> | 2014-07-18 18:22:26 +0200 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2015-01-13 04:23:23 +0100 |
commit | 16a1330fa16f6b23e2661c0175c431ab40da45ff (patch) | |
tree | 2f4c148f126719c291ebce86ec87bb73d6e413ff /scd/pcsc-wrapper.c | |
parent | po: Update the German translation. (diff) | |
download | gnupg2-16a1330fa16f6b23e2661c0175c431ab40da45ff.tar.xz gnupg2-16a1330fa16f6b23e2661c0175c431ab40da45ff.zip |
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 5798673156a66f4c39e1d34e358b03539194d57c.
Forward ported from 2.0.
Diffstat (limited to '')
-rw-r--r-- | scd/pcsc-wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/pcsc-wrapper.c b/scd/pcsc-wrapper.c index b3060e115..843603a24 100644 --- a/scd/pcsc-wrapper.c +++ b/scd/pcsc-wrapper.c @@ -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) |