FreeCalypso > hg > freecalypso-hwlab
diff simtool/dispatch.c @ 108:6f80cfdc7e05
fc-simtool: CHV commands implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 26 Jan 2021 00:51:59 +0000 |
parents | a60645b75a57 |
children | 4aaf722ab933 |
line wrap: on
line diff
--- a/simtool/dispatch.c Mon Jan 25 21:15:42 2021 +0000 +++ b/simtool/dispatch.c Tue Jan 26 00:51:59 2021 +0000 @@ -12,6 +12,9 @@ #include <winscard.h> #include "globals.h" +extern int cmd_change_chv(); +extern int cmd_disable_chv(); +extern int cmd_enable_chv(); extern int cmd_iccid(); extern int cmd_imsi(); extern int cmd_pb_dump(); @@ -23,8 +26,10 @@ extern int cmd_select(); extern int cmd_spn(); extern int cmd_telecom_sum(); +extern int cmd_unblock_chv(); extern int cmd_update_bin(); extern int cmd_update_rec(); +extern int cmd_verify_chv(); extern int display_sim_resp_in_hex(); @@ -41,6 +46,14 @@ int maxargs; int (*func)(); } cmdtab[] = { + {"change-chv1", 2, 2, cmd_change_chv}, + {"change-chv2", 2, 2, cmd_change_chv}, + {"change-pin1", 2, 2, cmd_change_chv}, + {"change-pin2", 2, 2, cmd_change_chv}, + {"disable-chv", 1, 1, cmd_disable_chv}, + {"disable-pin", 1, 1, cmd_disable_chv}, + {"enable-chv", 1, 1, cmd_enable_chv}, + {"enable-pin", 1, 1, cmd_enable_chv}, {"exit", 0, 0, cmd_exit}, {"iccid", 0, 0, cmd_iccid}, {"imsi", 0, 0, cmd_imsi}, @@ -55,8 +68,16 @@ {"sim-resp", 0, 0, display_sim_resp_in_hex}, {"spn", 0, 0, cmd_spn}, {"telecom-sum", 0, 0, cmd_telecom_sum}, + {"unblock-chv1", 2, 2, cmd_unblock_chv}, + {"unblock-chv2", 2, 2, cmd_unblock_chv}, + {"unblock-pin1", 2, 2, cmd_unblock_chv}, + {"unblock-pin2", 2, 2, cmd_unblock_chv}, {"update-bin", 2, 2, cmd_update_bin}, {"update-rec", 2, 2, cmd_update_rec}, + {"verify-chv1", 1, 1, cmd_verify_chv}, + {"verify-chv2", 1, 1, cmd_verify_chv}, + {"verify-pin1", 1, 1, cmd_verify_chv}, + {"verify-pin2", 1, 1, cmd_verify_chv}, {0, 0, 0, 0} };