Fwd: APDU buffer in pcsc-wrapper too short

Andreas Schwier andreas.schwier.ml at cardcontact.de
Mon Jul 21 10:15:24 CEST 2014

Sorry, picked the wrong list initially.
-------- Original Message --------
Subject: APDU buffer in pcsc-wrapper too short
Date: Fri, 18 Jul 2014 18:31:54 +0200
From: Andreas Schwier <andreas.schwier.ml at cardcontact.de>
To: gnupg-users at gnupg.org

While scd/apdu.c assumes a maximum length of 4096 byte for an extended
length APDU, scd/pcsc-wrapper allocates only 1024 byte for the response.

As most certificates are larger than 1024, reading them with extended
length fails.

The attached patch fixes the buffer size.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-pcsc-Enlarged-APDU-buffer-to-4096-as-most-certificat.patch
Type: text/x-diff
Size: 770 bytes
Desc: not available
URL: </pipermail/attachments/20140721/fec02fe6/attachment.patch>

More information about the Gnupg-devel mailing list