Skip to content

Commit

Permalink
Update smart card status on Pro counters' requests
Browse files Browse the repository at this point in the history
Required for Nitrokey HOTP Verification tests pass
Not tested on libnitrokey's suite yet

Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
  • Loading branch information
szszszsz committed Mar 19, 2019
1 parent f7ef539 commit e5e1f5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/OTP/report_protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -1395,6 +1395,7 @@ u32 i;

void cmd_get_password_retry_count (u8 * report, u8 * output)
{
GetSmartCardStatus (&StickConfiguration_st);
output[OUTPUT_CMD_RESULT_OFFSET] = StickConfiguration_st.AdminPwRetryCount;
}

Expand All @@ -1414,6 +1415,7 @@ void cmd_get_password_retry_count (u8 * report, u8 * output)

u8 cmd_get_user_password_retry_count (u8 * report, u8 * output)
{
GetSmartCardStatus (&StickConfiguration_st);
output[OUTPUT_CMD_RESULT_OFFSET] = StickConfiguration_st.UserPwRetryCount;
return 0;
}
Expand Down

0 comments on commit e5e1f5b

Please sign in to comment.