FreeCalypso > hg > fc-pcsc-tools
comparison uicc/dispatch.c @ 121:8e70ee7c194f
fc-simtool & fc-uicc-tool: raw apdu command implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 20 Feb 2021 00:48:22 +0000 |
parents | a98992e9fe82 |
children | ede661d78730 |
comparison
equal
deleted
inserted
replaced
120:a98992e9fe82 | 121:8e70ee7c194f |
---|---|
6 #include <stdio.h> | 6 #include <stdio.h> |
7 #include <string.h> | 7 #include <string.h> |
8 #include <strings.h> | 8 #include <strings.h> |
9 #include <stdlib.h> | 9 #include <stdlib.h> |
10 | 10 |
11 extern int cmd_apdu(); | |
11 extern int cmd_change_pin(); | 12 extern int cmd_change_pin(); |
12 extern int cmd_dir(); | 13 extern int cmd_dir(); |
13 extern int cmd_disable_pin(); | 14 extern int cmd_disable_pin(); |
14 extern int cmd_enable_pin(); | 15 extern int cmd_enable_pin(); |
15 extern int cmd_exec(); | 16 extern int cmd_exec(); |
39 int minargs; | 40 int minargs; |
40 int maxargs; | 41 int maxargs; |
41 int allow_redir; | 42 int allow_redir; |
42 int (*func)(); | 43 int (*func)(); |
43 } cmdtab[] = { | 44 } cmdtab[] = { |
45 {"apdu", 1, 1, 0, cmd_apdu}, | |
44 {"atr", 0, 0, 0, retrieve_atr}, | 46 {"atr", 0, 0, 0, retrieve_atr}, |
45 {"change-pin", 3, 3, 0, cmd_change_pin}, | 47 {"change-pin", 3, 3, 0, cmd_change_pin}, |
46 {"dir", 0, 0, 1, cmd_dir}, | 48 {"dir", 0, 0, 1, cmd_dir}, |
47 {"disable-pin", 2, 2, 0, cmd_disable_pin}, | 49 {"disable-pin", 2, 2, 0, cmd_disable_pin}, |
48 {"enable-pin", 2, 2, 0, cmd_enable_pin}, | 50 {"enable-pin", 2, 2, 0, cmd_enable_pin}, |