summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NK_C_API.cc2
-rw-r--r--NitrokeyManager.cc2
-rw-r--r--include/NitrokeyManager.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/NK_C_API.cc b/NK_C_API.cc
index 8fbd6db..8af0128 100644
--- a/NK_C_API.cc
+++ b/NK_C_API.cc
@@ -72,7 +72,7 @@ extern int NK_totp_set_time(uint64_t time){
}
extern int NK_totp_mark_time(){
auto m = NitrokeyManager::instance();
- return m->mark_time();
+ return m->get_time();
}
} \ No newline at end of file
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index 5ef340c..39f1cff 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -185,7 +185,7 @@ namespace nitrokey{
return false;
}
- bool NitrokeyManager::mark_time() {
+ bool NitrokeyManager::get_time() {
auto p = get_payload<SetTime>();
p.reset = 0;
SetTime::CommandTransaction::run(*device, p);
diff --git a/include/NitrokeyManager.h b/include/NitrokeyManager.h
index 7d04799..d4e19e7 100644
--- a/include/NitrokeyManager.h
+++ b/include/NitrokeyManager.h
@@ -26,7 +26,7 @@ namespace nitrokey {
uint32_t get_TOTP_code(uint8_t slot_number, uint64_t challenge, uint64_t last_totp_time,
uint8_t last_interval);
bool set_time(uint64_t time);
- bool mark_time();
+ bool get_time();
bool erase_totp_slot(uint8_t slot_number);
bool erase_hotp_slot(uint8_t slot_number);
bool connect();