PIV: workaround for reading public key

closes https://github.com/OpenSC/OpenSC/pull/1069
This commit is contained in:
Frank Morgner 2017-07-11 10:07:28 +02:00
parent 9d813c075b
commit 805c6b5a30
1 changed files with 1 additions and 1 deletions

View File

@ -1234,7 +1234,7 @@ sc_pkcs15_read_der_file(sc_context_t *ctx, char * filename,
int r;
int f = -1;
size_t len, offs;
u8 tagbuf[16]; /* enough to read in the tag and length */
u8 tagbuf[1024]; /* enough to read in the tag and length */
u8 * rbuf = NULL;
size_t rbuflen = 0;
const u8 * body = NULL;