summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-09-10 10:49:59 +0200
committerHarald Welte <laforge@gnumonks.org>2014-10-26 19:09:22 +0100
commitad41863b8d3f3ac7df0c34b2c7d342b864d944cc (patch)
treed8c28dce9b084dccc01b942e3fa3a69e927a7dbb /utils
parenta0ba4d943816a10e78984d8bbca56fbdbdfe82bb (diff)
sim: add copyright notices and merge file_codec.c into core.c
Diffstat (limited to 'utils')
-rw-r--r--utils/osmo-sim-test.c29
1 files changed, 23 insertions, 6 deletions
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 <laforge@gnumonks.org>
+ * 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 <stdio.h>
#include <stdlib.h>
#include <errno.h>
@@ -9,10 +29,7 @@
#include <osmocom/gsm/tlv.h>
-
-
-
-
+/* 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);
}