FreeCalypso > hg > fc-pcsc-tools
comparison simtool/dispatch.c @ 137:277c66de296f
fc-simtool: added STK test commands
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 22 Feb 2021 00:08:42 +0000 |
parents | d991944aa5f3 |
children | c2889812788e |
comparison
equal
deleted
inserted
replaced
136:5494795406e0 | 137:277c66de296f |
---|---|
12 extern int cmd_apdu(); | 12 extern int cmd_apdu(); |
13 extern int cmd_cd(); | 13 extern int cmd_cd(); |
14 extern int cmd_change_chv(); | 14 extern int cmd_change_chv(); |
15 extern int cmd_disable_chv(); | 15 extern int cmd_disable_chv(); |
16 extern int cmd_enable_chv(); | 16 extern int cmd_enable_chv(); |
17 extern int cmd_envelope(); | |
18 extern int cmd_envelope_imm(); | |
17 extern int cmd_exec(); | 19 extern int cmd_exec(); |
18 extern int cmd_fix_sysmo_msisdn(); | 20 extern int cmd_fix_sysmo_msisdn(); |
19 extern int cmd_fplmn_dump(); | 21 extern int cmd_fplmn_dump(); |
20 extern int cmd_fplmn_erase(); | 22 extern int cmd_fplmn_erase(); |
21 extern int cmd_fplmn_erase_all(); | 23 extern int cmd_fplmn_erase_all(); |
22 extern int cmd_fplmn_write(); | 24 extern int cmd_fplmn_write(); |
25 extern int cmd_get_response(); | |
23 extern int cmd_grcard1_set_adm(); | 26 extern int cmd_grcard1_set_adm(); |
24 extern int cmd_grcard1_set_ki(); | 27 extern int cmd_grcard1_set_ki(); |
25 extern int cmd_grcard1_set_pin(); | 28 extern int cmd_grcard1_set_pin(); |
26 extern int cmd_grcard2_set_adm(); | 29 extern int cmd_grcard2_set_adm(); |
27 extern int cmd_grcard2_set_adm_hex(); | 30 extern int cmd_grcard2_set_adm_hex(); |
73 extern int cmd_smsp_set(); | 76 extern int cmd_smsp_set(); |
74 extern int cmd_smsp_set_tag(); | 77 extern int cmd_smsp_set_tag(); |
75 extern int cmd_spn(); | 78 extern int cmd_spn(); |
76 extern int cmd_sst(); | 79 extern int cmd_sst(); |
77 extern int cmd_telecom_sum(); | 80 extern int cmd_telecom_sum(); |
81 extern int cmd_terminal_profile(); | |
78 extern int cmd_uicc_dir(); | 82 extern int cmd_uicc_dir(); |
79 extern int cmd_unblock_chv(); | 83 extern int cmd_unblock_chv(); |
80 extern int cmd_update_bin(); | 84 extern int cmd_update_bin(); |
81 extern int cmd_update_bin_imm(); | 85 extern int cmd_update_bin_imm(); |
82 extern int cmd_update_rec(); | 86 extern int cmd_update_rec(); |
117 {"disable-pin1", 1, 1, 0, cmd_disable_chv}, | 121 {"disable-pin1", 1, 1, 0, cmd_disable_chv}, |
118 {"enable-chv", 1, 1, 0, cmd_enable_chv}, | 122 {"enable-chv", 1, 1, 0, cmd_enable_chv}, |
119 {"enable-chv1", 1, 1, 0, cmd_enable_chv}, | 123 {"enable-chv1", 1, 1, 0, cmd_enable_chv}, |
120 {"enable-pin", 1, 1, 0, cmd_enable_chv}, | 124 {"enable-pin", 1, 1, 0, cmd_enable_chv}, |
121 {"enable-pin1", 1, 1, 0, cmd_enable_chv}, | 125 {"enable-pin1", 1, 1, 0, cmd_enable_chv}, |
126 {"envelope", 1, 1, 0, cmd_envelope}, | |
127 {"envelope-imm", 1, 1, 0, cmd_envelope_imm}, | |
122 {"exec", 1, 1, 0, cmd_exec}, | 128 {"exec", 1, 1, 0, cmd_exec}, |
123 {"exit", 0, 0, 0, good_exit}, | 129 {"exit", 0, 0, 0, good_exit}, |
124 {"fix-sysmo-msisdn", 0, 0, 0, cmd_fix_sysmo_msisdn}, | 130 {"fix-sysmo-msisdn", 0, 0, 0, cmd_fix_sysmo_msisdn}, |
125 {"fplmn-dump", 0, 0, 1, cmd_fplmn_dump}, | 131 {"fplmn-dump", 0, 0, 1, cmd_fplmn_dump}, |
126 {"fplmn-erase", 1, 2, 0, cmd_fplmn_erase}, | 132 {"fplmn-erase", 1, 2, 0, cmd_fplmn_erase}, |
127 {"fplmn-erase-all", 0, 0, 0, cmd_fplmn_erase_all}, | 133 {"fplmn-erase-all", 0, 0, 0, cmd_fplmn_erase_all}, |
128 {"fplmn-write", 2, 2, 0, cmd_fplmn_write}, | 134 {"fplmn-write", 2, 2, 0, cmd_fplmn_write}, |
135 {"get-response", 1, 1, 1, cmd_get_response}, | |
129 {"grcard1-set-adm1", 2, 2, 0, cmd_grcard1_set_adm}, | 136 {"grcard1-set-adm1", 2, 2, 0, cmd_grcard1_set_adm}, |
130 {"grcard1-set-adm2", 2, 2, 0, cmd_grcard1_set_adm}, | 137 {"grcard1-set-adm2", 2, 2, 0, cmd_grcard1_set_adm}, |
131 {"grcard1-set-ki", 1, 1, 0, cmd_grcard1_set_ki}, | 138 {"grcard1-set-ki", 1, 1, 0, cmd_grcard1_set_ki}, |
132 {"grcard1-set-pin1", 2, 2, 0, cmd_grcard1_set_pin}, | 139 {"grcard1-set-pin1", 2, 2, 0, cmd_grcard1_set_pin}, |
133 {"grcard1-set-pin2", 2, 2, 0, cmd_grcard1_set_pin}, | 140 {"grcard1-set-pin2", 2, 2, 0, cmd_grcard1_set_pin}, |
184 {"smsp-set", 2, 6, 0, cmd_smsp_set}, | 191 {"smsp-set", 2, 6, 0, cmd_smsp_set}, |
185 {"smsp-set-tag", 3, 7, 0, cmd_smsp_set_tag}, | 192 {"smsp-set-tag", 3, 7, 0, cmd_smsp_set_tag}, |
186 {"spn", 0, 0, 1, cmd_spn}, | 193 {"spn", 0, 0, 1, cmd_spn}, |
187 {"sst", 0, 0, 1, cmd_sst}, | 194 {"sst", 0, 0, 1, cmd_sst}, |
188 {"telecom-sum", 0, 0, 0, cmd_telecom_sum}, | 195 {"telecom-sum", 0, 0, 0, cmd_telecom_sum}, |
196 {"terminal-profile", 1, 1, 0, cmd_terminal_profile}, | |
189 {"uicc-dir", 0, 0, 1, cmd_uicc_dir}, | 197 {"uicc-dir", 0, 0, 1, cmd_uicc_dir}, |
190 {"unblock-chv1", 2, 2, 0, cmd_unblock_chv}, | 198 {"unblock-chv1", 2, 2, 0, cmd_unblock_chv}, |
191 {"unblock-chv2", 2, 2, 0, cmd_unblock_chv}, | 199 {"unblock-chv2", 2, 2, 0, cmd_unblock_chv}, |
192 {"unblock-pin1", 2, 2, 0, cmd_unblock_chv}, | 200 {"unblock-pin1", 2, 2, 0, cmd_unblock_chv}, |
193 {"unblock-pin2", 2, 2, 0, cmd_unblock_chv}, | 201 {"unblock-pin2", 2, 2, 0, cmd_unblock_chv}, |