mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-11-08 22:13:10 +03:00
ccid_raw.py: main function with test functions
This commit is contained in:
1 parent
3041854872
commit
097b21849f
1 file changed
+8
@@ -93,3 +93,11 @@ def ccid_raw_init():
|
||||
def ccid_raw_exit(hcard, hcontext):
|
||||
disconnect_card(hcard)
|
||||
release_context(hcontext)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
hcard, hcontext, dwActiveProtocol = ccid_raw_init()
|
||||
do_intercept(CMD_SEL_ROOT, dwActiveProtocol)
|
||||
do_intercept(CMD_SEL_FILE, dwActiveProtocol)
|
||||
do_intercept(CMD_GET_DATA, dwActiveProtocol)
|
||||
ccid_raw_exit()
|
||||
Reference in new issue
Block a user