mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-25 17:58:32 +03:00
ccid_raw.py: main function with test functions
This commit is contained in:
@@ -93,3 +93,11 @@ def ccid_raw_init():
|
|||||||
def ccid_raw_exit(hcard, hcontext):
|
def ccid_raw_exit(hcard, hcontext):
|
||||||
disconnect_card(hcard)
|
disconnect_card(hcard)
|
||||||
release_context(hcontext)
|
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