changeset 29:d368051576d0

fc-simtool & fc-uicc-tool: add explicit atr command
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 12 Feb 2021 16:19:11 +0000
parents 78f93e3c9ebf
children 84d1c31d0fad
files simtool/dispatch.c uicc/dispatch.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/simtool/dispatch.c	Fri Feb 12 16:14:53 2021 +0000
+++ b/simtool/dispatch.c	Fri Feb 12 16:19:11 2021 +0000
@@ -50,6 +50,7 @@
 
 extern int display_sim_resp_in_hex();
 extern int good_exit();
+extern int retrieve_atr();
 
 static struct cmdtab {
 	char *cmd;
@@ -58,6 +59,7 @@
 	int (*func)();
 } cmdtab[] = {
 	{"a38", 1, 1, cmd_a38},
+	{"atr", 0, 0, retrieve_atr},
 	{"change-chv1", 2, 2, cmd_change_chv},
 	{"change-chv2", 2, 2, cmd_change_chv},
 	{"change-pin1", 2, 2, cmd_change_chv},
--- a/uicc/dispatch.c	Fri Feb 12 16:14:53 2021 +0000
+++ b/uicc/dispatch.c	Fri Feb 12 16:19:11 2021 +0000
@@ -24,6 +24,7 @@
 
 extern int display_sim_resp_in_hex();
 extern int good_exit();
+extern int retrieve_atr();
 
 static struct cmdtab {
 	char *cmd;
@@ -31,6 +32,7 @@
 	int maxargs;
 	int (*func)();
 } cmdtab[] = {
+	{"atr", 0, 0, retrieve_atr},
 	{"dir", 0, 0, cmd_dir},
 	{"exec", 1, 1, cmd_exec},
 	{"exit", 0, 0, good_exit},