aboutsummaryrefslogtreecommitdiffstats
path: root/pySim-shell.py
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2024-01-31 19:32:25 +0100
committerHarald Welte <laforge@osmocom.org>2024-02-01 12:06:07 +0100
commiteecef54eee90b2cffc3c73d76648673c4aa3c727 (patch)
tree6d57edeb1360d76fe695f342653d5a5bb1c29f8e /pySim-shell.py
parent5918345c780cb7561643e0c86ca03cf3edf49068 (diff)
commands.py: Wrap the transport send_apdu* methods
Let's not have higher level code directly call the transports send_apdu* methods. We do this as a precursor to introducing secure channel support, where the secure channel driver would add MAC and/or encrypt APDUs before they are sent to the transport. Change-Id: I1b870140959aa8241cda2246e74576390123cb2d
Diffstat (limited to 'pySim-shell.py')
-rwxr-xr-xpySim-shell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pySim-shell.py b/pySim-shell.py
index 5b80588..70eaee2 100755
--- a/pySim-shell.py
+++ b/pySim-shell.py
@@ -245,7 +245,7 @@ Online manual available at https://downloads.osmocom.org/docs/pysim/master/html/
# noted that the apdu command plays an exceptional role since it is the only card accessing command that
# can be executed without the presence of a runtime state (self.rs) object. However, this also means that
# self.lchan is also not present (see method equip).
- data, sw = self.card._scc._tp.send_apdu(opts.APDU)
+ data, sw = self.card._scc.send_apdu(opts.APDU)
if data:
self.poutput("SW: %s, RESP: %s" % (sw, data))
else: