summaryrefslogtreecommitdiff
path: root/p11-kit/proxy.h
Commit message (Collapse)AuthorAgeFilesLines
* p11-kit: Use pthread_atfork() in a safe mannerStef Walter2014-10-031-2/+0
| | | | | | | | | | | | | Instead of trying to perform actions in pthread_atfork() which are not async-signal-safe, just increment a counter so we can later tell if the process has forked. Note this does not make it safe to mix threads and forking without immediately execing. This is a far broader problem that p11-kit, however we now do the right thing when fork+exec is used from a thread. https://bugs.freedesktop.org/show_bug.cgi?id=84567
* Update the proxy module to use managed PKCS#11 modulesStef Walter2013-05-211-0/+45
Each time C_GetFunctionList is called on the proxy module, a new managed PKCS#11 set of functions is returned. These are all cleaned up when the module is unloaded. We want the proxy module to continue to work even without the highly recommended libffi. For that reason we still keep the old behavior of sharing state in the proxy module.