diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-07-26 22:11:10 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2016-08-01 13:54:57 +0200 |
commit | 1018b7a7d8d7da124d706bc5d6679c523e5f1d0f (patch) | |
tree | f859f7d8cd59c14131f58c6bc4c34c41e00604b8 /NitrokeyManager.cc | |
parent | 7d71398f4043c10c3870cb9deb2eae7bf1c5f0ee (diff) | |
download | libnitrokey-1018b7a7d8d7da124d706bc5d6679c523e5f1d0f.tar.gz libnitrokey-1018b7a7d8d7da124d706bc5d6679c523e5f1d0f.tar.bz2 |
Handle password safe slots programmed status
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r-- | NitrokeyManager.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc index e541b47..ef0eb5e 100644 --- a/NitrokeyManager.cc +++ b/NitrokeyManager.cc @@ -219,9 +219,12 @@ namespace nitrokey{ EnablePasswordSafe::CommandTransaction::run(*device, p); } - void NitrokeyManager::get_password_safe_slot_status() { + uint8_t * NitrokeyManager::get_password_safe_slot_status() { auto responsePayload = GetPasswordSafeSlotStatus::CommandTransaction::run(*device); //TODO FIXME - responsePayload.password_safe_status; + auto res = new uint8_t[16]; + memcpy(res, responsePayload.password_safe_status, 16*sizeof (uint8_t)); + //FIXME return vector<uint8_t> and do copy on C_API side + return res; } uint8_t NitrokeyManager::get_user_retry_count() { |