aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-03-22 10:30:10 +0100
committerlaforge <laforge@osmocom.org>2020-05-05 19:41:12 +0000
commit3a6bedf1e5f8ef32243e86fa753c6433a22b936d (patch)
treef3513008790744f016d50454f10f9c566f0d3c0e /utils
parentc9eab828ea4a9f508a013cf5cc1e0384a0e62e4c (diff)
sim: When decoding SW, take application specific SW into account
So far we only looked at SW definitions of the card profile. However, if we have a currently selected application, we also must check that application for SW definitions. This breaks ABI and API all over the place, but as there are no known users beyond osmo-sim-test, this is acceptable. Change-Id: I3a1d60898529c173f73587e34c155660ba5f5fb1
Diffstat (limited to 'utils')
-rw-r--r--utils/osmo-sim-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/osmo-sim-test.c b/utils/osmo-sim-test.c
index cf423c49..ae55b83e 100644
--- a/utils/osmo-sim-test.c
+++ b/utils/osmo-sim-test.c
@@ -411,7 +411,7 @@ static int dump_file(struct osim_chan_hdl *chan, const char *short_name, uint16_
fclose(f_data);
return -EIO;
}
- printf("SW: %s\n", osim_print_sw(chan->card, msgb_apdu_sw(msg)));
+ printf("SW: %s\n", osim_print_sw(chan, msgb_apdu_sw(msg)));
hex = osmo_hexdump_nospc(msgb_apdu_de(rmsg), msgb_apdu_le(rmsg));
printf("Rec %03u: %s\n", i+1, hex);
@@ -593,7 +593,7 @@ static void iterate_apps(struct osim_chan_hdl *chan)
osmo_hexdump_nospc(cah->aid, cah->aid_len));
continue;
}
- printf("SW: %s\n", osim_print_sw(chan->card, msgb_apdu_sw(msg)));
+ printf("SW: %s\n", osim_print_sw(chan, msgb_apdu_sw(msg)));
chan->cur_app = cah;
chan->cwd = cap->adf;