FreeCalypso > hg > fc-pcsc-tools
comparison simtool/dispatch.c @ 124:d0d1c0b35831
fc-simtool: add low-level cur-ef-{inval,rehab} commands
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 20 Feb 2021 19:05:48 +0000 |
parents | c0cd0d4635bb |
children | e5d534fa5924 |
comparison
equal
deleted
inserted
replaced
123:09a66626647d | 124:d0d1c0b35831 |
---|---|
82 extern int cmd_verify_hex(); | 82 extern int cmd_verify_hex(); |
83 extern int cmd_verify_sjs1_adm1(); | 83 extern int cmd_verify_sjs1_adm1(); |
84 extern int cmd_write_iccid(); | 84 extern int cmd_write_iccid(); |
85 extern int cmd_write_imsi(); | 85 extern int cmd_write_imsi(); |
86 | 86 |
87 extern int current_ef_inval(); | |
88 extern int current_ef_rehab(); | |
87 extern int good_exit(); | 89 extern int good_exit(); |
88 extern int retrieve_atr(); | 90 extern int retrieve_atr(); |
89 | 91 |
90 static struct cmdtab { | 92 static struct cmdtab { |
91 char *cmd; | 93 char *cmd; |
99 {"atr", 0, 0, 0, retrieve_atr}, | 101 {"atr", 0, 0, 0, retrieve_atr}, |
100 {"change-chv1", 2, 2, 0, cmd_change_chv}, | 102 {"change-chv1", 2, 2, 0, cmd_change_chv}, |
101 {"change-chv2", 2, 2, 0, cmd_change_chv}, | 103 {"change-chv2", 2, 2, 0, cmd_change_chv}, |
102 {"change-pin1", 2, 2, 0, cmd_change_chv}, | 104 {"change-pin1", 2, 2, 0, cmd_change_chv}, |
103 {"change-pin2", 2, 2, 0, cmd_change_chv}, | 105 {"change-pin2", 2, 2, 0, cmd_change_chv}, |
106 {"cur-ef-inval", 0, 0, 0, current_ef_inval}, | |
107 {"cur-ef-rehab", 0, 0, 0, current_ef_rehab}, | |
104 {"disable-chv", 1, 1, 0, cmd_disable_chv}, | 108 {"disable-chv", 1, 1, 0, cmd_disable_chv}, |
105 {"disable-chv1", 1, 1, 0, cmd_disable_chv}, | 109 {"disable-chv1", 1, 1, 0, cmd_disable_chv}, |
106 {"disable-pin", 1, 1, 0, cmd_disable_chv}, | 110 {"disable-pin", 1, 1, 0, cmd_disable_chv}, |
107 {"disable-pin1", 1, 1, 0, cmd_disable_chv}, | 111 {"disable-pin1", 1, 1, 0, cmd_disable_chv}, |
108 {"enable-chv", 1, 1, 0, cmd_enable_chv}, | 112 {"enable-chv", 1, 1, 0, cmd_enable_chv}, |