cac1: Simplify the cycle definintion

This commit is contained in:
Jakub Jelen 2019-11-04 17:32:29 +01:00
parent 4faf517af4
commit 89ed273e81
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ static int cac_cac1_get_certificate(sc_card_t *card, u8 **out_buf, size_t *out_l
out_ptr = *out_buf ? *out_buf : buf;
sc_format_apdu(card, &apdu, SC_APDU_CASE_2_SHORT, CAC_INS_GET_CERTIFICATE, 0, 0 );
len = MIN(left, 100);
for (; left > 0;) { /* Increments for readability in the end of the function */
while (left > 0) {
apdu.resp = out_ptr;
apdu.le = len;
apdu.resplen = left;