Skip to content

Conversation

sbailey-arm
Copy link
Contributor

PKCS#11 provider wasn't removing the key ID from the key ID store on two possible failure paths.

Signed-off-by: Samuel Bailey [email protected]

@hug-dev hug-dev requested review from ionut-arm and hug-dev June 19, 2020 11:25
@hug-dev hug-dev added the bug Something isn't working label Jun 19, 2020
@sbailey-arm sbailey-arm force-pushed the pkcs11-provider-fail-test-fix branch from 9ec290c to d426bd7 Compare June 19, 2020 11:28
@sbailey-arm sbailey-arm marked this pull request as ready for review June 19, 2020 11:52
Copy link
Member

@hug-dev hug-dev left a comment

Choose a reason for hiding this comment

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

Nice find 👌 I don't know how if, in the future, it is possible to use Drop to implement those cleanup automatically, there are so many parameters to that call.

@ionut-arm
Copy link
Member

Nice find 👌 I don't know how if, in the future, it is possible to use Drop to implement those cleanup automatically, there are so many parameters to that call.

The parameters are one problem, another is the fact that in Drop you don't know whether the function succeeded or not.

Copy link
Member

@ionut-arm ionut-arm left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this! As Hugues said, would be nice to at least come up with an idea of how to solve this without the cleanup code everywhere, in the long term!

@ionut-arm ionut-arm merged commit f82b042 into parallaxsecond:master Jun 19, 2020
@sbailey-arm sbailey-arm deleted the pkcs11-provider-fail-test-fix branch June 19, 2020 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants