view uicc/cmdtab.c @ 101:1888d88478c4

fc-simtool write-hplmn-timer new command
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 14 May 2022 22:54:19 +0000
parents 5560261fc516
children
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_apdu_checksw();
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_erase_file();
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_restore_file();
extern int cmd_savebin();
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_sws_auth_adm1();
extern int cmd_sws_auth_pin1();
extern int cmd_sws_auth_pin2();
extern int cmd_sws_lookup();
extern int cmd_unblock_pin();
extern int cmd_update_bin();
extern int cmd_update_bin_imm();
extern int cmd_update_rec();
extern int cmd_update_rec_fill();
extern int cmd_update_rec_imm();
extern int cmd_verify_hex();
extern int cmd_verify_pin();

struct cmdtab cmdtab[] = {
	{"apdu", 1, 1, 0, cmd_apdu},
	{"apdu-checksw", 2, 2, 0, cmd_apdu_checksw},
	{"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},
	{"erase-file", 1, 2, 0, cmd_erase_file},
	{"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},
	{"restore-file", 2, 2, 0, cmd_restore_file},
	{"savebin", 2, 2, 0, cmd_savebin},
	{"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},
	{"sws-auth-adm1", 0, 0, 0, cmd_sws_auth_adm1},
	{"sws-auth-pin1", 0, 0, 0, cmd_sws_auth_pin1},
	{"sws-auth-pin2", 0, 0, 0, cmd_sws_auth_pin2},
	{"sws-lookup", 1, 18, 1, cmd_sws_lookup},
	{"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},
	{"update-rec-fill", 2, 2, 0, cmd_update_rec_fill},
	{"update-rec-imm", 2, 2, 0, cmd_update_rec_imm},
	{"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}
};