aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-06-19 19:54:08 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2018-06-19 19:55:18 +0200
commit9a4e5a3e0161ea2d0d72d371439ee44b8b137489 (patch)
tree37e00db5876dc1965f0b59a5c6b007fd51f5b603
parent2cbea6ce4e5e14af06c0ffa3794e4a07ebb04752 (diff)
downloadlibnitrokey-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>
-rw-r--r--NK_C_API.cc5
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) {