aboutsummaryrefslogtreecommitdiff
path: root/NK_C_API.cc
diff options
context:
space:
mode:
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r--NK_C_API.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/NK_C_API.cc b/NK_C_API.cc
index 00694c7..c679597 100644
--- a/NK_C_API.cc
+++ b/NK_C_API.cc
@@ -358,6 +358,13 @@ extern "C" {
});
}
+ NK_C_API int NK_totp_set_time_soft(uint64_t time) {
+ auto m = NitrokeyManager::instance();
+ return get_without_result([&]() {
+ m->set_time_soft(time);
+ });
+ }
+
NK_C_API int NK_totp_get_time() {
auto m = NitrokeyManager::instance();
return get_without_result([&]() {