FreeCalypso > hg > fc-pcsc-tools
comparison simtool/dispatch.c @ 121:8e70ee7c194f
fc-simtool & fc-uicc-tool: raw apdu command implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 20 Feb 2021 00:48:22 +0000 |
parents | b89bc690dec4 |
children | c0cd0d4635bb |
comparison
equal
deleted
inserted
replaced
120:a98992e9fe82 | 121:8e70ee7c194f |
---|---|
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_a38(); | 11 extern int cmd_a38(); |
12 extern int cmd_apdu(); | |
12 extern int cmd_change_chv(); | 13 extern int cmd_change_chv(); |
13 extern int cmd_disable_chv(); | 14 extern int cmd_disable_chv(); |
14 extern int cmd_enable_chv(); | 15 extern int cmd_enable_chv(); |
15 extern int cmd_exec(); | 16 extern int cmd_exec(); |
16 extern int cmd_fix_sysmo_msisdn(); | 17 extern int cmd_fix_sysmo_msisdn(); |
91 int maxargs; | 92 int maxargs; |
92 int allow_redir; | 93 int allow_redir; |
93 int (*func)(); | 94 int (*func)(); |
94 } cmdtab[] = { | 95 } cmdtab[] = { |
95 {"a38", 1, 1, 1, cmd_a38}, | 96 {"a38", 1, 1, 1, cmd_a38}, |
97 {"apdu", 1, 1, 0, cmd_apdu}, | |
96 {"atr", 0, 0, 0, retrieve_atr}, | 98 {"atr", 0, 0, 0, retrieve_atr}, |
97 {"change-chv1", 2, 2, 0, cmd_change_chv}, | 99 {"change-chv1", 2, 2, 0, cmd_change_chv}, |
98 {"change-chv2", 2, 2, 0, cmd_change_chv}, | 100 {"change-chv2", 2, 2, 0, cmd_change_chv}, |
99 {"change-pin1", 2, 2, 0, cmd_change_chv}, | 101 {"change-pin1", 2, 2, 0, cmd_change_chv}, |
100 {"change-pin2", 2, 2, 0, cmd_change_chv}, | 102 {"change-pin2", 2, 2, 0, cmd_change_chv}, |