comparison uicc/dispatch.c @ 118:5d45cde6e4b2

fc-uicc-tool: verify-pin command family implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 19 Feb 2021 23:23:13 +0000
parents f1836c8d36cb
children 0ac0aee0df11
comparison
equal deleted inserted replaced
117:b89bc690dec4 118:5d45cde6e4b2
20 extern int cmd_select_usim(); 20 extern int cmd_select_usim();
21 extern int cmd_sim_resp(); 21 extern int cmd_sim_resp();
22 extern int cmd_update_bin(); 22 extern int cmd_update_bin();
23 extern int cmd_update_bin_imm(); 23 extern int cmd_update_bin_imm();
24 extern int cmd_update_rec(); 24 extern int cmd_update_rec();
25 extern int cmd_verify_hex();
26 extern int cmd_verify_pin();
25 27
26 extern int good_exit(); 28 extern int good_exit();
27 extern int retrieve_atr(); 29 extern int retrieve_atr();
28 30
29 static struct cmdtab { 31 static struct cmdtab {
48 {"select-usim", 0, 0, 0, cmd_select_usim}, 50 {"select-usim", 0, 0, 0, cmd_select_usim},
49 {"sim-resp", 0, 0, 1, cmd_sim_resp}, 51 {"sim-resp", 0, 0, 1, cmd_sim_resp},
50 {"update-bin", 2, 2, 0, cmd_update_bin}, 52 {"update-bin", 2, 2, 0, cmd_update_bin},
51 {"update-bin-imm", 2, 2, 0, cmd_update_bin_imm}, 53 {"update-bin-imm", 2, 2, 0, cmd_update_bin_imm},
52 {"update-rec", 2, 2, 0, cmd_update_rec}, 54 {"update-rec", 2, 2, 0, cmd_update_rec},
55 {"verify-ext", 2, 2, 0, cmd_verify_pin},
56 {"verify-hex", 2, 2, 0, cmd_verify_hex},
57 {"verify-pin", 2, 2, 0, cmd_verify_pin},
53 {0, 0, 0, 0, 0} 58 {0, 0, 0, 0, 0}
54 }; 59 };
55 60
56 static FILE * 61 static FILE *
57 handle_output_redir(str) 62 handle_output_redir(str)