]> granicus.if.org Git - p11-kit/log
p11-kit
12 years agoRefactor how parsing of ASN.1 data and certificate extensions work
Stef Walter [Fri, 4 Jan 2013 14:50:13 +0000 (15:50 +0100)]
Refactor how parsing of ASN.1 data and certificate extensions work

12 years agoFill in certificate authority and trust data correctly
Stef Walter [Thu, 3 Jan 2013 10:07:47 +0000 (11:07 +0100)]
Fill in certificate authority and trust data correctly

 * Fill in CKA_CERTIFICATE_CATEGORY properly for authorities
   based on the presence of BasicConstraints and/or v1 certificates
 * Fill in CKA_TRUSTED and CKA_X_DISTRUSTED based on whether the
   parser is running for anchors or blacklist
 * In addition support the concept of blacklisted certificates mixed
   in with the anchors (without any purposes) since that's what exists
   in the real world.
 * We do this after the various hooks have had a chance to mess
   with the certificate extensions and such.

12 years agoImplement stapled certificate extensions internally
Stef Walter [Wed, 2 Jan 2013 15:06:19 +0000 (16:06 +0100)]
Implement stapled certificate extensions internally

 * Use stapled certificate extensions to represent loaded trust policy
 * Build NSS trust objects from stapled certificate extensions
 * Add further attribute debugging for NSS trust objects
 * Use a custom certificate extension for the OpenSSL reject purpose data
 * Use SubjectKeyIdentifier for OpenSSL keyid data
 * Use ExtendedKeyUsage for OpenSSL trust purpose data
 * Implement simple way to handle binary DER OIDs, using the DER TLV
   length. DER OIDs are used in the CKA_OBJECT_ID value, and elsewhere.
 * Split out the building of NSS trust objects from the main parser

12 years agoBetter debugging and checks for attribute values
Stef Walter [Wed, 2 Jan 2013 15:52:59 +0000 (16:52 +0100)]
Better debugging and checks for attribute values

12 years agoAdd tool for testing how fast the token loads
Stef Walter [Wed, 19 Dec 2012 14:08:18 +0000 (15:08 +0100)]
Add tool for testing how fast the token loads

12 years agoSome debug info about which files are being loaded
Stef Walter [Mon, 17 Dec 2012 21:38:11 +0000 (22:38 +0100)]
Some debug info about which files are being loaded

12 years agoTest a TRUSTED CERTIFICATE without any trust OIDs
Stef Walter [Mon, 17 Dec 2012 20:41:44 +0000 (21:41 +0100)]
Test a TRUSTED CERTIFICATE without any trust OIDs

12 years agoAdd the builtin roots NSS specific object
Stef Walter [Mon, 17 Dec 2012 15:05:36 +0000 (16:05 +0100)]
Add the builtin roots NSS specific object

This tells NSS that this is a source of anchors.

12 years agoAdd support for openssl TRUSTED CERTIFICATE PEM files
Stef Walter [Mon, 17 Dec 2012 11:51:53 +0000 (12:51 +0100)]
Add support for openssl TRUSTED CERTIFICATE PEM files

12 years agoAdd support for parsing PEM files
Stef Walter [Mon, 17 Dec 2012 10:04:42 +0000 (11:04 +0100)]
Add support for parsing PEM files

12 years agoAdd basic trust module
Stef Walter [Thu, 24 Jan 2013 10:34:47 +0000 (11:34 +0100)]
Add basic trust module

This is based off the roots-store from gnome-keyring and loads
certificates from a root directory and exposes them as PKCS#11
objects.

12 years agoAdd basic checksum algorithms
Stef Walter [Thu, 24 Jan 2013 10:28:47 +0000 (11:28 +0100)]
Add basic checksum algorithms

The SHA-1 and MD5 digests here are used for checksums in legacy
protocols. We don't use them in cryptographic contexts at all.
These particular algorithms would be poor choices for that.

12 years agoRemove the unused err() function and friends
Stef Walter [Tue, 5 Feb 2013 13:15:12 +0000 (14:15 +0100)]
Remove the unused err() function and friends

We want to use p11_message in our commands anyway, since that
allows us control with --verbose and --quiet.

12 years agoTweak style of the manual
Stef Walter [Tue, 5 Feb 2013 10:52:07 +0000 (11:52 +0100)]
Tweak style of the manual

 * Unindent the main headings
 * Don't wrap options
 * Better spacing in table of contents
 * Don't have line numbers on code examples

12 years agoAdd documentation about contributing to p11-kit
Stef Walter [Tue, 5 Feb 2013 10:50:16 +0000 (11:50 +0100)]
Add documentation about contributing to p11-kit

12 years agoAdd a p11-kit tool manual page
Stef Walter [Tue, 5 Feb 2013 09:21:49 +0000 (10:21 +0100)]
Add a p11-kit tool manual page

12 years agoChange the documentation configure arg to --enable-doc
Stef Walter [Tue, 5 Feb 2013 09:20:56 +0000 (10:20 +0100)]
Change the documentation configure arg to --enable-doc

 * We're building more than just the gtk-doc reference

12 years agoAdd a /usr/share/p11-kit/modules directory for package module configs
Stef Walter [Tue, 29 Jan 2013 11:53:29 +0000 (12:53 +0100)]
Add a /usr/share/p11-kit/modules directory for package module configs

 * Try to make /etc/pkcs11/modules for administrator use
 * Override the old pkg-config variables to help packages start
   using the new location

12 years agoMake the p11-kit tool have distinct commands
Stef Walter [Tue, 29 Jan 2013 10:43:09 +0000 (11:43 +0100)]
Make the p11-kit tool have distinct commands

 * Change the -l argument into the list-modules command.
 * Add proper functions for printing usage
 * Support for external commands in the path or /usr/share/p11-kit

12 years agoAdd p11_kit_be_loud() function for use in tests and tools
Stef Walter [Tue, 29 Jan 2013 10:42:26 +0000 (11:42 +0100)]
Add p11_kit_be_loud() function for use in tests and tools

This does the opposite of p11_kit_be_quiet().

12 years agoAdd internal function for turning on messages
Stef Walter [Thu, 23 Aug 2012 17:17:46 +0000 (19:17 +0200)]
Add internal function for turning on messages

To be used from tests

12 years agoAdd more mock-module implementation
Stef Walter [Thu, 24 Jan 2013 08:30:33 +0000 (09:30 +0100)]
Add more mock-module implementation

 * Move mock code into the common/ directory to be used by multiple
   components of p11-kit

12 years agoFurther tweaks and cleanup for functions dealing with PKCS#11 attributes
Stef Walter [Thu, 24 Jan 2013 13:36:59 +0000 (14:36 +0100)]
Further tweaks and cleanup for functions dealing with PKCS#11 attributes

 * Check that the size is correct when looking for a boolean
   or a ulong.
 * Make sure that the length is not the invalid negative ulong.
 * Functions for dumping out attribute contents
 * Make it possible to use attributes in hash tables

12 years agoAdd generic buffer code
Stef Walter [Thu, 24 Jan 2013 07:56:46 +0000 (08:56 +0100)]
Add generic buffer code

Represents a block of memory that can be added to, parsed and so on

12 years agoUse the stdbool.h C99 bool type
Stef Walter [Wed, 23 Jan 2013 13:29:25 +0000 (14:29 +0100)]
Use the stdbool.h C99 bool type

It was getting really wild knowing whether a function returning
an int would return -1 on failure or 0 or whether the int return
value was actually a number etc..

12 years agoOnly initialize p11-kit libraries once
Stef Walter [Mon, 17 Dec 2012 16:11:50 +0000 (17:11 +0100)]
Only initialize p11-kit libraries once

 * Make the gcc constructor call p11_library_init_once()

12 years agoSet strict debug preconditions during testing
Stef Walter [Mon, 10 Dec 2012 10:13:01 +0000 (11:13 +0100)]
Set strict debug preconditions during testing

12 years agoAdd common functions for manipulating CK_ATTRIBUTE arrays
Stef Walter [Mon, 7 Jan 2013 10:12:29 +0000 (11:12 +0100)]
Add common functions for manipulating CK_ATTRIBUTE arrays

12 years agoMove the pkcs11.h header files into common directory
Stef Walter [Wed, 2 Jan 2013 15:52:02 +0000 (16:52 +0100)]
Move the pkcs11.h header files into common directory

 * Allows use of them across the whole project
 * Put a stub file in the p11-kit/ directory, so we can still refer
   to the headers using that path, which is what it will be at
   when in the installed includes directory.

12 years agoBuild common code into noinst libraries
Stef Walter [Tue, 8 Jan 2013 11:27:48 +0000 (12:27 +0100)]
Build common code into noinst libraries

 * This is cleaner than building the same source files all over
   the place over and over.
 * Works better with code coverage.

12 years agoMove debug and library code into the common/ subdirectory
Stef Walter [Thu, 6 Dec 2012 21:42:02 +0000 (22:42 +0100)]
Move debug and library code into the common/ subdirectory

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.

12 years agoFix leak when initializing the proxy module
Pankaj Sharma [Mon, 24 Dec 2012 08:49:00 +0000 (08:49 +0000)]
Fix leak when initializing the proxy module

https://bugs.freedesktop.org/show_bug.cgi?id=58704

12 years agoDocumentation fixes for PIN functions
Stef Walter [Wed, 9 Jan 2013 12:41:34 +0000 (13:41 +0100)]
Documentation fixes for PIN functions

12 years agoFix file descriptor leak in p11_kit_pin_file_callback()
Pankaj Sharma [Mon, 24 Dec 2012 09:13:00 +0000 (09:13 +0000)]
Fix file descriptor leak in p11_kit_pin_file_callback()

 * Close the file descriptor used to read the the pin file

https://bugs.freedesktop.org/show_bug.cgi?id=58706

12 years agoDistribute HACKING in the tarball
Stef Walter [Tue, 8 Jan 2013 08:38:05 +0000 (09:38 +0100)]
Distribute HACKING in the tarball

12 years agoFix documentation warnings.
Stef Walter [Mon, 7 Jan 2013 10:01:09 +0000 (11:01 +0100)]
Fix documentation warnings.

 * P11_KIT_URI_NO_MEMORY is an unexpected state, that will probably
   never actually be returned. But kept for API compatibility.
 * make distcheck doc fix

12 years agoGuarantee that the key is freed when replaced
Stef Walter [Mon, 7 Jan 2013 08:20:25 +0000 (09:20 +0100)]
Guarantee that the key is freed when replaced

 * When setting a key in a map that already exists, then free
   the old key and replace with the new one.
 * Fix related bug where key was not properly allocated
 * Add tests for this

https://bugs.freedesktop.org/show_bug.cgi?id=59087

12 years agoDon't complain if we cannot access ~/.pkcs11/pkcs11.conf
Stef Walter [Wed, 14 Nov 2012 10:31:30 +0000 (11:31 +0100)]
Don't complain if we cannot access ~/.pkcs11/pkcs11.conf

 * If a process is running under selinux it may not be able
   to access the home directory of the uid that it is running as.

https://bugs.freedesktop.org/show_bug.cgi?id=57115

12 years agoRefuse to load the p11-kit-proxy.so as a registered module
Stef Walter [Tue, 18 Sep 2012 14:26:06 +0000 (16:26 +0200)]
Refuse to load the p11-kit-proxy.so as a registered module

 * 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

12 years agoDon't fail initialization if last initialized module fails
Stef Walter [Tue, 18 Sep 2012 12:01:54 +0000 (14:01 +0200)]
Don't fail initialization if last initialized module fails

 * We weren't resetting the result code after a failure,
   so even though failures for critical modules didn't interrupt
   the initialization loop, the result still leaked to callers.
 * Also print an error message clearly indicating that a module
   failed to initialize, regardless of whether critical or not.

https://bugs.freedesktop.org/show_bug.cgi?id=55051

12 years agoRelease version 0.14 0.14
Stef Walter [Thu, 6 Sep 2012 09:34:07 +0000 (11:34 +0200)]
Release version 0.14

12 years agoChange the default of 'user-config' to merge.
Stef Walter [Thu, 6 Sep 2012 09:01:57 +0000 (11:01 +0200)]
Change the default of 'user-config' to merge.

 * This allows user configured PKCS#11 modules by default.
 * Admins can change this to 'none' in /etc/pkcs11/pkcs11.conf
   to go back to the previous behavior.
 * Posted to the mailing list.

12 years agoconfigure.ac: Fix bogus comma, and fix up spacing
Antoine Jacoutot [Thu, 23 Aug 2012 12:00:16 +0000 (14:00 +0200)]
configure.ac: Fix bogus comma, and fix up spacing

 * Fixes a mistake in the previous commit

https://bugs.freedesktop.org/show_bug.cgi?id=53706

12 years agoUse AC_LANG_PROGRAM to detect program_invocation_short_name functionality
Antoine Jacoutot [Tue, 21 Aug 2012 09:16:00 +0000 (09:16 +0000)]
Use AC_LANG_PROGRAM to detect program_invocation_short_name functionality

Were erroneusly detecting program_invocation_short_name on OpenBSD

https://bugs.freedesktop.org/show_bug.cgi?id=53706

