comparison simtool/dispatch.c @ 147:dcbabc398c6a

increase max number of skip-ID arguments for bfsearch
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 25 Feb 2021 06:22:22 +0000
parents c2889812788e
children 26d7a8815515
comparison
equal deleted inserted replaced
146:8d55571c8118 147:dcbabc398c6a
107 int (*func)(); 107 int (*func)();
108 } cmdtab[] = { 108 } cmdtab[] = {
109 {"a38", 1, 1, 1, cmd_a38}, 109 {"a38", 1, 1, 1, cmd_a38},
110 {"apdu", 1, 1, 0, cmd_apdu}, 110 {"apdu", 1, 1, 0, cmd_apdu},
111 {"atr", 0, 0, 0, retrieve_atr}, 111 {"atr", 0, 0, 0, retrieve_atr},
112 {"bfsearch", 1, 8, 1, cmd_bfsearch}, 112 {"bfsearch", 1, 18, 1, cmd_bfsearch},
113 {"cd", 1, 1, 0, cmd_cd}, 113 {"cd", 1, 1, 0, cmd_cd},
114 {"change-chv1", 2, 2, 0, cmd_change_chv}, 114 {"change-chv1", 2, 2, 0, cmd_change_chv},
115 {"change-chv2", 2, 2, 0, cmd_change_chv}, 115 {"change-chv2", 2, 2, 0, cmd_change_chv},
116 {"change-pin1", 2, 2, 0, cmd_change_chv}, 116 {"change-pin1", 2, 2, 0, cmd_change_chv},
117 {"change-pin2", 2, 2, 0, cmd_change_chv}, 117 {"change-pin2", 2, 2, 0, cmd_change_chv},
248 } 248 }
249 249
250 simtool_dispatch_cmd(cmd, is_script) 250 simtool_dispatch_cmd(cmd, is_script)
251 char *cmd; 251 char *cmd;
252 { 252 {
253 char *argv[10]; 253 char *argv[20];
254 char *cp, **ap; 254 char *cp, **ap;
255 struct cmdtab *tp; 255 struct cmdtab *tp;
256 FILE *outf; 256 FILE *outf;
257 int rc; 257 int rc;
258 258