summaryrefslogtreecommitdiff
path: root/p11-kit/proxy.h
Commit message (Collapse)AuthorAgeFilesLines
* proxy: Allow proxy to be created from the libraryDaiki Ueno2018-07-161-0/+3
| | | | | | | | | | Previously, to aggregate multiple modules into one, there was no other way than loading the proxy module. From the p11-kit applications, however, it is not possible to load that module because of the recursive loading check (p11_proxy_module_check). This patch adds another means to aggregate modules, through a library function p11_proxy_module_create.
* 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.