added missing return buffer for select of CardSecurity

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@56 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2010-04-10 15:12:37 +00:00
parent cbc4dda0ed
commit 6d0cc5e908
2 changed files with 6 additions and 0 deletions

View File

@@ -850,6 +850,8 @@ int pace_test(sc_card_t *card)
SC_TEST_RET(card->ctx, sm_encrypt(&sctx, card, &apdu, &sm_apdu),
"Could not encrypt APDU.");
bin_log(card->ctx, "SM APDU data", sm_apdu.data, sm_apdu.datalen);
sm_apdu.resplen = maxresp;
sm_apdu.resp = malloc(apdu.resplen);
SC_TEST_RET(card->ctx, my_transmit_apdu(card, &sm_apdu),
"Could not send SM APDU.");
SC_TEST_RET(card->ctx, sm_decrypt(&sctx, card, &sm_apdu, &apdu),