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

Improve store loading with multiple tokens #75

Merged
merged 1 commit into from
Oct 17, 2022
Merged

Conversation

simo5
Copy link
Member

@simo5 simo5 commented Oct 14, 2022

Rework p11prov_get_session()/store_load to be very clear on one shot, vs iterative lookup.

Fixes #66

Rework p11prov_get_session() to be very clear on one shot, vs iterative
lookup.
Fix key fetching to keep iterating and always return positively if any
object at all was found.

Signed-off-by: Simo Sorce <[email protected]>
Copy link
Collaborator

@holger-dengler holger-dengler left a comment

Choose a reason for hiding this comment

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

See my comments. I'm not sure, if we cover all cases of calling p11prov_get_session() correctly. The other changes look good to me..

@simo5 simo5 requested a review from holger-dengler October 17, 2022 13:49
Copy link
Collaborator

@holger-dengler holger-dengler left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Reviewed-by: Holger Dengler [email protected]

@simo5 simo5 merged commit 16a379a into latchset:main Oct 17, 2022
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.

duplicate session free for setups with multiple slots/tokens
2 participants