comparison simtool/dispatch.c @ 145:c2889812788e

fc-simtool bfsearch implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 25 Feb 2021 06:03:13 +0000
parents 277c66de296f
children dcbabc398c6a
comparison
equal deleted inserted replaced
144:60411fd4b803 145:c2889812788e
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_bfsearch();
13 extern int cmd_cd(); 14 extern int cmd_cd();
14 extern int cmd_change_chv(); 15 extern int cmd_change_chv();
15 extern int cmd_disable_chv(); 16 extern int cmd_disable_chv();
16 extern int cmd_enable_chv(); 17 extern int cmd_enable_chv();
17 extern int cmd_envelope(); 18 extern int cmd_envelope();
106 int (*func)(); 107 int (*func)();
107 } cmdtab[] = { 108 } cmdtab[] = {
108 {"a38", 1, 1, 1, cmd_a38}, 109 {"a38", 1, 1, 1, cmd_a38},
109 {"apdu", 1, 1, 0, cmd_apdu}, 110 {"apdu", 1, 1, 0, cmd_apdu},
110 {"atr", 0, 0, 0, retrieve_atr}, 111 {"atr", 0, 0, 0, retrieve_atr},
112 {"bfsearch", 1, 8, 1, cmd_bfsearch},
111 {"cd", 1, 1, 0, cmd_cd}, 113 {"cd", 1, 1, 0, cmd_cd},
112 {"change-chv1", 2, 2, 0, cmd_change_chv}, 114 {"change-chv1", 2, 2, 0, cmd_change_chv},
113 {"change-chv2", 2, 2, 0, cmd_change_chv}, 115 {"change-chv2", 2, 2, 0, cmd_change_chv},
114 {"change-pin1", 2, 2, 0, cmd_change_chv}, 116 {"change-pin1", 2, 2, 0, cmd_change_chv},
115 {"change-pin2", 2, 2, 0, cmd_change_chv}, 117 {"change-pin2", 2, 2, 0, cmd_change_chv},