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

13 years agoMore fine tuning of the pin APIs.
Stef Walter [Wed, 6 Jul 2011 10:48:52 +0000 (12:48 +0200)]
More fine tuning of the pin APIs.

13 years agoAdd documentation for PIN callbacks.
Stef Walter [Fri, 24 Jun 2011 14:36:50 +0000 (16:36 +0200)]
Add documentation for PIN callbacks.

13 years agoAdd P11KitPin structure, which encapsulates a returned pin.
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.

13 years agoRename p11_kit_pin_read_pinfile to p11_kit_pin_retrieve
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.

13 years agoImplement support for registering and calling pinfile callbacks
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.

13 years agoFix logic error loading registered modules.
Stef Walter [Thu, 16 Jun 2011 17:05:22 +0000 (18:05 +0100)]
Fix logic error loading registered modules.

Thanks to Richard Bellgrim.

13 years agoUpdate pkcs11.h with PKCS#11 2.20 ammendments.
Stef Walter [Thu, 9 Jun 2011 18:38:04 +0000 (20:38 +0200)]
Update pkcs11.h with PKCS#11 2.20 ammendments.

13 years agoFixed typos and made options clearer.
Stef Walter [Thu, 9 Jun 2011 09:06:19 +0000 (11:06 +0200)]
Fixed typos and made options clearer.

13 years agoBy default use /etc/pkcs11 for system configs and not ${prefix}
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.

13 years agoComplete documentation for message functionality.
Stef Walter [Thu, 9 Jun 2011 08:24:07 +0000 (10:24 +0200)]
Complete documentation for message functionality.

13 years agoComplete testing of global config files and directories.
Stef Walter [Thu, 9 Jun 2011 08:13:45 +0000 (10:13 +0200)]
Complete testing of global config files and directories.

13 years agoStore last failure message per thread.
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.

13 years agoRefactor configuration
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.

13 years agoIgnore files without a 'module' value.
Stef Walter [Wed, 8 Jun 2011 15:21:44 +0000 (17:21 +0200)]
Ignore files without a 'module' value.

 * Just skip loading these.

13 years agoBump version number.
Stef Walter [Tue, 7 Jun 2011 15:53:06 +0000 (15:53 +0000)]
Bump version number.

13 years agoMake target for uploading release.
Stef Walter [Tue, 7 Jun 2011 15:47:47 +0000 (15:47 +0000)]
Make target for uploading release.

13 years agoRelease version 0.1 0.1
Stef Walter [Tue, 7 Jun 2011 14:06:45 +0000 (14:06 +0000)]
Release version 0.1

13 years agoFix up documentation
Stef Walter [Tue, 7 Jun 2011 13:06:51 +0000 (13:06 +0000)]
Fix up documentation

13 years agoAdd p11_kit_space_strdup() function, and rename p11_kit_space_strlen()
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.

13 years agoFix more memory errors and leaks in module code.
Stef Walter [Tue, 7 Jun 2011 12:44:06 +0000 (12:44 +0000)]
Fix more memory errors and leaks in module code.

13 years agoFree string output of conf-test
Stef Walter [Tue, 7 Jun 2011 12:10:19 +0000 (12:10 +0000)]
Free string output of conf-test

13 years agoFix URI parsing memory leaks.
Stef Walter [Tue, 7 Jun 2011 12:09:05 +0000 (12:09 +0000)]
Fix URI parsing memory leaks.

13 years agoFix some hash leaks and bugs.
Stef Walter [Tue, 7 Jun 2011 12:06:20 +0000 (12:06 +0000)]
Fix some hash leaks and bugs.

13 years agoFix compiler warnings.
Stef Walter [Tue, 7 Jun 2011 11:46:14 +0000 (11:46 +0000)]
Fix compiler warnings.

13 years agoRemove unstable API markers.
Stef Walter [Tue, 7 Jun 2011 11:37:39 +0000 (11:37 +0000)]
Remove unstable API markers.

13 years agoModernize autotools setup.
Stef Walter [Mon, 6 Jun 2011 20:05:35 +0000 (20:05 +0000)]
Modernize autotools setup.

13 years agoClear correct block of memory in p11_kit_uri_parse().
Stef Walter [Mon, 30 May 2011 16:53:09 +0000 (18:53 +0200)]
Clear correct block of memory in p11_kit_uri_parse().

13 years agoGNU style definitions in uri.h as well as normal.
Stef Walter [Mon, 30 May 2011 12:17:44 +0000 (14:17 +0200)]
GNU style definitions in uri.h as well as normal.

13 years agoCleanup URI types
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.

13 years agoSet the return value properly in p11_kit_load_initialize_module()
Stef Walter [Mon, 30 May 2011 11:12:58 +0000 (13:12 +0200)]
Set the return value properly in p11_kit_load_initialize_module()

