summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Reorganize tests, work around optimization bugStef Walter2011-12-201-23/+22
| | | | | | | | * Encountered a gcc optimization bug in gcc 4.6.1 which seems to be reordering related function calls eroneously. This bug seems to be fixed in 4.6.2. * Reorganize test code to get around this bug building on mingw, and ubuntu 11.10, both of which use gcc 4.6.1
* Run tests correctly in automakeAndreas Metzler2011-12-091-4/+1
| | | | * This allows failing tests to stop the build
* Build fix for MinGW w64Michael Cronenworth2011-11-251-1/+7
|
* Release version 0.9Stef Walter2011-11-143-3/+9
|
* Reduce autofoo dependenciesStef Walter2011-11-021-2/+2
| | | | | * automake 1.10 (although can benefit from some 1.11 features) * autoconf 2.61
* An intelligent error message when gettextize is not aroundStef Walter2011-11-011-1/+1
|
* p11-kit can't be used as a static libraryStef Walter2011-10-301-0/+4
| | | | | | * It just doesn't make sense. * The initialization refcounting in particular can only work as a shared library.
* Fix problems crashing when freeing TLS on windowsStef Walter2011-10-291-0/+2
|
* Add debug output to windows init and uninit of libraryStef Walter2011-10-291-1/+8
|
* Make build not depend on gtk-doc or pkg-configStef Walter2011-10-291-2/+51
| | | | | | | | * If enabled, gtk-doc can be used, but we no longer expect the gtkdoc autoconf/automake macro files to be installed. * pkg-config is no longer used for checks. * We still do install pkg-config files, and this is the preferred way to build against and link to p11-kit.
* Handle build case when gettextize is not available or not installedStef Walter2011-10-291-1/+7
|
* Fix build with clangStef Walter2011-10-272-15/+0
| | | | * Just removed some unused functions that used GNUC extensions
* Fix broken build on cygwin and mingwDr. Volker Zell2011-10-251-0/+2
| | | | * Add correct linking options for libintl
* Fix broken build on windowsMichael Cronenworth2011-10-251-1/+1
| | | | | * The debug_init() call needed a rename to _p11_debug_init() to match the non-Win32 code.
* Release version 0.8Stef Walter2011-10-243-3/+10
|
* More fixes for non-static function namesStef Walter2011-10-246-56/+53
| | | | | * See previous commit * Initialize library before debug statements
* Rename non-static functions to have a _p11_xxx prefix.Stef Walter2011-10-2422-459/+484
| | | | | | | * 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-1723-180/+952
| | | | | | | | * 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
* Fix up the build options.Stef Walter2011-10-101-57/+66
| | | | | | * --enable-debug turns off optimization * --disable-debug turns off debugging output, debug symbols * --enable-strict turns on -Werror
* Only call C_Initialize and C_Finalize once per moduleStef Walter2011-10-103-58/+168
| | | | | | | | * Do not concurretnly call C_Initialize or C_Finalize in a module * The PKCS#11 spec indicates that mone thread should call those functions. * It's reasonable for a module to expect to only be initialized or finalized in one thread. * In particular NSS does not lock its C_Initialize or C_Finalize.
* Combine initialization testsStef Walter2011-10-103-110/+36
|
* Don't allow recursive calling of C_Initialize on a given module.Stef Walter2011-10-103-3/+114
|
* Rename p11-kit testStef Walter2011-10-103-3/+5
|
* Don't use PATH_MAX unless its definedPino Toscano2011-09-301-1/+6
| | | | | | * Fixes build on GNU/Hurd https://bugs.freedesktop.org/show_bug.cgi?id=41303
* Print more information in 'p11-kit -l'Stef Walter2011-09-281-0/+92
|
* Release 0.7Stef Walter2011-09-273-3/+8
|
* Don't expand p11-kit config variables in configure.Stef Walter2011-09-271-3/+3
| | | | * Expand them later in Makefile and pkg-config file
* Add test tool to print out error messagesStef Walter2011-09-263-1/+140
| | | | * Allows checking of translations
* Fix quoting of build variablesAndreas Metzler2011-09-261-2/+2
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=40985
* Expand the libdir path correctlyStef Walter2011-09-192-7/+8
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=40985
* Add #include <limits.h> for PATH_MAX to fix compilation on FreeBSD.Roman Bogorodskiy2011-09-161-1/+2
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=40923
* Release version 0.6Stef Walter2011-09-143-3/+8
|
* Add documentation about the configuration pathsStef Walter2011-09-145-15/+76
| | | | | * Default module path * How to lookup paths using pkg-config
* When a module has a relative path, load it from $libdir/pkcs11Kalev Lember2011-09-143-3/+68
| | | | | | | So far we have only supported full paths to the pkcs11 modules in config files. This change adds relative path support, so that for modules installed under the standard $libdir/pkcs11, the config file won't have to spell out the full path.
* Rename pkgconfig configuration directory variablesKalev Lember2011-09-145-32/+37
| | | | | | | | | | | | Renamed them to reduce ambiguity and to pave the way for exposing some additional parameters. p11_system_modules -> p11_system_config_modules p11_user_modules -> p11_user_config_modules configure --with-pkcs11-dir => configure --with-system-config
* Release version 0.5Stef Walter2011-08-313-3/+8
|
* Don't crash if p11_kit_registered_modules() called after failed initStef Walter2011-08-301-2/+3
|
* Remove useless typedefStef Walter2011-08-301-2/+0
|
* Add 'critical' setting for modulesStef Walter2011-08-304-3/+49
| | | | | | * When a module has critical set to 'yes', and that module fails to init then it aborts the entire init process. * Defaults to 'no'
* Fix bugs in the p11-kit proxy module.Stef Walter2011-08-243-15/+31
| | | | | | * Initialize the mappings properly * Lookup session handles correctly * Debug initialization and finalization
* Release version 0.4Stef Walter2011-08-193-3/+11
|
* Ignore spaces in PKCS#11 URIsStef Walter2011-08-193-23/+90
| | | | | | * These should be able to occur anywhere and should be ignored according to RFC 3986. This is documented in the PKCS#11 URI specification.
* Fix endless loop if module forks during initialization.Stef Walter2011-08-146-25/+1354
| | | | | | | * If a module forks during its C_Initialize, previously our fork handler would try to initialize it again, ad nauseum. Reported by Nikos on the mailing list.
* Safer initialization of individually initialized module.Stef Walter2011-08-141-6/+30
| | | | | | | * More checks for out of memory. * Take more of the same code paths when initializing a single module as when initializing registered, or loading from file. * Cleanup halfway initialized globals if fail during init.
* Update PKCS#11 URI code for new draft of specStef Walter2011-08-058-145/+185
| | | | | | | | | * pinfile attribute was renamed to pin-source * objecttype attribute was renamed to object-type * secretkey value was renamed to secret-key We continue to support parsing the old attribute names and values but generate URIs with the new ones.
* Don't fail when duplicate modules are configured.Stef Walter2011-08-031-1/+1
| | | | | | * Duplicate modules may be caused by editor backups, misconfigurations or a multitude of other sources. Failing dead is a bit harsh. * After discussing gnutls needs with Nikos
* Better debug output for initialization and loading modules.Stef Walter2011-08-031-4/+7
|
* Fix broken debug argumentsStef Walter2011-08-031-1/+1
|
* Add example configuration documentation.Stef Walter2011-08-015-3/+68
| | | | * And also install example pkcs11.conf file.
* Release version 0.3Stef Walter2011-07-292-1/+13
|