12 years agoFix build on solaris
Rob McMahon [Tue, 31 Jul 2012 16:21:42 +0000 (18:21 +0200)]
Fix build on solaris

 * Conditional inclusion of the errno.h header
 * Link librt when appropriate for nanosleep

https://bugs.freedesktop.org/show_bug.cgi?id=52261

12 years agoAlways encode the "id" attribute in URIs
Dan Winship [Fri, 27 Jul 2012 19:52:03 +0000 (15:52 -0400)]
Always encode the "id" attribute in URIs

Per recommendation of the spec.

https://bugs.freedesktop.org/show_bug.cgi?id=52606

12 years agoInitialize mutexes correctly in mock module
Stef Walter [Tue, 17 Jul 2012 06:09:16 +0000 (08:09 +0200)]
Initialize mutexes correctly in mock module

https://bugzilla.gnome.org/show_bug.cgi?id=44740

12 years agoFix warning on windows
Stef Walter [Tue, 17 Jul 2012 06:09:03 +0000 (08:09 +0200)]
Fix warning on windows

https://bugzilla.gnome.org/show_bug.cgi?id=44740

12 years agoDon't rely on loading order for duplicate modules
Stef Walter [Tue, 17 Jul 2012 06:08:04 +0000 (08:08 +0200)]
Don't rely on loading order for duplicate modules

 * We had relied on module 'two' loading before 'two-duplicate'
   in the conf tests. However this isn't always the case, and the
   name of the module can end up as 'two-duplicate'

https://bugzilla.gnome.org/show_bug.cgi?id=44740

12 years agoUse Windows thread ids instead of handles for comparisons
Stef Walter [Tue, 17 Jul 2012 06:06:28 +0000 (08:06 +0200)]
Use Windows thread ids instead of handles for comparisons

 * It seems that the HANDLE's returned from GetCurrentThread
   are often equal for two threads. GetCurrentThreadID doesn't
   have this problem.
 * Separate our cross platform thread_t and thread_id_t types
   even though on unix they're the same thing.

https://bugzilla.gnome.org/show_bug.cgi?id=44740

12 years agoUse correct shared library extension on windows
Stef Walter [Tue, 17 Jul 2012 06:05:18 +0000 (08:05 +0200)]
Use correct shared library extension on windows

 * The windows shared libraries have the .dll extension
 * This means we also need separate directories for the test module
   configs on win32

https://bugzilla.gnome.org/show_bug.cgi?id=44740

12 years agoUse '.module' extension on module configs
Stef Walter [Mon, 16 Jul 2012 15:56:24 +0000 (17:56 +0200)]
Use '.module' extension on module configs

 * And want alphanumeric/_.- filenames
 * Currently this is just a warning, soon it will be enforced
 * The name of a module does not include the extension

Andreas Metzler and Ubuntu both worked on this patch, and I've made
some more changes.

See https://bugs.launchpad.net/ubuntu/+source/p11-kit/+bug/911436

https://bugs.freedesktop.org/show_bug.cgi?id=52158

12 years agoFix compiler warning about uninitialized variable
Stef Walter [Tue, 24 Jul 2012 04:54:16 +0000 (06:54 +0200)]
Fix compiler warning about uninitialized variable

12 years agoDon't use strict aliasing during compilation
Stef Walter [Tue, 24 Jul 2012 04:53:37 +0000 (06:53 +0200)]
Don't use strict aliasing during compilation

 * Due to the way in which we pass pointers of different types
   to _p11_hash_iter_next()

12 years agoFix getprogname() running under wine
Stef Walter [Tue, 17 Jul 2012 04:09:52 +0000 (06:09 +0200)]
Fix getprogname() running under wine

 * Wine uses normal slashes instead of backslashes on windows

12 years agoUse EFBIG as the error code when pin file is too large
Stef Walter [Tue, 17 Jul 2012 03:47:59 +0000 (05:47 +0200)]
Use EFBIG as the error code when pin file is too large

 * The previous EOVERFLOW was not supported on mingw

12 years agoDon't define duplicate symbols
Stef Walter [Mon, 16 Jul 2012 16:58:34 +0000 (18:58 +0200)]
Don't define duplicate symbols

 * clang was giving a build failure here.

12 years agoRelease version 0.13 0.13
Stef Walter [Mon, 16 Jul 2012 13:08:14 +0000 (15:08 +0200)]
Release version 0.13

