FreeCalypso > hg > fc-pcsc-tools
comparison simtool/dispatch.c @ 132:d991944aa5f3
fc-simtool: local cd command implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 20 Feb 2021 22:23:03 +0000 |
parents | 7305f2e63d66 |
children | 277c66de296f |
comparison
equal
deleted
inserted
replaced
131:7305f2e63d66 | 132:d991944aa5f3 |
---|---|
8 #include <strings.h> | 8 #include <strings.h> |
9 #include <stdlib.h> | 9 #include <stdlib.h> |
10 | 10 |
11 extern int cmd_a38(); | 11 extern int cmd_a38(); |
12 extern int cmd_apdu(); | 12 extern int cmd_apdu(); |
13 extern int cmd_cd(); | |
13 extern int cmd_change_chv(); | 14 extern int cmd_change_chv(); |
14 extern int cmd_disable_chv(); | 15 extern int cmd_disable_chv(); |
15 extern int cmd_enable_chv(); | 16 extern int cmd_enable_chv(); |
16 extern int cmd_exec(); | 17 extern int cmd_exec(); |
17 extern int cmd_fix_sysmo_msisdn(); | 18 extern int cmd_fix_sysmo_msisdn(); |
101 int (*func)(); | 102 int (*func)(); |
102 } cmdtab[] = { | 103 } cmdtab[] = { |
103 {"a38", 1, 1, 1, cmd_a38}, | 104 {"a38", 1, 1, 1, cmd_a38}, |
104 {"apdu", 1, 1, 0, cmd_apdu}, | 105 {"apdu", 1, 1, 0, cmd_apdu}, |
105 {"atr", 0, 0, 0, retrieve_atr}, | 106 {"atr", 0, 0, 0, retrieve_atr}, |
107 {"cd", 1, 1, 0, cmd_cd}, | |
106 {"change-chv1", 2, 2, 0, cmd_change_chv}, | 108 {"change-chv1", 2, 2, 0, cmd_change_chv}, |
107 {"change-chv2", 2, 2, 0, cmd_change_chv}, | 109 {"change-chv2", 2, 2, 0, cmd_change_chv}, |
108 {"change-pin1", 2, 2, 0, cmd_change_chv}, | 110 {"change-pin1", 2, 2, 0, cmd_change_chv}, |
109 {"change-pin2", 2, 2, 0, cmd_change_chv}, | 111 {"change-pin2", 2, 2, 0, cmd_change_chv}, |
110 {"cur-ef-inval", 0, 0, 0, current_ef_inval}, | 112 {"cur-ef-inval", 0, 0, 0, current_ef_inval}, |