Skip to content

Transparent handling of PKCS #11 reinitialization after fork#25

Merged
dwmw2 merged 7 commits intoOpenSC:masterfrom
nmav:after-fork
Jul 13, 2015
Merged

Transparent handling of PKCS #11 reinitialization after fork#25
dwmw2 merged 7 commits intoOpenSC:masterfrom
nmav:after-fork

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.

2 participants