FreeCalypso > hg > fc-pcsc-tools
comparison uicc/dispatch.c @ 139:c13ed9194ecd
fc-uicc-tool create-file implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 24 Feb 2021 17:08:37 +0000 |
parents | 58406ead2497 |
children | 13ab44761ea6 |
comparison
equal
deleted
inserted
replaced
138:58406ead2497 | 139:c13ed9194ecd |
---|---|
9 #include <stdlib.h> | 9 #include <stdlib.h> |
10 | 10 |
11 extern int cmd_apdu(); | 11 extern int cmd_apdu(); |
12 extern int cmd_cd(); | 12 extern int cmd_cd(); |
13 extern int cmd_change_pin(); | 13 extern int cmd_change_pin(); |
14 extern int cmd_create_file(); | |
14 extern int cmd_dir(); | 15 extern int cmd_dir(); |
15 extern int cmd_disable_pin(); | 16 extern int cmd_disable_pin(); |
16 extern int cmd_enable_pin(); | 17 extern int cmd_enable_pin(); |
17 extern int cmd_exec(); | 18 extern int cmd_exec(); |
18 extern int cmd_iccid(); | 19 extern int cmd_iccid(); |
45 } cmdtab[] = { | 46 } cmdtab[] = { |
46 {"apdu", 1, 1, 0, cmd_apdu}, | 47 {"apdu", 1, 1, 0, cmd_apdu}, |
47 {"atr", 0, 0, 0, retrieve_atr}, | 48 {"atr", 0, 0, 0, retrieve_atr}, |
48 {"cd", 1, 1, 0, cmd_cd}, | 49 {"cd", 1, 1, 0, cmd_cd}, |
49 {"change-pin", 3, 3, 0, cmd_change_pin}, | 50 {"change-pin", 3, 3, 0, cmd_change_pin}, |
51 {"create-file", 1, 1, 0, cmd_create_file}, | |
50 {"dir", 0, 0, 1, cmd_dir}, | 52 {"dir", 0, 0, 1, cmd_dir}, |
51 {"disable-pin", 2, 2, 0, cmd_disable_pin}, | 53 {"disable-pin", 2, 2, 0, cmd_disable_pin}, |
52 {"enable-pin", 2, 2, 0, cmd_enable_pin}, | 54 {"enable-pin", 2, 2, 0, cmd_enable_pin}, |
53 {"exec", 1, 1, 0, cmd_exec}, | 55 {"exec", 1, 1, 0, cmd_exec}, |
54 {"exit", 0, 0, 0, good_exit}, | 56 {"exit", 0, 0, 0, good_exit}, |