Skip to content

Commit

Permalink
Use sc_format_apdu_ex instead of sc_format_apdu
Browse files Browse the repository at this point in the history
  • Loading branch information
jozsefd authored and Jakuje committed Nov 19, 2021
1 parent 6c1ff4c commit d24afc2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/libopensc/card-nqApplet.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,7 @@ static int select_nqapplet(sc_card_t *card, u8 *version_major, u8 *version_minor

LOG_FUNC_CALLED(card->ctx);

sc_format_apdu(card, &apdu, SC_APDU_CASE_4_SHORT, 0xA4, 0x04, 0x00);
apdu.lc = cb_aid;
apdu.data = nqapplet_aid;
apdu.datalen = cb_aid;
apdu.resp = buffer;
apdu.resplen = cb_buffer;
apdu.le = cb_buffer;
sc_format_apdu_ex(&apdu, 0x00, 0xA4, 0x04, 0x00, nqapplet_aid, cb_aid, buffer, cb_buffer);

rv = sc_transmit_apdu(card, &apdu);
LOG_TEST_RET(ctx, rv, "APDU transmit failure.");
Expand Down

0 comments on commit d24afc2

Please sign in to comment.