FreeCalypso > hg > fc-pcsc-tools
comparison uicc/dispatch.c @ 107:f1836c8d36cb
hexdump output commands reworked to support redirection
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 19 Feb 2021 06:43:01 +0000 |
parents | dcfec53643c5 |
children | 5d45cde6e4b2 |
comparison
equal
deleted
inserted
replaced
106:dcfec53643c5 | 107:f1836c8d36cb |
---|---|
16 extern int cmd_readrec(); | 16 extern int cmd_readrec(); |
17 extern int cmd_select(); | 17 extern int cmd_select(); |
18 extern int cmd_select_aid(); | 18 extern int cmd_select_aid(); |
19 extern int cmd_select_isim(); | 19 extern int cmd_select_isim(); |
20 extern int cmd_select_usim(); | 20 extern int cmd_select_usim(); |
21 extern int cmd_sim_resp(); | |
21 extern int cmd_update_bin(); | 22 extern int cmd_update_bin(); |
22 extern int cmd_update_bin_imm(); | 23 extern int cmd_update_bin_imm(); |
23 extern int cmd_update_rec(); | 24 extern int cmd_update_rec(); |
24 | 25 |
25 extern int display_sim_resp_in_hex(); | |
26 extern int good_exit(); | 26 extern int good_exit(); |
27 extern int retrieve_atr(); | 27 extern int retrieve_atr(); |
28 | 28 |
29 static struct cmdtab { | 29 static struct cmdtab { |
30 char *cmd; | 30 char *cmd; |
37 {"dir", 0, 0, 1, cmd_dir}, | 37 {"dir", 0, 0, 1, cmd_dir}, |
38 {"exec", 1, 1, 0, cmd_exec}, | 38 {"exec", 1, 1, 0, cmd_exec}, |
39 {"exit", 0, 0, 0, good_exit}, | 39 {"exit", 0, 0, 0, good_exit}, |
40 {"iccid", 0, 0, 0, cmd_iccid}, | 40 {"iccid", 0, 0, 0, cmd_iccid}, |
41 {"quit", 0, 0, 0, good_exit}, | 41 {"quit", 0, 0, 0, good_exit}, |
42 {"readbin", 2, 2, 0, cmd_readbin}, | 42 {"readbin", 2, 2, 1, cmd_readbin}, |
43 {"readef", 1, 1, 0, cmd_readef}, | 43 {"readef", 1, 1, 1, cmd_readef}, |
44 {"readrec", 1, 2, 0, cmd_readrec}, | 44 {"readrec", 1, 2, 1, cmd_readrec}, |
45 {"select", 1, 1, 0, cmd_select}, | 45 {"select", 1, 1, 0, cmd_select}, |
46 {"select-aid", 1, 1, 0, cmd_select_aid}, | 46 {"select-aid", 1, 1, 0, cmd_select_aid}, |
47 {"select-isim", 0, 0, 0, cmd_select_isim}, | 47 {"select-isim", 0, 0, 0, cmd_select_isim}, |
48 {"select-usim", 0, 0, 0, cmd_select_usim}, | 48 {"select-usim", 0, 0, 0, cmd_select_usim}, |
49 {"sim-resp", 0, 0, 0, display_sim_resp_in_hex}, | 49 {"sim-resp", 0, 0, 1, cmd_sim_resp}, |
50 {"update-bin", 2, 2, 0, cmd_update_bin}, | 50 {"update-bin", 2, 2, 0, cmd_update_bin}, |
51 {"update-bin-imm", 2, 2, 0, cmd_update_bin_imm}, | 51 {"update-bin-imm", 2, 2, 0, cmd_update_bin_imm}, |
52 {"update-rec", 2, 2, 0, cmd_update_rec}, | 52 {"update-rec", 2, 2, 0, cmd_update_rec}, |
53 {0, 0, 0, 0, 0} | 53 {0, 0, 0, 0, 0} |
54 }; | 54 }; |