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

iter: Enable iteration over slots/tokens/modules #28

Merged
merged 1 commit into from
Feb 8, 2017

Conversation

ueno
Copy link
Member

@ueno ueno commented Dec 19, 2016

While PKCS#11 URI can identify slots/tokens/modules, P11KitIter is only
capable of iterating over objects.

This patch adds new behaviors to P11KitIter to support iterations over
slots/tokens/modules, using the C coroutine trick as described in:
http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html

While PKCS#11 URI can identify slots/tokens/modules, P11KitIter is only
capable of iterating over objects.

This patch adds new behaviors to P11KitIter to support iterations over
slots/tokens/modules, using the C coroutine trick as described in:
http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html
@ueno ueno merged commit 3d54011 into p11-glue:master Feb 8, 2017
@ueno
Copy link
Member Author

ueno commented Feb 8, 2017

Merging this, assuming the API change doesn't introduce any incompatibility.

@ueno ueno deleted the wip/dueno/iter branch February 16, 2017 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant