diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2010-12-23 20:28:58 +0100 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2010-12-23 20:28:58 +0100 |
commit | 530076ebbad71b2026ea1b5924f691ce7e8bcffc (patch) | |
tree | 4ee149678a36e8566a0d21cc5542204c8f8c13a9 | |
parent | 9f120e01696e05cfc5b5603deed60c073b9bee64 (diff) |
commands: Fix bug in verify_chv.
Didn't get adapted properly to support several transports ...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rw-r--r-- | pySim/commands.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pySim/commands.py b/pySim/commands.py index 5842676..0e449e6 100644 --- a/pySim/commands.py +++ b/pySim/commands.py @@ -22,6 +22,8 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # +from pySim.utils import rpad, b2h + class SimCardCommands(object): def __init__(self, transport): @@ -90,4 +92,4 @@ class SimCardCommands(object): def verify_chv(self, chv_no, code): fc = rpad(b2h(code), 16) - return self.send_apdu('a02000' + ('%02x' % chv_no) + '08' + fc) + return self._tp.send_apdu('a02000' + ('%02x' % chv_no) + '08' + fc) |