bugfix: Le must be <= buffer size
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2939 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
d78f5ad5c2
commit
9b52eebdda
|
@ -614,8 +614,8 @@ pgp_compute_signature(sc_card_t *card, const u8 *data,
|
|||
apdu.lc = data_len;
|
||||
apdu.data = data;
|
||||
apdu.datalen = data_len;
|
||||
apdu.le = 256;
|
||||
apdu.resp = out;
|
||||
apdu.le = outlen;
|
||||
apdu.resp = out;
|
||||
apdu.resplen = outlen;
|
||||
|
||||
r = sc_transmit_apdu(card, &apdu);
|
||||
|
|
Loading…
Reference in New Issue