Steve Jacobs: fix muscle driver.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3148 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
ef7d8ffa86
commit
c3fcd9f7dd
|
@ -770,7 +770,7 @@ int msc_compute_crypt_final(
|
||||||
memset(outputBuffer, 0, sizeof(outputBuffer));
|
memset(outputBuffer, 0, sizeof(outputBuffer));
|
||||||
apdu.resp = outputBuffer;
|
apdu.resp = outputBuffer;
|
||||||
apdu.resplen = MSC_MAX_READ;
|
apdu.resplen = MSC_MAX_READ;
|
||||||
apdu.le = MSC_MAX_READ;
|
apdu.le = dataLength +2;
|
||||||
ptr = buffer;
|
ptr = buffer;
|
||||||
*ptr = 0x01; ptr++; /* DATA LOCATION: APDU */
|
*ptr = 0x01; ptr++; /* DATA LOCATION: APDU */
|
||||||
*ptr = (dataLength >> 8) & 0xFF; ptr++;
|
*ptr = (dataLength >> 8) & 0xFF; ptr++;
|
||||||
|
|
Loading…
Reference in New Issue