mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-04-01 13:44:39 +03:00
Add command to submit the CHV (pin code)
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
5
pySim.py
5
pySim.py
@@ -416,6 +416,11 @@ class SimCardCommands(object):
|
|||||||
|
|
||||||
def reset_card(self):
|
def reset_card(self):
|
||||||
return self._tp.reset_card()
|
return self._tp.reset_card()
|
||||||
|
|
||||||
|
def verify_chv(self, chv_no, code):
|
||||||
|
fc = rpad(b2h(code), 16)
|
||||||
|
return self.send_apdu('a02000' + ('%02x' % chv_no) + '08' + fc)
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user