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:
@@ -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),
|
||||
|
||||
@@ -234,6 +234,10 @@ int sm_encrypt(const struct sm_ctx *ctx, sc_card_t *card,
|
||||
|
||||
sc_copy_asn1_entry(c_sm_capdu, sm_capdu);
|
||||
|
||||
sm_apdu->sensitive = 0;
|
||||
sm_apdu->resp = apdu->resp;
|
||||
sm_apdu->resplen = apdu->resplen;
|
||||
sm_apdu->control = apdu->control;
|
||||
sm_apdu->flags = apdu->flags;
|
||||
sm_apdu->cla = 0x0C;
|
||||
sm_apdu->ins = apdu->ins;
|
||||
|
||||
Reference in New Issue
Block a user