aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwier <[email protected]>2014-07-18 16:22:26 +0000
committerNIIBE Yutaka <[email protected]>2015-01-13 03:23:23 +0000
commit16a1330fa16f6b23e2661c0175c431ab40da45ff (patch)
tree2f4c148f126719c291ebce86ec87bb73d6e413ff
parentpo: Update the German translation. (diff)
downloadgnupg-16a1330fa16f6b23e2661c0175c431ab40da45ff.tar.gz
gnupg-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.
-rw-r--r--scd/pcsc-wrapper.c2
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)