FreeCalypso > hg > fc-pcsc-tools
comparison simtool/dispatch.c @ 29:d368051576d0
fc-simtool & fc-uicc-tool: add explicit atr command
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 12 Feb 2021 16:19:11 +0000 |
parents | 2071b28cd0c7 |
children | f5a26c1d0b93 |
comparison
equal
deleted
inserted
replaced
28:78f93e3c9ebf | 29:d368051576d0 |
---|---|
48 extern int cmd_verify_chv(); | 48 extern int cmd_verify_chv(); |
49 extern int cmd_verify_ext(); | 49 extern int cmd_verify_ext(); |
50 | 50 |
51 extern int display_sim_resp_in_hex(); | 51 extern int display_sim_resp_in_hex(); |
52 extern int good_exit(); | 52 extern int good_exit(); |
53 extern int retrieve_atr(); | |
53 | 54 |
54 static struct cmdtab { | 55 static struct cmdtab { |
55 char *cmd; | 56 char *cmd; |
56 int minargs; | 57 int minargs; |
57 int maxargs; | 58 int maxargs; |
58 int (*func)(); | 59 int (*func)(); |
59 } cmdtab[] = { | 60 } cmdtab[] = { |
60 {"a38", 1, 1, cmd_a38}, | 61 {"a38", 1, 1, cmd_a38}, |
62 {"atr", 0, 0, retrieve_atr}, | |
61 {"change-chv1", 2, 2, cmd_change_chv}, | 63 {"change-chv1", 2, 2, cmd_change_chv}, |
62 {"change-chv2", 2, 2, cmd_change_chv}, | 64 {"change-chv2", 2, 2, cmd_change_chv}, |
63 {"change-pin1", 2, 2, cmd_change_chv}, | 65 {"change-pin1", 2, 2, cmd_change_chv}, |
64 {"change-pin2", 2, 2, cmd_change_chv}, | 66 {"change-pin2", 2, 2, cmd_change_chv}, |
65 {"disable-chv", 1, 1, cmd_disable_chv}, | 67 {"disable-chv", 1, 1, cmd_disable_chv}, |