FreeCalypso > hg > fc-pcsc-tools
comparison simtool/dispatch.c @ 74:8562d8508cf2
grcard2-set-{adm,super}-hex commands implemented
It appears that GrcardSIM2 cards allow arbitrary 64-bit keys
for ADM and SUPER ADM, not necessarily consisting of ASCII digits
like the specs require for standard PIN and PUK, and pySim-prog.py
in fact sets the ADM key to 4444444444444444 in hex by default,
which is not an ASCII digit string. If the cards allow such keys,
we need to support them too.
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Tue, 16 Feb 2021 04:10:36 +0000 |
| parents | 105aa3d1a494 |
| children | 0b29c0d19db4 |
comparison
equal
deleted
inserted
replaced
| 73:a56bbd6b0277 | 74:8562d8508cf2 |
|---|---|
| 17 extern int cmd_fix_sysmo_msisdn(); | 17 extern int cmd_fix_sysmo_msisdn(); |
| 18 extern int cmd_grcard1_set_adm(); | 18 extern int cmd_grcard1_set_adm(); |
| 19 extern int cmd_grcard1_set_ki(); | 19 extern int cmd_grcard1_set_ki(); |
| 20 extern int cmd_grcard1_set_pin(); | 20 extern int cmd_grcard1_set_pin(); |
| 21 extern int cmd_grcard2_set_adm(); | 21 extern int cmd_grcard2_set_adm(); |
| 22 extern int cmd_grcard2_set_adm_hex(); | |
| 22 extern int cmd_grcard2_set_pin(); | 23 extern int cmd_grcard2_set_pin(); |
| 23 extern int cmd_grcard2_set_puk(); | 24 extern int cmd_grcard2_set_puk(); |
| 24 extern int cmd_grcard2_set_super(); | 25 extern int cmd_grcard2_set_super(); |
| 26 extern int cmd_grcard2_set_super_hex(); | |
| 25 extern int cmd_iccid(); | 27 extern int cmd_iccid(); |
| 26 extern int cmd_imsi(); | 28 extern int cmd_imsi(); |
| 27 extern int cmd_opl_dump(); | 29 extern int cmd_opl_dump(); |
| 28 extern int cmd_pb_dump(); | 30 extern int cmd_pb_dump(); |
| 29 extern int cmd_pb_dump_rec(); | 31 extern int cmd_pb_dump_rec(); |
| 99 {"grcard1-set-adm2", 2, 2, cmd_grcard1_set_adm}, | 101 {"grcard1-set-adm2", 2, 2, cmd_grcard1_set_adm}, |
| 100 {"grcard1-set-ki", 1, 1, cmd_grcard1_set_ki}, | 102 {"grcard1-set-ki", 1, 1, cmd_grcard1_set_ki}, |
| 101 {"grcard1-set-pin1", 2, 2, cmd_grcard1_set_pin}, | 103 {"grcard1-set-pin1", 2, 2, cmd_grcard1_set_pin}, |
| 102 {"grcard1-set-pin2", 2, 2, cmd_grcard1_set_pin}, | 104 {"grcard1-set-pin2", 2, 2, cmd_grcard1_set_pin}, |
| 103 {"grcard2-set-adm", 1, 1, cmd_grcard2_set_adm}, | 105 {"grcard2-set-adm", 1, 1, cmd_grcard2_set_adm}, |
| 106 {"grcard2-set-adm-hex", 1, 1, cmd_grcard2_set_adm_hex}, | |
| 104 {"grcard2-set-pin1", 1, 1, cmd_grcard2_set_pin}, | 107 {"grcard2-set-pin1", 1, 1, cmd_grcard2_set_pin}, |
| 105 {"grcard2-set-pin2", 1, 1, cmd_grcard2_set_pin}, | 108 {"grcard2-set-pin2", 1, 1, cmd_grcard2_set_pin}, |
| 106 {"grcard2-set-puk1", 1, 1, cmd_grcard2_set_puk}, | 109 {"grcard2-set-puk1", 1, 1, cmd_grcard2_set_puk}, |
| 107 {"grcard2-set-puk2", 1, 1, cmd_grcard2_set_puk}, | 110 {"grcard2-set-puk2", 1, 1, cmd_grcard2_set_puk}, |
| 108 {"grcard2-set-super", 1, 1, cmd_grcard2_set_super}, | 111 {"grcard2-set-super", 1, 1, cmd_grcard2_set_super}, |
| 112 {"grcard2-set-super-hex", 1, 1, cmd_grcard2_set_super_hex}, | |
| 109 {"iccid", 0, 0, cmd_iccid}, | 113 {"iccid", 0, 0, cmd_iccid}, |
| 110 {"imsi", 0, 0, cmd_imsi}, | 114 {"imsi", 0, 0, cmd_imsi}, |
| 111 {"opl-dump", 0, 0, cmd_opl_dump}, | 115 {"opl-dump", 0, 0, cmd_opl_dump}, |
| 112 {"pb-dump", 1, 2, cmd_pb_dump}, | 116 {"pb-dump", 1, 2, cmd_pb_dump}, |
| 113 {"pb-dump-rec", 2, 3, cmd_pb_dump_rec}, | 117 {"pb-dump-rec", 2, 3, cmd_pb_dump_rec}, |
