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

feat(pkcs11-tool): an invalid signature is a fatal error #3178

Conversation

AlexandreGonzalo
Copy link
Contributor

Hi,
We are using the pkcs11-tool for the validation of the Trustonic HSM.
I noticed that the tool is not returning an error when a signature is invalid or when something bad happens during the signature verification.
I would expect something more than just a print.
This is why I am proposing to call util_fatal() which will exit with an error code different than 0.
I checked the patch with the Trustonic TEE HSM.
Regards,
Alexandre.

@AlexandreGonzalo AlexandreGonzalo force-pushed the trustonic_pkcs11_invalid_signature_fatal branch from 3079a74 to fa3c0f7 Compare June 11, 2024 13:14
@frankmorgner frankmorgner merged commit c3e4d2a into OpenSC:master Jun 12, 2024
44 of 45 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.

4 participants