summaryrefslogtreecommitdiff
path: root/p11-kit/private.h
Commit message (Collapse)AuthorAgeFilesLines
* modules: Make config file and module configs overridable by testsStef Walter2014-07-081-0/+7
|
* Update the proxy module to use managed PKCS#11 modulesStef Walter2013-05-211-4/+0
| | | | | | | | | | 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.
* p11-kit: Managed PKCS#11 module loadingStef Walter2013-05-211-6/+0
| | | | | | | | | Support a new managed style module loading for PKCS#11 modules. This allows us to better coordinate between multiple callers of the same PKCS#11 modules and provide hooks into their behavior. This meant redoing the public facing API. The old methods are now deprecated, marked and documented as such.
* Allow internal use of token and module info matchingStef Walter2013-02-051-0/+6
|
* Move debug and library code into the common/ subdirectoryStef Walter2013-01-091-41/+0
| | | | | | | | | | | Start using p11_ as our internal prefix rather than _p11_. We explicitly export p11_kit_ so this is fine as far as visibility. Move the threading, mutex, and module compat, dict, and array code into the common directory too. Take this opportunity to clean up a bit of internal API as well, since so many lines are being touched internally.
* Refuse to load the p11-kit-proxy.so as a registered moduleStef Walter2012-09-181-0/+1
| | | | | | | | | | * Since p11-kit-proxy.so is a symlink to the libp11-kit.so library we check that we are not calling into our known CK_FUNCTION_LIST for the proxy code. * Although such a configuration is invalid, detecting this directly prevents strange initialization loop issues that are hard to debug. https://bugs.freedesktop.org/show_bug.cgi?id=55052
* Use gcc extensions to check varargs during compileStef Walter2012-05-131-1/+3
| | | | | * Add macros GNUC_PRINTF and GNUC_NULL_TERMINATED to check correct printf and NULL terminated style varargs
* Move the compat.[ch] headers into common directory/Stef Walter2012-04-301-1/+1
| | | | | * And the compat stuff in the p11-kit directory merged into util.c and util.h
* Add enable-in and disable-in options to module configStef Walter2012-04-011-0/+4
| | | | | | | | * These can be used to load certain modules in certain programs, or prevent loading in others. * Useful for a key manager like seahorse, so we can load extra modules (think NSS) that other modules shouldn't load.
* Rename non-static functions to have a _p11_xxx prefix.Stef Walter2011-10-241-2/+2
| | | | | | | * Work around issues with brain-dead linkers not respecting the libtool -export-symbol-regex argument https://bugs.freedesktop.org/show_bug.cgi?id=42020
* Initial port to win32Stef Walter2011-10-171-5/+35
| | | | | | | | * Tests do not all yet pass, at least not on wine * Added abstraction of some non-portable functions in compat.h/c * Build with an argument like this for win32 support: ./autogen.sh --host=i586-mingw32msvc * This win32 port needs more work from interested parties
* Store last failure message per thread.Stef Walter2011-06-091-2/+4
| | | | * Add p11_kit_message() function to get last message.
* Refactor configurationStef Walter2011-06-081-0/+11
| | | | | * Move configuration loading into conf.c * Have user modules with same name merge/override modules in system.
* Change around installation of headers, pkg-config, and file namesStef Walter2011-05-271-0/+52
* Install headers to ${prefix}/include/p11-kit-1/p11-kit/ * This solves problems with other projects that have their own pkcs11.h files. * Change the pkg-config file name to p11-kit-1.pc * Change the source file names.