Oberthur card driver: useless assignments
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3810 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
435862ee1e
commit
a0acb90b48
|
@ -153,7 +153,6 @@ auth_select_aid(struct sc_card *card)
|
|||
sc_format_apdu(card, &apdu, SC_APDU_CASE_3_SHORT, 0xA4, 0x04, 0x0C);
|
||||
apdu.lc = sizeof(cm);
|
||||
/* apdu.le = sizeof(cm)+4; */
|
||||
apdu.le = 0;
|
||||
apdu.data = cm;
|
||||
apdu.datalen = sizeof(cm);
|
||||
apdu.resplen = sizeof(apdu_resp);
|
||||
|
@ -215,10 +214,10 @@ auth_match_card(struct sc_card *card)
|
|||
static int
|
||||
auth_init(struct sc_card *card)
|
||||
{
|
||||
int rv = 0;
|
||||
unsigned long flags;
|
||||
struct auth_private_data *data;
|
||||
struct sc_path path;
|
||||
unsigned long flags;
|
||||
int rv = 0;
|
||||
|
||||
data = (struct auth_private_data *) malloc(sizeof(struct auth_private_data));
|
||||
if (!data)
|
||||
|
@ -1606,10 +1605,6 @@ auth_is_verified(struct sc_card *card, int pin_reference, int *tries_left)
|
|||
int rv;
|
||||
|
||||
sc_format_apdu(card, &apdu, SC_APDU_CASE_1, 0x20, 0, pin_reference);
|
||||
apdu.lc = 0x0;
|
||||
apdu.le = 0x0;
|
||||
apdu.resplen = 0;
|
||||
apdu.resp = NULL;
|
||||
|
||||
rv = sc_transmit_apdu(card, &apdu);
|
||||
SC_TEST_RET(card->ctx, rv, "APDU transmit failed");
|
||||
|
@ -1750,10 +1745,6 @@ auth_logout(struct sc_card *card)
|
|||
|
||||
sc_format_apdu(card, &apdu, SC_APDU_CASE_1, 0x2E, 0x00, 0x00);
|
||||
apdu.cla = 0x80;
|
||||
apdu.lc = 0x0;
|
||||
apdu.le = 0x0;
|
||||
apdu.resplen = 0;
|
||||
apdu.resp = NULL;
|
||||
apdu.p2 = pin_ref | reset_flag;
|
||||
rv = sc_transmit_apdu(card, &apdu);
|
||||
SC_TEST_RET(card->ctx, rv, "APDU transmit failed");
|
||||
|
@ -1851,7 +1842,6 @@ auth_update_binary(struct sc_card *card, unsigned int offset,
|
|||
|
||||
memset(&args, 0, sizeof(args));
|
||||
args.type = SC_CARDCTL_OBERTHUR_KEY_DES;
|
||||
args.component = 0;
|
||||
args.data = (unsigned char *)buf;
|
||||
args.len = count;
|
||||
rv = auth_update_component(card, &args);
|
||||
|
@ -1984,10 +1974,6 @@ auth_delete_record(struct sc_card *card, unsigned int nr_rec)
|
|||
|
||||
sc_format_apdu(card, &apdu, SC_APDU_CASE_1, 0x32, nr_rec, 0x04);
|
||||
apdu.cla = 0x80;
|
||||
apdu.lc = 0x0;
|
||||
apdu.le = 0x0;
|
||||
apdu.resplen = 0;
|
||||
apdu.resp = NULL;
|
||||
|
||||
rv = sc_transmit_apdu(card, &apdu);
|
||||
SC_TEST_RET(card->ctx, rv, "APDU transmit failed");
|
||||
|
|
Loading…
Reference in New Issue