view uicc/cmdtab.c @ 64:dba24129027e

doc/ADM-PIN-numbering article written
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 23 Mar 2021 23:30:00 +0000
parents 97646b363eaa
children de23872796cb
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_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_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_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},
	{"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},
	{"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},
	{"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}
};