PIV: workaround for reading public key
closes https://github.com/OpenSC/OpenSC/pull/1069
This commit is contained in:
parent
9d813c075b
commit
805c6b5a30
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue