aboutsummaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r--NitrokeyManager.cc11
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;
}