diff options
author | Harald Welte <laforge@osmocom.org> | 2021-04-10 18:17:55 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2021-04-11 12:20:29 +0200 |
commit | a463161ae22bb111dcc8c9fc8a9b17a78f6a3121 (patch) | |
tree | 4e2158ed94a91d42e3f940d72062609a9f9000d1 /pySim-shell.py | |
parent | 15fae98d2eb18fd27fc12de4df7a28897c9188c8 (diff) |
pySim-shell: Adds support for DEACTIVATE FILE + ACTIVATE FILE
Change-Id: I22207dde20f991b0a22dea8f5dd695a0ec99da33
Diffstat (limited to 'pySim-shell.py')
-rwxr-xr-x | pySim-shell.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pySim-shell.py b/pySim-shell.py index cfba73f..b2ccb9a 100755 --- a/pySim-shell.py +++ b/pySim-shell.py @@ -403,6 +403,15 @@ class Iso7816Commands(CommandSet): (data, sw) = self._cmd.card._scc.enable_chv(opts.pin_nr, h2b(pin)) self._cmd.poutput("CHV enable successful") + def do_deactivate_file(self, opts): + """Deactivate the current EF""" + fid = self._cmd.rs.selected_file.fid + (data, sw) = self._cmd.card._scc.deactivate_file(fid) + + def do_activate_file(self, opts): + """Activate the current EF""" + fid = self._cmd.rs.selected_file.fid + (data, sw) = self._cmd.card._scc.activate_file(fid) def parse_options(): |