comparison uicc/dispatch.c @ 153:2ef31306be22

fc-uicc-tool bfsearch-{adf,mf} implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 25 Feb 2021 17:46:53 +0000
parents d9dd52bc403b
children
comparison
equal deleted inserted replaced
152:77832c9f2001 153:2ef31306be22
7 #include <string.h> 7 #include <string.h>
8 #include <strings.h> 8 #include <strings.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 10
11 extern int cmd_apdu(); 11 extern int cmd_apdu();
12 extern int cmd_bfsearch_adf();
13 extern int cmd_bfsearch_mf();
12 extern int cmd_cd(); 14 extern int cmd_cd();
13 extern int cmd_change_pin(); 15 extern int cmd_change_pin();
14 extern int cmd_create_file(); 16 extern int cmd_create_file();
15 extern int cmd_delete_file(); 17 extern int cmd_delete_file();
16 extern int cmd_dir(); 18 extern int cmd_dir();
46 int allow_redir; 48 int allow_redir;
47 int (*func)(); 49 int (*func)();
48 } cmdtab[] = { 50 } cmdtab[] = {
49 {"apdu", 1, 1, 0, cmd_apdu}, 51 {"apdu", 1, 1, 0, cmd_apdu},
50 {"atr", 0, 0, 0, retrieve_atr}, 52 {"atr", 0, 0, 0, retrieve_atr},
53 {"bfsearch-adf", 0, 0, 1, cmd_bfsearch_adf},
54 {"bfsearch-mf", 0, 0, 1, cmd_bfsearch_mf},
51 {"cd", 1, 1, 0, cmd_cd}, 55 {"cd", 1, 1, 0, cmd_cd},
52 {"change-pin", 3, 3, 0, cmd_change_pin}, 56 {"change-pin", 3, 3, 0, cmd_change_pin},
53 {"create-file", 1, 1, 0, cmd_create_file}, 57 {"create-file", 1, 1, 0, cmd_create_file},
54 {"delete-file", 1, 1, 0, cmd_delete_file}, 58 {"delete-file", 1, 1, 0, cmd_delete_file},
55 {"dir", 0, 0, 1, cmd_dir}, 59 {"dir", 0, 0, 1, cmd_dir},