diff uicc/dispatch.c @ 107:f1836c8d36cb

hexdump output commands reworked to support redirection
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 19 Feb 2021 06:43:01 +0000
parents dcfec53643c5
children 5d45cde6e4b2
line wrap: on
line diff
--- a/uicc/dispatch.c	Fri Feb 19 06:24:06 2021 +0000
+++ b/uicc/dispatch.c	Fri Feb 19 06:43:01 2021 +0000
@@ -18,11 +18,11 @@
 extern int cmd_select_aid();
 extern int cmd_select_isim();
 extern int cmd_select_usim();
+extern int cmd_sim_resp();
 extern int cmd_update_bin();
 extern int cmd_update_bin_imm();
 extern int cmd_update_rec();
 
-extern int display_sim_resp_in_hex();
 extern int good_exit();
 extern int retrieve_atr();
 
@@ -39,14 +39,14 @@
 	{"exit", 0, 0, 0, good_exit},
 	{"iccid", 0, 0, 0, cmd_iccid},
 	{"quit", 0, 0, 0, good_exit},
-	{"readbin", 2, 2, 0, cmd_readbin},
-	{"readef", 1, 1, 0, cmd_readef},
-	{"readrec", 1, 2, 0, cmd_readrec},
+	{"readbin", 2, 2, 1, cmd_readbin},
+	{"readef", 1, 1, 1, cmd_readef},
+	{"readrec", 1, 2, 1, cmd_readrec},
 	{"select", 1, 1, 0, cmd_select},
 	{"select-aid", 1, 1, 0, cmd_select_aid},
 	{"select-isim", 0, 0, 0, cmd_select_isim},
 	{"select-usim", 0, 0, 0, cmd_select_usim},
-	{"sim-resp", 0, 0, 0, display_sim_resp_in_hex},
+	{"sim-resp", 0, 0, 1, cmd_sim_resp},
 	{"update-bin", 2, 2, 0, cmd_update_bin},
 	{"update-bin-imm", 2, 2, 0, cmd_update_bin_imm},
 	{"update-rec", 2, 2, 0, cmd_update_rec},