Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ta: pkcs11: Improve PIN counter handling robustness #6445

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

loicpoulain
Copy link

Make sure PIN check attempt is saved persistently before continuing with the actual PIN verification, improving counter and flags coherency in case of subsequent failure with persistent saving.

@etienne-lms
Copy link
Contributor

Looks good to me. Please fix checkpatch issue.
With that addressed, Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>.

@jforissier
Copy link
Contributor

I suggest fixing the line length messages with a temporary variable.

struct token_persistent_main *db = token->db_main;

Acked-by: Jerome Forissier <jerome.forissier@linaro.org>

Make sure PIN check attempt is saved persistently before continuing with
the actual PIN verification, improving counter and flags coherency in
case of subsequent failure with persistent saving.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
@jforissier jforissier merged commit d75c42f into OP-TEE:master Nov 10, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants