summaryrefslogtreecommitdiffstats
path: root/utils/osmo-sim-test.c
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-06-18 11:12:26 +0200
committerHarald Welte <laforge@gnumonks.org>2017-06-22 18:14:18 +0000
commitffa41ca6654178050bd3c150b9bb5e2a4375c30d (patch)
tree97eea5cb1384dc8a1472f6f153b6c1e4de0b9f98 /utils/osmo-sim-test.c
parent4f8857e50a9df027fab39d42e70acf84be374356 (diff)
osmo-sim-test.c: Remove unused functions
Change-Id: I3060cfee8ece86c4c89a65f93c9f5424df0c410b
Diffstat (limited to 'utils/osmo-sim-test.c')
-rw-r--r--utils/osmo-sim-test.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/utils/osmo-sim-test.c b/utils/osmo-sim-test.c
index d5e932eb..ea241206 100644
--- a/utils/osmo-sim-test.c
+++ b/utils/osmo-sim-test.c
@@ -91,22 +91,6 @@ static struct msgb *read_record_nr(struct osim_chan_hdl *st, uint8_t rec_nr, uin
return msg;
}
-/* 11.1.6 */
-static struct msgb *update_record_nr(struct osim_chan_hdl *st, uint8_t rec_nr,
- const uint8_t *data, uint16_t rec_size)
-{
- struct msgb *msg;
- uint8_t *cur;
-
- msg = osim_new_apdumsg(0x00, 0xDC, rec_nr, 0x04, rec_size, 0);
- cur = msgb_put(msg, rec_size);
- memcpy(cur, data, rec_size);
-
- osim_transceive_apdu(st, msg);
-
- return msg;
-}
-
/* 11.1.3 */
static struct msgb *read_binary(struct osim_chan_hdl *st, uint16_t offset, uint16_t len)
{
@@ -122,27 +106,6 @@ static struct msgb *read_binary(struct osim_chan_hdl *st, uint16_t offset, uint1
return msg;
}
-/* 11.1.4 */
-static struct msgb *update_binary(struct osim_chan_hdl *st, uint16_t offset,
- const uint8_t *data, uint16_t len)
-{
- struct msgb *msg;
- uint8_t *cur;
-
- if (offset > 0x7fff || len > 256)
- return NULL;
-
- msg = osim_new_apdumsg(0x00, 0xD6, offset >> 8, offset & 0xff, len & 0xff, 0);
- cur = msgb_put(msg, len);
- memcpy(cur, data, len);
-
- osim_transceive_apdu(st, msg);
-
- return msg;
-}
-
-
-
static int dump_fcp_template(struct tlv_parsed *tp)
{
int i;