diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-01-30 17:29:53 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-03-11 15:41:40 +0100 |
commit | 84a98c04c6c79455b04ba300ebfa5ec752abb721 (patch) | |
tree | 3bf2686d6138653904b7216f1e6c3074762276b7 /NitrokeyManager.cc | |
parent | a721ca6391d1f6494d5493fb0e56c868bcd2b60c (diff) | |
download | libnitrokey-84a98c04c6c79455b04ba300ebfa5ec752abb721.tar.gz libnitrokey-84a98c04c6c79455b04ba300ebfa5ec752abb721.tar.bz2 |
Send current time when checking time synchronization
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r-- | NitrokeyManager.cc | 5 |
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) { |