12 years agoDon't allow reading of pin files larger than 4096 bytes
Stef Walter [Fri, 29 Jun 2012 14:26:20 +0000 (16:26 +0200)]
Don't allow reading of pin files larger than 4096 bytes

 * p11_kit_pin_file_callback() only returns pins up to 4096 bytes now

12 years agoWin32 build fixes
Stef Walter [Fri, 29 Jun 2012 14:10:47 +0000 (16:10 +0200)]
Win32 build fixes

 * Remove unused functions
 * Use getprogname() instead of calc_progname() which no longer exists
 * Fix up exporting of functions in the mock module

12 years agotools: Don't barf when p11-kit -h
Stef Walter [Wed, 27 Jun 2012 09:43:12 +0000 (11:43 +0200)]
tools: Don't barf when p11-kit -h

12 years agoIf a module is not marked 'critical' then ignore failure
Stef Walter [Wed, 27 Jun 2012 09:15:33 +0000 (11:15 +0200)]
If a module is not marked 'critical' then ignore failure

 * Ignore failure when initializing registered modules when
   'critical' is not set on a module.

12 years agoFix the flags in pin.h
Stef Walter [Fri, 8 Jun 2012 07:29:59 +0000 (09:29 +0200)]
Fix the flags in pin.h

 * Due to a brain fart the P11_KIT_PIN_* flags were not
   bit flags but decimal numbers.
 * This necessarily breaks API/ABI for users of the
   P11_KIT_PIN_FLAGS_RETRY, P11_KIT_PIN_FLAGS_MANY_TRIES and
   P11_KIT_PIN_FLAGS_FINAL_TRY flags. But those wouldn't have
   worked anyway.

12 years agoPreconditions to check for input probs and out of memory
Stef Walter [Sun, 13 May 2012 20:27:07 +0000 (22:27 +0200)]
Preconditions to check for input probs and out of memory

 * We don't try to guarantee completely robust and problem
   free behavior in cases where the caller or process isn't
   behaving. We consider these to be outside of our control.

12 years agoUse gcc extensions to check varargs during compile
Stef Walter [Sun, 13 May 2012 12:03:17 +0000 (14:03 +0200)]
Use gcc extensions to check varargs during compile

 * Add macros GNUC_PRINTF and GNUC_NULL_TERMINATED to check
   correct printf and NULL terminated style varargs

12 years agoFix test modules linking errors
Stef Walter [Tue, 1 May 2012 09:09:50 +0000 (11:09 +0200)]
Fix test modules linking errors

 * And display warning messages in the debug output

12 years agoProvide compat getprogname() implementations on other OS's
Stef Walter [Tue, 1 May 2012 08:38:58 +0000 (10:38 +0200)]
Provide compat getprogname() implementations on other OS's

 * And use them in our replacement err() and p11_kit_set_progname()

12 years agoMove the compat.[ch] headers into common directory/
Stef Walter [Mon, 30 Apr 2012 20:49:41 +0000 (22:49 +0200)]
Move the compat.[ch] headers into common directory/

 * And the compat stuff in the p11-kit directory merged
   into util.c and util.h

12 years agoDoc tweaks for PIN functionality
Stef Walter [Mon, 16 Apr 2012 17:21:12 +0000 (19:21 +0200)]
Doc tweaks for PIN functionality

12 years agoAdd tests for enable-in and disable-in
Stef Walter [Mon, 2 Apr 2012 13:36:34 +0000 (15:36 +0200)]
Add tests for enable-in and disable-in

12 years agoBuild some test modules for testing main p11-kit functionality
Stef Walter [Mon, 2 Apr 2012 05:34:25 +0000 (07:34 +0200)]
Build some test modules for testing main p11-kit functionality

 * And put together a test for duplicate modules

12 years agoAdd more p11-kit cleanup to fix valgrind leak reports
Stef Walter [Mon, 27 Feb 2012 19:27:09 +0000 (20:27 +0100)]
Add more p11-kit cleanup to fix valgrind leak reports

 * per-thread memory isn't actually a real memory leak, but was
   still reachable after exit, so clean this up.

12 years agoFix crasher when a duplicate module is present
Stef Walter [Sun, 1 Apr 2012 19:56:35 +0000 (21:56 +0200)]
Fix crasher when a duplicate module is present

12 years agoAdd enable-in and disable-in options to module config
Stef Walter [Sun, 1 Apr 2012 19:53:04 +0000 (21:53 +0200)]
Add enable-in and disable-in options to module config

 * 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.