13 years agoAdd function p11_kit_uri_space_strlen() for figuring out the length
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.

13 years agoAllow use with CRYPTOKI_GNU style use of PKCS#11
Stef Walter [Mon, 30 May 2011 11:11:26 +0000 (13:11 +0200)]
Allow use with CRYPTOKI_GNU style use of PKCS#11

13 years agoAdd p11_kit_load_initialize_module() function.
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.

13 years agoRename module arguments from 'funcs' to 'module'
Stef Walter [Fri, 27 May 2011 13:25:28 +0000 (15:25 +0200)]
Rename module arguments from 'funcs' to 'module'

13 years agoFix up documentation
Stef Walter [Fri, 27 May 2011 13:16:48 +0000 (15:16 +0200)]
Fix up documentation

13 years agoFix problems with 'make distcheck'
Stef Walter [Fri, 27 May 2011 13:12:38 +0000 (15:12 +0200)]
Fix problems with 'make distcheck'

13 years agoFix uninitialized variable problem.
Stef Walter [Fri, 27 May 2011 12:45:50 +0000 (14:45 +0200)]
Fix uninitialized variable problem.

13 years agoChange around installation of headers, pkg-config, and file names
Stef Walter [Fri, 27 May 2011 12:42:35 +0000 (14:42 +0200)]
Change around installation of headers, pkg-config, and file names

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

13 years agoAdd functions for clearing and setting multiple attributes on URI.
Stef Walter [Thu, 26 May 2011 14:13:49 +0000 (16:13 +0200)]
Add functions for clearing and setting multiple attributes on URI.

13 years agoReturn proper errors when NULL is passed to mutex functions.
Stef Walter [Thu, 26 May 2011 07:58:56 +0000 (09:58 +0200)]
Return proper errors when NULL is passed to mutex functions.

13 years agoURI API fine tuning
Stef Walter [Thu, 26 May 2011 07:37:36 +0000 (09:37 +0200)]
URI API fine tuning

 * Rework API for getting all the attributes, to match usage in PKCS#11
 * Add support for pinfile argument in URIs.
 * Complete tests.

13 years agoAdd p11_kit_uri_message() function.
Stef Walter [Wed, 25 May 2011 09:44:40 +0000 (11:44 +0200)]
Add p11_kit_uri_message() function.

Gets messages for p11-kit error codes.

13 years agoFix null pointer dereference.
Stef Walter [Tue, 24 May 2011 16:36:25 +0000 (18:36 +0200)]
Fix null pointer dereference.

13 years agoFix lots of bugs and add more debugging statements.
Stef Walter [Tue, 5 Apr 2011 15:46:58 +0000 (17:46 +0200)]
Fix lots of bugs and add more debugging statements.

13 years agoAdd basic tool for p11-kit.
Stef Walter [Tue, 5 Apr 2011 14:56:08 +0000 (16:56 +0200)]
Add basic tool for p11-kit.

List modules:
 $ p11-kit -l

13 years agoAdd support for debug tracing.
Stef Walter [Tue, 5 Apr 2011 15:19:09 +0000 (17:19 +0200)]
Add support for debug tracing.

Use P11_KIT_DEBUG=xxx environment variable to enable tracing. Must
have been built without --disable-debug option.

P11_KIT_DEBUG can (at this point) be one of these values:
 all
 help
 conf
 lib

13 years agoFix up copyright lines.
Stef Walter [Fri, 1 Apr 2011 07:46:30 +0000 (09:46 +0200)]
Fix up copyright lines.

13 years agoAdd C++ header guards, and require API instability acknowledgement.
Stef Walter [Thu, 31 Mar 2011 16:37:31 +0000 (18:37 +0200)]
Add C++ header guards, and require API instability acknowledgement.

13 years agoSupport setting of CK_C_INITIALIZE_ARGS.pReserved to string.
Stef Walter [Thu, 31 Mar 2011 16:21:38 +0000 (18:21 +0200)]
Support setting of CK_C_INITIALIZE_ARGS.pReserved to string.

This is a naughty little thing that a lot of PKCS#11 modules require
to be properly initialized. So we support setting pReserved to a string
that is in the config under the 'x-init-reserved' parameter.

13 years agoGive reference chapter an explicit id.
Stef Walter [Thu, 31 Mar 2011 12:58:41 +0000 (14:58 +0200)]
Give reference chapter an explicit id.

13 years agoAdd make target for uploading docs.
Stef Walter [Thu, 31 Mar 2011 12:58:30 +0000 (14:58 +0200)]
Add make target for uploading docs.

13 years agoMix in other documentation.
Stef Walter [Thu, 31 Mar 2011 12:50:25 +0000 (14:50 +0200)]
Mix in other documentation.

