after Douglas Engert's remarks on the coding style
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3123 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
9e33d45edb
commit
d7758e6c05
|
@ -1152,16 +1152,11 @@ auth_compute_signature(sc_card_t *card,
|
||||||
SC_TEST_RET(card->ctx, SC_ERROR_INVALID_ARGUMENTS, "Illegal input length");
|
SC_TEST_RET(card->ctx, SC_ERROR_INVALID_ARGUMENTS, "Illegal input length");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (olen > 256) {
|
|
||||||
sc_debug(card->ctx, "Output length reduced to 256 bytes");
|
|
||||||
olen = 256;
|
|
||||||
}
|
|
||||||
|
|
||||||
sc_format_apdu(card, &apdu, SC_APDU_CASE_4_SHORT, 0x2A, 0x9E, 0x9A);
|
sc_format_apdu(card, &apdu, SC_APDU_CASE_4_SHORT, 0x2A, 0x9E, 0x9A);
|
||||||
apdu.datalen = ilen;
|
apdu.datalen = ilen;
|
||||||
apdu.data = in;
|
apdu.data = in;
|
||||||
apdu.lc = ilen;
|
apdu.lc = ilen;
|
||||||
apdu.le = olen;
|
apdu.le = olen > 256 ? 256 : olen;
|
||||||
apdu.resp = resp;
|
apdu.resp = resp;
|
||||||
apdu.resplen = olen;
|
apdu.resplen = olen;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue