From e5e1f5bad638aa92a284bacfbb8431d3dee76c6a Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Tue, 19 Mar 2019 09:32:30 +0100 Subject: [PATCH] Update smart card status on Pro counters' requests Required for Nitrokey HOTP Verification tests pass Not tested on libnitrokey's suite yet Signed-off-by: Szczepan Zalega --- src/OTP/report_protocol.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/OTP/report_protocol.c b/src/OTP/report_protocol.c index b282b194..9c1c4c96 100644 --- a/src/OTP/report_protocol.c +++ b/src/OTP/report_protocol.c @@ -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; } @@ -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; }