summaryrefslogtreecommitdiff
path: root/p11-kit/virtual.c
Commit message (Collapse)AuthorAgeFilesLines
* virtual: Rename virtual-fixed.c to virtual-fixed-generated.hDaiki Ueno2019-06-181-1/+1
| | | | | Previously the generated .c file was included in another source file, which is not supported in some build systems (e.g., meson).
* virtual: Prefer fixed closures to libffi closuresDaiki Ueno2018-10-241-5/+14
| | | | | | | | On some circumstances (such as when loading p11-kit-proxy from httpd), it is known that creation of libffi closure always fails, due to SELinux policy. Although this is harmless, it pollutes the journal and gives wrong hints when troubleshooting. This patch changes the order of preference of libffi vs pre-compiled closures to avoid that.
* virtual: Tighten error handling when fixed closures are exhaustedDaiki Ueno2018-08-281-9/+8
|
* virtual: Don't be too loud about recoverable failureDaiki Ueno2018-08-281-2/+2
|
* build: Split out generated code from p11-kit/virtual.cDaiki Ueno2018-01-311-196/+1
|
* virtual: Move mutex into p11_library_init()Daiki Ueno2017-02-141-22/+5
| | | | | | | | | We used to provide p11_virtual_fixed_{,un}init() to only initialize a mutex used in virtual.c. That required all the tests calling virtual functions to call p11_virtual_fixed_{,un}init() in main(). For simplicity, move the mutex variable initialization into p11_library_init().
* virtual: Make virtual-fixed internal API cleanerDaiki Ueno2017-01-251-2/+2
| | | | | Add proper inclusion guard to virtual-fixed.h and move the declarations of the (un)initialization functions there.
* build: Make libffi closure optionalDaiki Ueno2017-01-241-112/+502
| | | | | | | | libffi's closure support is not available on all platforms and may fail at run time if running under a stricter SELinux policy. Fallback to pre-compiled closures if it is not usable. https://bugs.freedesktop.org/show_bug.cgi?id=97611
* Do not deinitialize libffi's wrapper functionsNikos Mavrogiannopoulos2015-06-291-0/+11
| | | | | | | | Libffi uses shared memory to store them, and a deallocation in a child will cause issues for the parent or vice versa. Signed-off-by: Stef Walter <stefw@redhat.com> * Use #if to comment out code, avoid compiler warnings
* p11-kit: Fix integer overflow in memset() argumentStef Walter2014-08-081-1/+1
|
* Use libffi to implement mixins for managed codeStef Walter2013-05-161-0/+2964
* This allows us to call into subclassed PKCS#11 modules as if they were plain old PKCS#11 modules * libffi is an optional dependency