From 8a938be4ffa97490d89206cc1fd079a057cfc65c Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Tue, 26 Jul 2016 10:59:24 +0200 Subject: Manage retry counts of user and admin passwords Signed-off-by: Szczepan Zalega --- NitrokeyManager.cc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'NitrokeyManager.cc') diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc index fd2189e..d684853 100644 --- a/NitrokeyManager.cc +++ b/NitrokeyManager.cc @@ -220,7 +220,16 @@ namespace nitrokey{ } void NitrokeyManager::get_password_safe_slot_status() { - GetPasswordSafeSlotStatus::CommandTransaction::run(*device); + GetPasswordSafeSlotStatus::CommandTransaction::run(*device); //TODO FIXME + } + + uint8_t NitrokeyManager::get_user_retry_count() { + auto response = GetUserPasswordRetryCount::CommandTransaction::run(*device); + return response.password_retry_count; + } + uint8_t NitrokeyManager::get_admin_retry_count() { + auto response = GetPasswordRetryCount::CommandTransaction::run(*device); + return response.password_retry_count; } -- cgit v1.2.1