13 years agoFix up styling and tweaks.
Stef Walter [Thu, 31 Mar 2011 12:34:06 +0000 (14:34 +0200)]
Fix up styling and tweaks.

13 years agoFix up styling of documentation.
Stef Walter [Thu, 31 Mar 2011 12:27:56 +0000 (14:27 +0200)]
Fix up styling of documentation.

13 years agoDocumentation and API cleanup.
Stef Walter [Thu, 31 Mar 2011 10:41:43 +0000 (12:41 +0200)]
Documentation and API cleanup.

 * Rename source directory
 * More consistent with return values from URI functions.
 * Allow formatting URI to take a uri type.

13 years agoWIP
Stef Walter [Thu, 31 Mar 2011 08:18:05 +0000 (10:18 +0200)]
WIP

13 years agoFix for previous commit.
Stef Walter [Thu, 31 Mar 2011 08:48:13 +0000 (10:48 +0200)]
Fix for previous commit.

Actually use the alloc_module_unlocked() function.

13 years agoCustom initialization and finalization arguments cannot be supported.
Stef Walter [Thu, 31 Mar 2011 08:24:08 +0000 (10:24 +0200)]
Custom initialization and finalization arguments cannot be supported.

When multiple consumers are using a PKCS#11 module, initialization
(and finalization) arguments cannot be supported. The first one calling
would win out, and the others would get unexpected behavior.

13 years agoAdd info and copyright.
Stef Walter [Thu, 3 Mar 2011 14:54:23 +0000 (15:54 +0100)]
Add info and copyright.

13 years agoThe start of some documentation.
Stef Walter [Thu, 3 Mar 2011 14:50:56 +0000 (15:50 +0100)]
The start of some documentation.

13 years agoAdd uri function for listing which attribute types are present.
Stef Walter [Mon, 21 Feb 2011 19:44:42 +0000 (20:44 +0100)]
Add uri function for listing which attribute types are present.

13 years agoFix bug where we try to dlclose() modules we didn't load.
Stef Walter [Mon, 21 Feb 2011 19:44:17 +0000 (20:44 +0100)]
Fix bug where we try to dlclose() modules we didn't load.

13 years agoReference implementation of PKCS#11 URIs
Stef Walter [Sat, 19 Feb 2011 15:33:36 +0000 (16:33 +0100)]
Reference implementation of PKCS#11 URIs

13 years agoAdd p11_kit_strerror() method and internationalization.
Stef Walter [Fri, 18 Feb 2011 09:53:07 +0000 (10:53 +0100)]
Add p11_kit_strerror() method and internationalization.

13 years agoProperly read user-config setting.
Stef Walter [Thu, 17 Feb 2011 21:24:53 +0000 (22:24 +0100)]
Properly read user-config setting.

 * Unless the system 'user-config' setting is 'none' we allow
   the user to override or merge all settings, including the
   'user-config' setting.

13 years agoAdd a proper pkg-config file.
Stef Walter [Thu, 17 Feb 2011 21:24:16 +0000 (22:24 +0100)]
Add a proper pkg-config file.

13 years agoOnly allow colon between name and value.
Stef Walter [Thu, 17 Feb 2011 19:01:21 +0000 (20:01 +0100)]
Only allow colon between name and value.

14 years agoConfiguration tests.
Stef Walter [Sun, 30 Jan 2011 14:26:23 +0000 (08:26 -0600)]
Configuration tests.

14 years agoAdd testing and start testing hash table functionality.
Stef Walter [Wed, 26 Jan 2011 18:46:14 +0000 (12:46 -0600)]
Add testing and start testing hash table functionality.

14 years agoReinitialize modules after fork().
Stef Walter [Tue, 25 Jan 2011 03:41:55 +0000 (21:41 -0600)]
Reinitialize modules after fork().

14 years agoInitial implementation with new config system.
Stef Walter [Tue, 25 Jan 2011 03:25:02 +0000 (21:25 -0600)]
Initial implementation with new config system.

14 years agoRename to p11-kit.
Stef Walter [Mon, 24 Jan 2011 20:53:16 +0000 (14:53 -0600)]
Rename to p11-kit.

A less pretentios, better description of what's going on.

14 years agoRework public library API so that we can initialize arbitrary
Stef Walter [Sat, 22 Jan 2011 22:34:29 +0000 (16:34 -0600)]
Rework public library API so that we can initialize arbitrary
modules.

14 years agoRough idea of possible library functions.
Stef Walter [Sat, 22 Jan 2011 20:45:57 +0000 (14:45 -0600)]
Rough idea of possible library functions.

14 years agoInitial implementation of p11-unity
Stef Walter [Thu, 20 Jan 2011 19:36:33 +0000 (13:36 -0600)]
Initial implementation of p11-unity