diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2018-06-19 19:54:08 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2018-06-19 19:55:18 +0200 |
commit | 9a4e5a3e0161ea2d0d72d371439ee44b8b137489 (patch) | |
tree | 37e00db5876dc1965f0b59a5c6b007fd51f5b603 /NK_C_API.cc | |
parent | 2cbea6ce4e5e14af06c0ffa3794e4a07ebb04752 (diff) | |
download | libnitrokey-9a4e5a3e0161ea2d0d72d371439ee44b8b137489.tar.gz libnitrokey-9a4e5a3e0161ea2d0d72d371439ee44b8b137489.tar.bz2 |
Remove NK_totp_get_time implementation, since it always results in error on device's side
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r-- | NK_C_API.cc | 5 |
1 files changed, 1 insertions, 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) { |