diff options
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() { |