12 years agoFix broken hashmap behavior
Stef Walter [Tue, 27 Mar 2012 10:14:56 +0000 (12:14 +0200)]
Fix broken hashmap behavior

 * We were relying on undefined gcc behavior related to the &
   operator.
 * This would show up as a test failure when running with -O2 on
   certain GCC versions, as well as failure on clang 3.1

12 years agoRemove p11-kit.pot file from git
Stef Walter [Mon, 19 Mar 2012 15:21:48 +0000 (16:21 +0100)]
Remove p11-kit.pot file from git

 * Generated automatically

12 years agoRelease version 0.12 0.12
Stef Walter [Fri, 9 Mar 2012 13:15:35 +0000 (14:15 +0100)]
Release version 0.12

12 years agoFix build problem due to pthread extensions usage
Simon Josefsson [Thu, 8 Mar 2012 19:13:21 +0000 (20:13 +0100)]
Fix build problem due to pthread extensions usage

See: http://ipozgaj.blogspot.com/2006/08/posix-threads-and-manual-pages-rant.htm

13 years agoRelease 0.11 0.11
Stef Walter [Tue, 7 Feb 2012 13:45:05 +0000 (14:45 +0100)]
Release 0.11

13 years agoRemove automatic reinitialization of PKCS#11 after fork
Stef Walter [Mon, 23 Jan 2012 08:09:31 +0000 (09:09 +0100)]
Remove automatic reinitialization of PKCS#11 after fork

 * First of all one should only call async-signal-safe functions
   from the callbacks of pthread_atfork(), and so we cannot
   reinitialize directly.
 * Some modules use pthread_atfork() to detect forking and setup
   their internal state. If we call into them in our pthread_atfork()
   callback then this is inherently racy.
 * There was danger of endless loops and deadlocks which are caused
   by handlers which fork in their C_Initialize
 * Many processes do fork/exec, reinitializing PKCS#11 for these
   forks is quite resourc intensive when the child process won't use
   PKCS#11 at all.

13 years agoRelease version 0.10 0.10
Stef Walter [Tue, 3 Jan 2012 16:00:51 +0000 (17:00 +0100)]
Release version 0.10

13 years agoFix build warning on mingw64
Stef Walter [Mon, 2 Jan 2012 10:54:50 +0000 (11:54 +0100)]
Fix build warning on mingw64

13 years agoCompile CuTest.c separately.
Andreas Metzler [Fri, 23 Dec 2011 13:25:58 +0000 (14:25 +0100)]
Compile CuTest.c separately.

Use regular compile and link instead of having #include "CuTest.c" in
every test. Works around gcc optimization issue.

13 years agoReorganize tests, work around optimization bug
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

13 years agoRun tests correctly in automake
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

13 years agoBuild fix for MinGW w64
Michael Cronenworth [Fri, 25 Nov 2011 16:13:59 +0000 (17:13 +0100)]
Build fix for MinGW w64

13 years agoRelease version 0.9 0.9
Stef Walter [Mon, 14 Nov 2011 11:04:51 +0000 (12:04 +0100)]
Release version 0.9

13 years agoReduce autofoo dependencies
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

13 years agoAn intelligent error message when gettextize is not around
Stef Walter [Tue, 1 Nov 2011 14:44:09 +0000 (14:44 +0000)]
An intelligent error message when gettextize is not around

13 years agop11-kit can't be used as a static library
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.

13 years agoFix problems crashing when freeing TLS on windows
Stef Walter [Sat, 29 Oct 2011 08:29:23 +0000 (01:29 -0700)]
Fix problems crashing when freeing TLS on windows

13 years agoAdd debug output to windows init and uninit of library
Stef Walter [Sat, 29 Oct 2011 08:29:04 +0000 (01:29 -0700)]
Add debug output to windows init and uninit of library

13 years agoMake build not depend on gtk-doc or pkg-config
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.

13 years agoHandle build case when gettextize is not available or not installed
Stef Walter [Sat, 29 Oct 2011 05:48:54 +0000 (07:48 +0200)]
Handle build case when gettextize is not available or not installed

13 years agoFix build with clang
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

13 years agoFix broken build on cygwin and mingw
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

13 years agoFix broken build on windows
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.

13 years agoRelease version 0.8 0.8
Stef Walter [Mon, 24 Oct 2011 07:49:23 +0000 (09:49 +0200)]
Release version 0.8

13 years agoMore fixes for non-static function names
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

13 years agoRename non-static functions to have a _p11_xxx prefix.
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