Skip to content

Keymgmt-Updates and Bugfixes #20

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

Merged
merged 5 commits into from
Jun 4, 2025

Conversation

holger-dengler
Copy link
Collaborator

This PR contains some minor changes/updates as well as a fix for two bugs (double-free). It also corrects the the key management registration and key typing.

Reported-by: Grgo.Mariani <[email protected]>
Signed-off-by: Holger Dengler <[email protected]>
The key management functions should be registered with their names and
an Object Identifier (OID), so that they can be found by the lookup
processing.

Signed-off-by: Holger Dengler <[email protected]>
The key type should be either the short/long name or the OID. Use the
short name for RSA and EC keys.

Signed-off-by: Holger Dengler <[email protected]>
@holger-dengler holger-dengler requested a review from ifranzki June 4, 2025 11:24
@holger-dengler holger-dengler changed the title Tip Keymgmt-Updates and Bugfixes Jun 4, 2025
Remove all explicit cleanups in pkcs11_module_load(), as the cleanup
is done by the teardown anyways. While at it, add error handling for
string duplications.

Signed-off-by: Holger Dengler <[email protected]>
Copy link
Contributor

@ifranzki ifranzki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (ignoring the failing Github Action for now)

@holger-dengler
Copy link
Collaborator Author

I'll remove the gh action commit for now and try to cover it in a separate PR.

@holger-dengler holger-dengler merged commit 5d55eee into opencryptoki:master Jun 4, 2025
1 check failed
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.

2 participants