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:
vtarasov 2007-03-07 12:39:52 +00:00
parent 9e33d45edb
commit d7758e6c05
1 changed files with 1 additions and 6 deletions

View File

@ -1152,16 +1152,11 @@ auth_compute_signature(sc_card_t *card,
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);
apdu.datalen = ilen;
apdu.data = in;
apdu.lc = ilen;
apdu.le = olen;
apdu.le = olen > 256 ? 256 : olen;
apdu.resp = resp;
apdu.resplen = olen;