]> granicus.if.org Git - p11-kit/log
p11-kit
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

12 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

13 years agoInitial port to win32
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

13 years agoFix up the build options.
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

13 years agoOnly call C_Initialize and C_Finalize once per module
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.

13 years agoCombine initialization tests
Stef Walter [Mon, 10 Oct 2011 10:21:58 +0000 (12:21 +0200)]
Combine initialization tests

13 years agoDon't allow recursive calling of C_Initialize on a given module.
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.

13 years agoRename p11-kit test
Stef Walter [Mon, 10 Oct 2011 09:54:38 +0000 (11:54 +0200)]
Rename p11-kit test

13 years agoDon't use PATH_MAX unless its defined
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

13 years agoPrint more information in 'p11-kit -l'
Stef Walter [Wed, 28 Sep 2011 09:27:13 +0000 (11:27 +0200)]
Print more information in 'p11-kit -l'

13 years agoRelease 0.7 0.7
Stef Walter [Tue, 27 Sep 2011 08:12:56 +0000 (10:12 +0200)]
Release 0.7

13 years agoDon't expand p11-kit config variables in configure.
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

13 years agoAdd test tool to print out error messages
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

13 years agoFix quoting of build variables
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

13 years agoExpand the libdir path correctly
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

13 years agoAdd #include <limits.h> for PATH_MAX to fix compilation on FreeBSD.
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

13 years agoRelease version 0.6 0.6
Stef Walter [Wed, 14 Sep 2011 14:13:43 +0000 (16:13 +0200)]
Release version 0.6

13 years agoAdd documentation about the configuration paths
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

13 years agoWhen a module has a relative path, load it from $libdir/pkcs11
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.

13 years agoRename pkgconfig configuration directory variables
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

13 years agoRelease version 0.5 0.5
Stef Walter [Wed, 31 Aug 2011 08:03:01 +0000 (10:03 +0200)]
Release version 0.5

13 years agoDon't crash if p11_kit_registered_modules() called after failed init
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

13 years agoRemove useless typedef
Stef Walter [Tue, 30 Aug 2011 19:18:40 +0000 (21:18 +0200)]
Remove useless typedef

13 years agoAdd 'critical' setting for modules
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'

13 years agoFix bugs in the p11-kit proxy module.
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

13 years agoRelease version 0.4 0.4
Stef Walter [Fri, 19 Aug 2011 08:33:07 +0000 (10:33 +0200)]
Release version 0.4

13 years agoIgnore spaces in PKCS#11 URIs
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.

13 years agoFix endless loop if module forks during initialization.
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.

13 years agoSafer initialization of individually initialized module.
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.

13 years agoUpdate PKCS#11 URI code for new draft of spec
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.

13 years agoDon't fail when duplicate modules are configured.
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

13 years agoBetter debug output for initialization and loading modules.
Stef Walter [Wed, 3 Aug 2011 06:16:32 +0000 (08:16 +0200)]
Better debug output for initialization and loading modules.

13 years agoFix broken debug arguments
Stef Walter [Wed, 3 Aug 2011 05:58:04 +0000 (07:58 +0200)]
Fix broken debug arguments

13 years agoAdd example configuration documentation.
Stef Walter [Mon, 1 Aug 2011 11:18:05 +0000 (13:18 +0200)]
Add example configuration documentation.

 * And also install example pkcs11.conf file.

13 years agoRelease version 0.3 0.3
Stef Walter [Fri, 29 Jul 2011 12:07:01 +0000 (14:07 +0200)]
Release version 0.3

13 years agoFix building with NLS enabled.
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

13 years agoUse AC_SEARCH_LIBS instead of AC_CHECK_LIB for dlopen() to fix on *BSD.
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

13 years agoMake p11-kit-proxy.so link point to libp11-kit.so.0.0.0
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

13 years agoAdd libtool style versioning variables to p11-kit
Stef Walter [Wed, 27 Jul 2011 13:42:31 +0000 (15:42 +0200)]
Add libtool style versioning variables to p11-kit

13 years agoFix bug in hashtable rewrite.
Stef Walter [Wed, 27 Jul 2011 10:35:55 +0000 (12:35 +0200)]
Fix bug in hashtable rewrite.

 * Initialization mixup.

13 years agoCleanup documentation warnings
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.

13 years agoCreate a link for the proxy module.
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

13 years agoReimplement and remove apache licensed bits of code.
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

13 years agoExpand the various pkcs11 config paths properly.
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.

13 years agoconfigure: Use $sysconfdir for p11_system_conf dir, not hardcoded /etc
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.

13 years agoIgnore some built files after recent changes.
Stef Walter [Tue, 19 Jul 2011 21:04:04 +0000 (23:04 +0200)]
Ignore some built files after recent changes.

13 years agobuild: Make autogen.sh work
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.

13 years agopin: Fix uninitialized variable
Stef Walter [Tue, 12 Jul 2011 15:37:14 +0000 (17:37 +0200)]
pin: Fix uninitialized variable

13 years agoBump version number, and tweak upload procedure
Stef Walter [Thu, 7 Jul 2011 16:59:54 +0000 (18:59 +0200)]
Bump version number, and tweak upload procedure

13 years agoRelease version 0.2 0.2
Stef Walter [Thu, 7 Jul 2011 16:45:23 +0000 (18:45 +0200)]
Release version 0.2

13 years agoList labels of all tokens in 'p11-kit -l'
Stef Walter [Wed, 6 Jul 2011 14:31:06 +0000 (16:31 +0200)]
List labels of all tokens in 'p11-kit -l'