From 9a4e5a3e0161ea2d0d72d371439ee44b8b137489 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Tue, 19 Jun 2018 19:54:08 +0200 Subject: Remove NK_totp_get_time implementation, since it always results in error on device's side Signed-off-by: Szczepan Zalega --- NK_C_API.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/NK_C_API.cc b/NK_C_API.cc index c679597..01963fc 100644 --- a/NK_C_API.cc +++ b/NK_C_API.cc @@ -366,10 +366,7 @@ extern "C" { } NK_C_API int NK_totp_get_time() { - auto m = NitrokeyManager::instance(); - return get_without_result([&]() { - m->get_time(0); // FIXME check how that should work - }); + return 0; } NK_C_API int NK_change_admin_PIN(const char *current_PIN, const char *new_PIN) { -- cgit v1.2.3