Navigation Menu

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

Transparent handling of PKCS #11 reinitialization after fork #25

Merged
merged 7 commits into from Jul 13, 2015

Conversation

nmav
Copy link
Contributor

@nmav nmav commented Jul 9, 2015

This patch set adds support for transparent call of C_Initialize and reopen of objects after a fork. It uses mutexes to protect the checks.

dwmw2 added a commit that referenced this pull request Jul 13, 2015
Transparent handling of PKCS #11 reinitialization after fork
@dwmw2 dwmw2 merged commit 67a7401 into OpenSC:master Jul 13, 2015
@nmav
Copy link
Contributor Author

nmav commented Jul 17, 2015

Checking it further it seems that this patch is incomplete. There is PKCS11_enumerate_keys() and the object handle which is not reopened. I'll do a follow up commit to fix these. Most likely I'll remove any pthread locks as this library is clearly non-thread safe.

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.

None yet

2 participants