]>
granicus.if.org Git - p11-kit/log
Stef Walter [Tue, 20 Dec 2011 14:18:37 +0000 (15:18 +0100)]
Reorganize tests, work around optimization bug
* 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
Andreas Metzler [Fri, 9 Dec 2011 15:57:16 +0000 (16:57 +0100)]
Run tests correctly in automake
* This allows failing tests to stop the build
Michael Cronenworth [Fri, 25 Nov 2011 16:13:59 +0000 (17:13 +0100)]
Build fix for MinGW w64
Stef Walter [Mon, 14 Nov 2011 11:04:51 +0000 (12:04 +0100)]
Release version 0.9
Stef Walter [Wed, 2 Nov 2011 16:42:42 +0000 (17:42 +0100)]
Reduce autofoo dependencies
* automake 1.10 (although can benefit from some 1.11 features)
* autoconf 2.61
Stef Walter [Tue, 1 Nov 2011 14:44:09 +0000 (14:44 +0000)]
An intelligent error message when gettextize is not around
Stef Walter [Sun, 30 Oct 2011 19:32:40 +0000 (20:32 +0100)]
p11-kit can't be used as a static library
* It just doesn't make sense.
* The initialization refcounting in particular can only work as
a shared library.
Stef Walter [Sat, 29 Oct 2011 08:29:23 +0000 (01:29 -0700)]
Fix problems crashing when freeing TLS on windows
Stef Walter [Sat, 29 Oct 2011 08:29:04 +0000 (01:29 -0700)]
Add debug output to windows init and uninit of library
Stef Walter [Sat, 29 Oct 2011 07:46:02 +0000 (00:46 -0700)]
Make build not depend on gtk-doc or pkg-config
* 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.
Stef Walter [Sat, 29 Oct 2011 05:48:54 +0000 (07:48 +0200)]
Handle build case when gettextize is not available or not installed
Stef Walter [Thu, 27 Oct 2011 18:32:40 +0000 (20:32 +0200)]
Fix build with clang
* Just removed some unused functions that used GNUC extensions
Dr. Volker Zell [Tue, 25 Oct 2011 20:17:42 +0000 (22:17 +0200)]
Fix broken build on cygwin and mingw
* Add correct linking options for libintl
Michael Cronenworth [Tue, 25 Oct 2011 20:08:41 +0000 (22:08 +0200)]
Fix broken build on windows
* The debug_init() call needed a rename to _p11_debug_init() to match
the non-Win32 code.
Stef Walter [Mon, 24 Oct 2011 07:49:23 +0000 (09:49 +0200)]
Release version 0.8
Stef Walter [Mon, 24 Oct 2011 07:47:03 +0000 (09:47 +0200)]
More fixes for non-static function names
* See previous commit
* Initialize library before debug statements
Stef Walter [Mon, 24 Oct 2011 06:05:43 +0000 (08:05 +0200)]
Rename non-static functions to have a _p11_xxx prefix.
* Work around issues with brain-dead linkers not respecting
the libtool -export-symbol-regex argument
https://bugs.freedesktop.org/show_bug.cgi?id=42020
Stef Walter [Mon, 17 Oct 2011 12:51:31 +0000 (14:51 +0200)]
Initial port to win32
* 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
Stef Walter [Mon, 10 Oct 2011 21:03:57 +0000 (23:03 +0200)]
Fix up the build options.
* --enable-debug turns off optimization
* --disable-debug turns off debugging output, debug symbols
* --enable-strict turns on -Werror
Stef Walter [Mon, 10 Oct 2011 15:32:34 +0000 (17:32 +0200)]
Only call C_Initialize and C_Finalize once per module
* 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.
Stef Walter [Mon, 10 Oct 2011 10:21:58 +0000 (12:21 +0200)]
Combine initialization tests
Stef Walter [Mon, 10 Oct 2011 10:08:35 +0000 (12:08 +0200)]
Don't allow recursive calling of C_Initialize on a given module.
Stef Walter [Mon, 10 Oct 2011 09:54:38 +0000 (11:54 +0200)]
Rename p11-kit test
Pino Toscano [Fri, 30 Sep 2011 12:28:00 +0000 (14:28 +0200)]
Don't use PATH_MAX unless its defined
* Fixes build on GNU/Hurd
https://bugs.freedesktop.org/show_bug.cgi?id=41303\1a
Stef Walter [Wed, 28 Sep 2011 09:27:13 +0000 (11:27 +0200)]
Print more information in 'p11-kit -l'
Stef Walter [Tue, 27 Sep 2011 08:12:56 +0000 (10:12 +0200)]
Release 0.7
Stef Walter [Tue, 27 Sep 2011 08:10:18 +0000 (10:10 +0200)]
Don't expand p11-kit config variables in configure.
* Expand them later in Makefile and pkg-config file
Stef Walter [Mon, 26 Sep 2011 06:59:50 +0000 (08:59 +0200)]
Add test tool to print out error messages
* Allows checking of translations
Andreas Metzler [Mon, 26 Sep 2011 06:31:39 +0000 (08:31 +0200)]
Fix quoting of build variables
https://bugs.freedesktop.org/show_bug.cgi?id=40985
Stef Walter [Mon, 19 Sep 2011 07:24:35 +0000 (09:24 +0200)]
Expand the libdir path correctly
https://bugs.freedesktop.org/show_bug.cgi?id=40985
Roman Bogorodskiy [Fri, 16 Sep 2011 02:37:51 +0000 (19:37 -0700)]
Add #include <limits.h> for PATH_MAX to fix compilation on FreeBSD.
https://bugs.freedesktop.org/show_bug.cgi?id=40923
Stef Walter [Wed, 14 Sep 2011 14:13:43 +0000 (16:13 +0200)]
Release version 0.6
Stef Walter [Wed, 14 Sep 2011 11:45:03 +0000 (13:45 +0200)]
Add documentation about the configuration paths
* Default module path
* How to lookup paths using pkg-config
Kalev Lember [Wed, 14 Sep 2011 05:10:46 +0000 (08:10 +0300)]
When a module has a relative path, load it from $libdir/pkcs11
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.
Kalev Lember [Wed, 14 Sep 2011 05:10:45 +0000 (08:10 +0300)]
Rename pkgconfig configuration directory variables
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
Stef Walter [Wed, 31 Aug 2011 08:03:01 +0000 (10:03 +0200)]
Release version 0.5
Stef Walter [Tue, 30 Aug 2011 19:18:58 +0000 (21:18 +0200)]
Don't crash if p11_kit_registered_modules() called after failed init
Stef Walter [Tue, 30 Aug 2011 19:18:40 +0000 (21:18 +0200)]
Remove useless typedef
Stef Walter [Tue, 30 Aug 2011 19:17:41 +0000 (21:17 +0200)]
Add 'critical' setting for modules
* When a module has critical set to 'yes', and that module fails to init
then it aborts the entire init process.
* Defaults to 'no'
Stef Walter [Wed, 24 Aug 2011 13:34:13 +0000 (15:34 +0200)]
Fix bugs in the p11-kit proxy module.
* Initialize the mappings properly
* Lookup session handles correctly
* Debug initialization and finalization
Stef Walter [Fri, 19 Aug 2011 08:33:07 +0000 (10:33 +0200)]
Release version 0.4
Stef Walter [Fri, 19 Aug 2011 08:31:51 +0000 (10:31 +0200)]
Ignore spaces in PKCS#11 URIs
* These should be able to occur anywhere and should be ignored
according to RFC 3986. This is documented in the PKCS#11 URI
specification.
Stef Walter [Sun, 14 Aug 2011 16:46:50 +0000 (18:46 +0200)]
Fix endless loop if module forks during initialization.
* 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.
Stef Walter [Sun, 14 Aug 2011 16:45:19 +0000 (18:45 +0200)]
Safer initialization of individually initialized module.
* 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.
Stef Walter [Fri, 5 Aug 2011 07:31:13 +0000 (09:31 +0200)]
Update PKCS#11 URI code for new draft of spec
* 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.
Stef Walter [Wed, 3 Aug 2011 09:37:40 +0000 (11:37 +0200)]
Don't fail when duplicate modules are configured.
* 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
Stef Walter [Wed, 3 Aug 2011 06:16:32 +0000 (08:16 +0200)]
Better debug output for initialization and loading modules.
Stef Walter [Wed, 3 Aug 2011 05:58:04 +0000 (07:58 +0200)]
Fix broken debug arguments
Stef Walter [Mon, 1 Aug 2011 11:18:05 +0000 (13:18 +0200)]
Add example configuration documentation.
* And also install example pkcs11.conf file.
Stef Walter [Fri, 29 Jul 2011 12:07:01 +0000 (14:07 +0200)]
Release version 0.3
Roman Bogorodskiy [Thu, 28 Jul 2011 13:43:41 +0000 (17:43 +0400)]
Fix building with NLS enabled.
https://bugs.freedesktop.org/show_bug.cgi?id=39622
Roman Bogorodskiy [Thu, 28 Jul 2011 13:35:00 +0000 (17:35 +0400)]
Use AC_SEARCH_LIBS instead of AC_CHECK_LIB for dlopen() to fix on *BSD.
https://bugs.freedesktop.org/show_bug.cgi?id=39622
Stef Walter [Thu, 28 Jul 2011 12:34:34 +0000 (14:34 +0200)]
Make p11-kit-proxy.so link point to libp11-kit.so.0.0.0
* The link now points to the actual library, rather than to
another link.
https://bugzilla.redhat.com/show_bug.cgi?id=725905
Stef Walter [Wed, 27 Jul 2011 13:42:31 +0000 (15:42 +0200)]
Add libtool style versioning variables to p11-kit
Stef Walter [Wed, 27 Jul 2011 10:35:55 +0000 (12:35 +0200)]
Fix bug in hashtable rewrite.
* Initialization mixup.
Stef Walter [Wed, 27 Jul 2011 10:32:31 +0000 (12:32 +0200)]
Cleanup documentation warnings
* After recent hash table rewrite we should be ignoring the new
file.
Stef Walter [Wed, 27 Jul 2011 10:02:25 +0000 (12:02 +0200)]
Create a link for the proxy module.
* Install proxy module at its own path which is not prefixed by 'lib'
* Since the proxy module is the same as the library, and actually
needs to be loaded as the same library in memory (due to resource
tracking per process), use a symlink for proxy.
* Add a variable to the pkg-config file which shows the path
to the proxy module. ie:
$ pkg-config --variable=proxy_module p11-kit-1
https://bugzilla.redhat.com/show_bug.cgi?id=725905
Stef Walter [Wed, 27 Jul 2011 09:24:55 +0000 (11:24 +0200)]
Reimplement and remove apache licensed bits of code.
* Reimplement the various bits of the hash table that were
still based on the apache apr code. Use different algorithms
for hashing, lookup and other stuff.
* Use this as an opportunity to cleanup that code and make
it more legible.
https://bugzilla.redhat.com/show_bug.cgi?id=725905
Stef Walter [Thu, 21 Jul 2011 14:51:34 +0000 (16:51 +0200)]
Expand the various pkcs11 config paths properly.
* Without this the ${prefix} part of the variable wasn't being
expanded and was making it into the #define.
Colin Walters [Mon, 18 Jul 2011 15:09:41 +0000 (11:09 -0400)]
configure: Use $sysconfdir for p11_system_conf dir, not hardcoded /etc
If the user specified sysconfdir, we should respect it. Don't
hardcode /etc. This is important for jhbuild, which uses
/path/to/builddir/etc.
Stef Walter [Tue, 19 Jul 2011 21:04:04 +0000 (23:04 +0200)]
Ignore some built files after recent changes.
Colin Walters [Mon, 18 Jul 2011 14:59:54 +0000 (10:59 -0400)]
build: Make autogen.sh work
* We were missing a call to gettextize, which is what copies in config.rpath
* Delete ABOUT-NLS, it is copied in by gettextize
* While we're here, take a page from gtk+'s autogen.sh and just use autoreconf,
instead of specifying everything.
* We need to always have an m4/ directory, so that gettextize works,
so we make a dummy empty file
* Apparently gettextize is totally insane, requiring user input etc. Copy
in some hacks from Avahi's autogen.sh to work around this.
Stef Walter [Tue, 12 Jul 2011 15:37:14 +0000 (17:37 +0200)]
pin: Fix uninitialized variable
Stef Walter [Thu, 7 Jul 2011 16:59:54 +0000 (18:59 +0200)]
Bump version number, and tweak upload procedure
Stef Walter [Thu, 7 Jul 2011 16:45:23 +0000 (18:45 +0200)]
Release version 0.2
Stef Walter [Wed, 6 Jul 2011 14:31:06 +0000 (16:31 +0200)]
List labels of all tokens in 'p11-kit -l'
Stef Walter [Wed, 6 Jul 2011 10:48:52 +0000 (12:48 +0200)]
More fine tuning of the pin APIs.
Stef Walter [Fri, 24 Jun 2011 14:36:50 +0000 (16:36 +0200)]
Add documentation for PIN callbacks.
Stef Walter [Fri, 24 Jun 2011 13:31:02 +0000 (15:31 +0200)]
Add P11KitPin structure, which encapsulates a returned pin.
* Lets us use variable size buffers.
* Helps minimize copying.
Stef Walter [Tue, 21 Jun 2011 17:31:15 +0000 (19:31 +0200)]
Rename p11_kit_pin_read_pinfile to p11_kit_pin_retrieve
* Fix up duplicate register logic as well.
Stef Walter [Mon, 20 Jun 2011 19:17:03 +0000 (21:17 +0200)]
Implement support for registering and calling pinfile callbacks
* These are callbacks that hanlde the pinfile part of a PKCS#11 URI.
* One library can register a callback that another can then call
in a thread-safe and simple fashion.
Stef Walter [Thu, 16 Jun 2011 17:05:22 +0000 (18:05 +0100)]
Fix logic error loading registered modules.
Thanks to Richard Bellgrim.
Stef Walter [Thu, 9 Jun 2011 18:38:04 +0000 (20:38 +0200)]
Update pkcs11.h with PKCS#11 2.20 ammendments.
Stef Walter [Thu, 9 Jun 2011 09:06:19 +0000 (11:06 +0200)]
Fixed typos and made options clearer.
Stef Walter [Thu, 9 Jun 2011 09:03:16 +0000 (11:03 +0200)]
By default use /etc/pkcs11 for system configs and not ${prefix}
* Packagers can override this with the --with-pkcs11-dir configure arg.
Stef Walter [Thu, 9 Jun 2011 08:24:07 +0000 (10:24 +0200)]
Complete documentation for message functionality.
Stef Walter [Thu, 9 Jun 2011 08:13:45 +0000 (10:13 +0200)]
Complete testing of global config files and directories.
Stef Walter [Thu, 9 Jun 2011 07:42:55 +0000 (09:42 +0200)]
Store last failure message per thread.
* Add p11_kit_message() function to get last message.
Stef Walter [Wed, 8 Jun 2011 19:21:54 +0000 (21:21 +0200)]
Refactor configuration
* Move configuration loading into conf.c
* Have user modules with same name merge/override modules in system.
Stef Walter [Wed, 8 Jun 2011 15:21:44 +0000 (17:21 +0200)]
Ignore files without a 'module' value.
* Just skip loading these.
Stef Walter [Tue, 7 Jun 2011 15:53:06 +0000 (15:53 +0000)]
Bump version number.
Stef Walter [Tue, 7 Jun 2011 15:47:47 +0000 (15:47 +0000)]
Make target for uploading release.
Stef Walter [Tue, 7 Jun 2011 14:06:45 +0000 (14:06 +0000)]
Release version 0.1
Stef Walter [Tue, 7 Jun 2011 13:06:51 +0000 (13:06 +0000)]
Fix up documentation
Stef Walter [Tue, 7 Jun 2011 12:58:38 +0000 (12:58 +0000)]
Add p11_kit_space_strdup() function, and rename p11_kit_space_strlen()
* Print out module info in p11-kit tool.
Stef Walter [Tue, 7 Jun 2011 12:44:06 +0000 (12:44 +0000)]
Fix more memory errors and leaks in module code.
Stef Walter [Tue, 7 Jun 2011 12:10:19 +0000 (12:10 +0000)]
Free string output of conf-test
Stef Walter [Tue, 7 Jun 2011 12:09:05 +0000 (12:09 +0000)]
Fix URI parsing memory leaks.
Stef Walter [Tue, 7 Jun 2011 12:06:20 +0000 (12:06 +0000)]
Fix some hash leaks and bugs.
Stef Walter [Tue, 7 Jun 2011 11:46:14 +0000 (11:46 +0000)]
Fix compiler warnings.
Stef Walter [Tue, 7 Jun 2011 11:37:39 +0000 (11:37 +0000)]
Remove unstable API markers.
Stef Walter [Mon, 6 Jun 2011 20:05:35 +0000 (20:05 +0000)]
Modernize autotools setup.
Stef Walter [Mon, 30 May 2011 16:53:09 +0000 (18:53 +0200)]
Clear correct block of memory in p11_kit_uri_parse().
Stef Walter [Mon, 30 May 2011 12:17:44 +0000 (14:17 +0200)]
GNU style definitions in uri.h as well as normal.
Stef Walter [Mon, 30 May 2011 11:35:30 +0000 (13:35 +0200)]
Cleanup URI types
* Support with/without library version.
* Make names of types clearer.
Stef Walter [Mon, 30 May 2011 11:12:58 +0000 (13:12 +0200)]
Set the return value properly in p11_kit_load_initialize_module()
Stef Walter [Mon, 30 May 2011 11:12:01 +0000 (13:12 +0200)]
Add function p11_kit_uri_space_strlen() for figuring out the length
of space terminated strings.
Stef Walter [Mon, 30 May 2011 11:11:26 +0000 (13:11 +0200)]
Allow use with CRYPTOKI_GNU style use of PKCS#11
Stef Walter [Fri, 27 May 2011 14:07:15 +0000 (16:07 +0200)]
Add p11_kit_load_initialize_module() function.
* This function will load a module from a file path, and then
initialize it.
Stef Walter [Fri, 27 May 2011 13:25:28 +0000 (15:25 +0200)]
Rename module arguments from 'funcs' to 'module'