From ad41863b8d3f3ac7df0c34b2c7d342b864d944cc Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 10 Sep 2012 10:49:59 +0200 Subject: sim: add copyright notices and merge file_codec.c into core.c --- utils/osmo-sim-test.c | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) (limited to 'utils') diff --git a/utils/osmo-sim-test.c b/utils/osmo-sim-test.c index 4cd8b05e..f7dc48d8 100644 --- a/utils/osmo-sim-test.c +++ b/utils/osmo-sim-test.c @@ -1,3 +1,23 @@ +/* libosmosim test application - currently simply dumps a USIM */ +/* (C) 2012 by Harald Welte + * All Rights Reserved + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + */ + #include #include #include @@ -9,10 +29,7 @@ #include - - - - +/* FIXME: this needs to be moved to card_fs_uicc.c */ /* 11.1.1 */ static struct msgb *_select_file(struct osim_chan_hdl *st, uint8_t p1, uint8_t p2, @@ -126,6 +143,8 @@ static struct msgb *update_binary(struct osim_chan_hdl *st, uint16_t offset, return msg; } + + static int dump_fcp_template(struct tlv_parsed *tp) { int i; @@ -379,7 +398,6 @@ int main(int argc, char **argv) dump_fcp_template_msg(msg); msgb_free(msg); -#if 1 { struct osim_file_desc *ofd; llist_for_each_entry(ofd, &chan->cwd->child_list, list) { @@ -393,7 +411,6 @@ int main(int argc, char **argv) dump_file(chan, ofd->fid); } } -#endif exit(0); } -- cgit v1.2.3