From 40408740edce4558d2249b31a36e2c7a81045797 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Sat, 23 Jul 2016 13:59:58 +0200 Subject: Check HOTP writing feedback Signed-off-by: Szczepan Zalega --- build/test.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'build') diff --git a/build/test.py b/build/test.py index 195894f..b3d9ea7 100644 --- a/build/test.py +++ b/build/test.py @@ -17,12 +17,16 @@ for declaration in declarations: C = ffi.dlopen("./libnitrokey.so") if __name__ == "__main__": - C.NK_set_debug(False) + # C.NK_set_debug(False) C.NK_set_debug(True) a = C.NK_login('12345678', '123123123') # a = C.NK_logout() print(a) - C.NK_set_debug(False) + # C.NK_set_debug(False) + + a = C.NK_write_hotp_slot(1, 'python_test', '12345678901234567890', 0, 'faketemppass') + print(a) + exit() # print(''.center(40, '#')) print(ffi.string(C.NK_status())) -- cgit v1.2.3