aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-07-23 14:01:10 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-01 13:54:56 +0200
commit7eb15813ffa2c2766e53245311b017c3b9c196fb (patch)
treeb5740b9da754f9f7bf2f0cebb06f619826874123
parent93350afd317250b4c5d4c2519dc7a9248f68cfdb (diff)
downloadlibnitrokey-7eb15813ffa2c2766e53245311b017c3b9c196fb.tar.gz
libnitrokey-7eb15813ffa2c2766e53245311b017c3b9c196fb.tar.bz2
Rename mark_time -> get_time
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-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();