mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-24 17:28:32 +03:00
ccid_raw.py: removed test functions calls
This commit is contained in:
@@ -85,19 +85,11 @@ def disconnect_card(hcard):
|
|||||||
def do_intercept(cmd, dwActiveProtocol):
|
def do_intercept(cmd, dwActiveProtocol):
|
||||||
return send_receive_cmd(cmd, hcard, dwActiveProtocol)
|
return send_receive_cmd(cmd, hcard, dwActiveProtocol)
|
||||||
|
|
||||||
def init():
|
def ccid_raw_init():
|
||||||
(hcontext, reader) = establish_context()
|
(hcontext, reader) = establish_context()
|
||||||
hresult, hcard, dwActiveProtocol = connect_to_card(hcontext, reader)
|
hresult, hcard, dwActiveProtocol = connect_to_card(hcontext, reader)
|
||||||
return hcard, hcontext, dwActiveProtocol
|
return hcard, hcontext, dwActiveProtocol
|
||||||
|
|
||||||
def exit(hcard, hcontext):
|
def ccid_raw_exit(hcard, hcontext):
|
||||||
disconnect_card(hcard)
|
disconnect_card(hcard)
|
||||||
release_context(hcontext)
|
release_context(hcontext)
|
||||||
|
|
||||||
hcard, hcontext, dwActiveProtocol = init()
|
|
||||||
|
|
||||||
do_intercept(CMD_SEL_ROOT, dwActiveProtocol)
|
|
||||||
do_intercept(CMD_SEL_FILE, dwActiveProtocol)
|
|
||||||
do_intercept(CMD_GET_DATA, dwActiveProtocol)
|
|
||||||
|
|
||||||
exit(hcard, hcontext)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user