comparison simtool/cmdtab.c @ 57:bccf028921bb

apdu-checksw command added to both fc-simtool and fc-uicc-tool
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 22 Mar 2021 23:58:11 +0000
parents c83ec3bd9d67
children 3d9c50880ae7
comparison
equal deleted inserted replaced
56:b9fc7022f9ac 57:bccf028921bb
4 4
5 #include "cmdtab.h" 5 #include "cmdtab.h"
6 6
7 extern int cmd_a38(); 7 extern int cmd_a38();
8 extern int cmd_apdu(); 8 extern int cmd_apdu();
9 extern int cmd_apdu_checksw();
9 extern int cmd_atr(); 10 extern int cmd_atr();
10 extern int cmd_bfsearch(); 11 extern int cmd_bfsearch();
11 extern int cmd_bfsearch_full(); 12 extern int cmd_bfsearch_full();
12 extern int cmd_cd(); 13 extern int cmd_cd();
13 extern int cmd_change_chv(); 14 extern int cmd_change_chv();
122 extern int current_ef_rehab(); 123 extern int current_ef_rehab();
123 124
124 struct cmdtab cmdtab[] = { 125 struct cmdtab cmdtab[] = {
125 {"a38", 1, 1, 1, cmd_a38}, 126 {"a38", 1, 1, 1, cmd_a38},
126 {"apdu", 1, 1, 0, cmd_apdu}, 127 {"apdu", 1, 1, 0, cmd_apdu},
128 {"apdu-checksw", 2, 2, 0, cmd_apdu_checksw},
127 {"atr", 0, 0, 0, cmd_atr}, 129 {"atr", 0, 0, 0, cmd_atr},
128 {"bfsearch", 1, 18, 1, cmd_bfsearch}, 130 {"bfsearch", 1, 18, 1, cmd_bfsearch},
129 {"bfsearch-full", 0, 0, 1, cmd_bfsearch_full}, 131 {"bfsearch-full", 0, 0, 1, cmd_bfsearch_full},
130 {"bfsearch-mf", 0, 0, 1, cmd_bfsearch_full}, 132 {"bfsearch-mf", 0, 0, 1, cmd_bfsearch_full},
131 {"cd", 1, 1, 0, cmd_cd}, 133 {"cd", 1, 1, 0, cmd_cd},