summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-07-23 13:59:58 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-01 13:54:56 +0200
commit40408740edce4558d2249b31a36e2c7a81045797 (patch)
tree66c6b302e5baa13565b1b1d0f70b3c38c21a53cb
parent5f810ef8c790a3a39f0759b0ff39458db320bc43 (diff)
downloadlibnitrokey-40408740edce4558d2249b31a36e2c7a81045797.tar.gz
libnitrokey-40408740edce4558d2249b31a36e2c7a81045797.tar.bz2
Check HOTP writing feedback
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--build/test.py8
1 files changed, 6 insertions, 2 deletions
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()))