view uicc/cmdtab.c @ 35:26d2ef843a99

fcsim1-mkprov utility implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 17 Mar 2021 04:51:53 +0000
parents b70d35f5476f
children bccf028921bb
line wrap: on
line source

/*
 * This module contains the command table for fc-uicc-tool.
 */

#include "cmdtab.h"

extern int cmd_apdu();
extern int cmd_atr();
extern int cmd_bfsearch_adf();
extern int cmd_bfsearch_mf();
extern int cmd_cd();
extern int cmd_change_pin();
extern int cmd_create_file();
extern int cmd_delete_file();
extern int cmd_dir();
extern int cmd_disable_pin();
extern int cmd_enable_pin();
extern int cmd_exec();
extern int cmd_exit();
extern int cmd_get_response();
extern int cmd_iccid();
extern int cmd_pin_attempt_cnt();
extern int cmd_puk_attempt_cnt();
extern int cmd_readbin();
extern int cmd_readef();
extern int cmd_readrec();
extern int cmd_select();
extern int cmd_select_aid();
extern int cmd_select_isim();
extern int cmd_select_usim();
extern int cmd_sim_resp();
extern int cmd_unblock_pin();
extern int cmd_update_bin();
extern int cmd_update_bin_imm();
extern int cmd_update_rec();
extern int cmd_verify_hex();
extern int cmd_verify_pin();

struct cmdtab cmdtab[] = {
	{"apdu", 1, 1, 0, cmd_apdu},
	{"atr", 0, 0, 0, cmd_atr},
	{"bfsearch-adf", 0, 0, 1, cmd_bfsearch_adf},
	{"bfsearch-mf", 0, 0, 1, cmd_bfsearch_mf},
	{"cd", 1, 1, 0, cmd_cd},
	{"change-pin", 3, 3, 0, cmd_change_pin},
	{"create-file", 1, 1, 0, cmd_create_file},
	{"delete-file", 1, 1, 0, cmd_delete_file},
	{"dir", 0, 0, 1, cmd_dir},
	{"disable-pin", 2, 2, 0, cmd_disable_pin},
	{"enable-pin", 2, 2, 0, cmd_enable_pin},
	{"exec", 1, 1, 0, cmd_exec},
	{"exit", 0, 1, 0, cmd_exit},
	{"get-response", 1, 1, 1, cmd_get_response},
	{"iccid", 0, 0, 1, cmd_iccid},
	{"pin-attempt-cnt", 1, 1, 0, cmd_pin_attempt_cnt},
	{"puk-attempt-cnt", 1, 1, 0, cmd_puk_attempt_cnt},
	{"quit", 0, 1, 0, cmd_exit},
	{"readbin", 2, 2, 1, cmd_readbin},
	{"readef", 1, 1, 1, cmd_readef},
	{"readrec", 1, 2, 1, cmd_readrec},
	{"select", 1, 1, 1, cmd_select},
	{"select-aid", 1, 1, 1, cmd_select_aid},
	{"select-isim", 0, 0, 1, cmd_select_isim},
	{"select-usim", 0, 0, 1, cmd_select_usim},
	{"sim-resp", 0, 0, 1, cmd_sim_resp},
	{"unblock-pin", 3, 3, 0, cmd_unblock_pin},
	{"update-bin", 2, 2, 0, cmd_update_bin},
	{"update-bin-imm", 2, 2, 0, cmd_update_bin_imm},
	{"update-rec", 2, 2, 0, cmd_update_rec},
	{"verify-ext", 2, 2, 0, cmd_verify_pin},
	{"verify-hex", 2, 2, 0, cmd_verify_hex},
	{"verify-pin", 2, 2, 0, cmd_verify_pin},
	{0, 0, 0, 0, 0}
};