-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
libnitrokey/NitrokeyManager.cc
Lines 788 to 802 in d753488
uint8_t NitrokeyManager::get_user_retry_count() { | |
if(device->get_device_model() == DeviceModel::STORAGE){ | |
stick20::GetDeviceStatus::CommandTransaction::run(device); | |
} | |
auto response = GetUserPasswordRetryCount::CommandTransaction::run(device); | |
return response.data().password_retry_count; | |
} | |
uint8_t NitrokeyManager::get_admin_retry_count() { | |
if(device->get_device_model() == DeviceModel::STORAGE){ | |
stick20::GetDeviceStatus::CommandTransaction::run(device); | |
} | |
auto response = GetPasswordRetryCount::CommandTransaction::run(device); | |
return response.data().password_retry_count; | |
} |
Isn’t it possible to directly use the response of GetDeviceStatus
for Storage devices?