summaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r--NitrokeyManager.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index c5259d2..dc58e4d 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -399,11 +399,12 @@ namespace nitrokey{
return false;
}
- bool NitrokeyManager::get_time() {
+ bool NitrokeyManager::get_time(uint64_t time) {
auto p = get_payload<SetTime>();
p.reset = 0;
+ p.time = time;
SetTime::CommandTransaction::run(*device, p);
- return false;
+ return true;
}
void NitrokeyManager::change_user_PIN(const char *current_PIN, const char *new_PIN) {