- fixed resplen values in sc_decipher and sc_compute_signature

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@112 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
jey 2001-12-29 11:57:34 +00:00
parent ad2e34cb6c
commit daf877fadd
1 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ int sc_decipher(struct sc_card *card,
sc_format_apdu(card, &apdu, SC_APDU_CASE_3_SHORT, 0x2A, 0x80, 0x86);
apdu.resp = rbuf;
apdu.resplen = 2; /* FIXME */
apdu.resplen = sizeof(rbuf); /* FIXME */
sbuf[0] = 0; /* padding indicator byte */ ;
memcpy(sbuf + 1, crgram, crgram_len);
@ -135,7 +135,7 @@ int sc_compute_signature(struct sc_card *card,
sc_format_apdu(card, &apdu, SC_APDU_CASE_3_SHORT, 0x2A, 0x9E,
0x9A);
apdu.resp = rbuf;
apdu.resplen = 2; /* FIXME */
apdu.resplen = sizeof(rbuf); /* FIXME */
memcpy(sbuf, data, datalen);
apdu.data = sbuf;