diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-07-26 10:59:24 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2016-08-01 13:54:57 +0200 |
commit | 8a938be4ffa97490d89206cc1fd079a057cfc65c (patch) | |
tree | 5f2794b8858551eb8cd9f1574d1682567674a04e /NitrokeyManager.cc | |
parent | b37e5990aa409689e5d6162776583616ac03e0ac (diff) | |
download | libnitrokey-8a938be4ffa97490d89206cc1fd079a057cfc65c.tar.gz libnitrokey-8a938be4ffa97490d89206cc1fd079a057cfc65c.tar.bz2 |
Manage retry counts of user and admin passwords
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r-- | NitrokeyManager.cc | 11 |
1 files changed, 10 insertions, 1 deletions
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; } |