comparison simtool/dispatch.c @ 149:26d7a8815515

fc-simtool bfsearch-full implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 25 Feb 2021 07:28:34 +0000
parents dcbabc398c6a
children 6d93a51f01dc
comparison
equal deleted inserted replaced
148:db43bc57ecf7 149:26d7a8815515
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_bfsearch();
14 extern int cmd_bfsearch_full();
14 extern int cmd_cd(); 15 extern int cmd_cd();
15 extern int cmd_change_chv(); 16 extern int cmd_change_chv();
16 extern int cmd_disable_chv(); 17 extern int cmd_disable_chv();
17 extern int cmd_enable_chv(); 18 extern int cmd_enable_chv();
18 extern int cmd_envelope(); 19 extern int cmd_envelope();
108 } cmdtab[] = { 109 } cmdtab[] = {
109 {"a38", 1, 1, 1, cmd_a38}, 110 {"a38", 1, 1, 1, cmd_a38},
110 {"apdu", 1, 1, 0, cmd_apdu}, 111 {"apdu", 1, 1, 0, cmd_apdu},
111 {"atr", 0, 0, 0, retrieve_atr}, 112 {"atr", 0, 0, 0, retrieve_atr},
112 {"bfsearch", 1, 18, 1, cmd_bfsearch}, 113 {"bfsearch", 1, 18, 1, cmd_bfsearch},
114 {"bfsearch-full", 0, 0, 1, cmd_bfsearch_full},
113 {"cd", 1, 1, 0, cmd_cd}, 115 {"cd", 1, 1, 0, cmd_cd},
114 {"change-chv1", 2, 2, 0, cmd_change_chv}, 116 {"change-chv1", 2, 2, 0, cmd_change_chv},
115 {"change-chv2", 2, 2, 0, cmd_change_chv}, 117 {"change-chv2", 2, 2, 0, cmd_change_chv},
116 {"change-pin1", 2, 2, 0, cmd_change_chv}, 118 {"change-pin1", 2, 2, 0, cmd_change_chv},
117 {"change-pin2", 2, 2, 0, cmd_change_chv}, 119 {"change-pin2", 2, 2, 0, cmd_change_chv},