summaryrefslogtreecommitdiff
path: root/NK_C_API.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-10-10 15:54:43 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2017-10-10 18:05:15 +0200
commitcf7110f02f793c791b7227bf1579eaaa81d3fd30 (patch)
treeef57c33ee67c015885402ce9bde62f695541b92e /NK_C_API.cc
parent84f8f634584e22a557bf50f077fb15967311908d (diff)
downloadlibnitrokey-cf7110f02f793c791b7227bf1579eaaa81d3fd30.tar.gz
libnitrokey-cf7110f02f793c791b7227bf1579eaaa81d3fd30.tar.bz2
Add DEBUG_L1 level and set it as default for Python tests
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r--NK_C_API.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/NK_C_API.cc b/NK_C_API.cc
index 822c95d..e730bae 100644
--- a/NK_C_API.cc
+++ b/NK_C_API.cc
@@ -296,6 +296,12 @@ extern "C" {
m->set_debug(state);
}
+
+ NK_C_API void NK_set_debug_level(const int level) {
+ auto m = NitrokeyManager::instance();
+ m->set_loglevel(level);
+ }
+
NK_C_API int NK_totp_set_time(uint64_t time) {
auto m = NitrokeyManager::instance();
return get_without_result([&]() {