runtime: Introduce an 'identity' dict for things like ATR, ICCID, EID

This patch introduces the dict, as well as its first use for ATR storage

Change-Id: Ief5ceaf5afe82800e33da233573293527befd2f4
This commit is contained in:
Harald Welte
2024-05-25 10:36:07 +02:00
parent 3ba10b61e1
commit f47433863e
2 changed files with 6 additions and 1 deletions

View File

@@ -761,7 +761,7 @@ Currently only ADM1 is supported."""
"""Display information about the currently inserted card"""
self._cmd.poutput("Card info:")
self._cmd.poutput(" Name: %s" % self._cmd.card.name)
self._cmd.poutput(" ATR: %s" % b2h(self._cmd.lchan.scc.get_atr()))
self._cmd.poutput(" ATR: %s" % self._cmd.rs.identity['ATR'])
self._cmd.poutput(" ICCID: %s" % self._cmd.iccid)
self._cmd.poutput(" Class-Byte: %s" % self._cmd.lchan.scc.cla_byte)
self._cmd.poutput(" Select-Ctrl: %s" % self._cmd.lchan.scc.sel_ctrl)