]>
granicus.if.org Git - p11-kit/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
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'
Stef Walter [Fri, 27 May 2011 13:16:48 +0000 (15:16 +0200)]
Fix up documentation
Stef Walter [Fri, 27 May 2011 13:12:38 +0000 (15:12 +0200)]
Fix problems with 'make distcheck'
Stef Walter [Fri, 27 May 2011 12:45:50 +0000 (14:45 +0200)]
Fix uninitialized variable problem.
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.
Stef Walter [Thu, 26 May 2011 14:13:49 +0000 (16:13 +0200)]
Add functions for clearing and setting multiple attributes on URI.
Stef Walter [Thu, 26 May 2011 07:58:56 +0000 (09:58 +0200)]
Return proper errors when NULL is passed to mutex functions.
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.
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.
Stef Walter [Tue, 24 May 2011 16:36:25 +0000 (18:36 +0200)]
Fix null pointer dereference.
Stef Walter [Tue, 5 Apr 2011 15:46:58 +0000 (17:46 +0200)]
Fix lots of bugs and add more debugging statements.
Stef Walter [Tue, 5 Apr 2011 14:56:08 +0000 (16:56 +0200)]
Add basic tool for p11-kit.
List modules:
$ p11-kit -l
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
Stef Walter [Fri, 1 Apr 2011 07:46:30 +0000 (09:46 +0200)]
Fix up copyright lines.
Stef Walter [Thu, 31 Mar 2011 16:37:31 +0000 (18:37 +0200)]
Add C++ header guards, and require API instability acknowledgement.
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.
Stef Walter [Thu, 31 Mar 2011 12:58:41 +0000 (14:58 +0200)]
Give reference chapter an explicit id.
Stef Walter [Thu, 31 Mar 2011 12:58:30 +0000 (14:58 +0200)]
Add make target for uploading docs.
Stef Walter [Thu, 31 Mar 2011 12:50:25 +0000 (14:50 +0200)]
Mix in other documentation.
Stef Walter [Thu, 31 Mar 2011 12:34:06 +0000 (14:34 +0200)]
Fix up styling and tweaks.
Stef Walter [Thu, 31 Mar 2011 12:27:56 +0000 (14:27 +0200)]
Fix up styling of documentation.
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.
Stef Walter [Thu, 31 Mar 2011 08:18:05 +0000 (10:18 +0200)]
WIP
Stef Walter [Thu, 31 Mar 2011 08:48:13 +0000 (10:48 +0200)]
Fix for previous commit.
Actually use the alloc_module_unlocked() function.
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.
Stef Walter [Thu, 3 Mar 2011 14:54:23 +0000 (15:54 +0100)]
Add info and copyright.
Stef Walter [Thu, 3 Mar 2011 14:50:56 +0000 (15:50 +0100)]
The start of some documentation.
Stef Walter [Mon, 21 Feb 2011 19:44:42 +0000 (20:44 +0100)]
Add uri function for listing which attribute types are present.
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.
Stef Walter [Sat, 19 Feb 2011 15:33:36 +0000 (16:33 +0100)]
Reference implementation of PKCS#11 URIs
Stef Walter [Fri, 18 Feb 2011 09:53:07 +0000 (10:53 +0100)]
Add p11_kit_strerror() method and internationalization.
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.
Stef Walter [Thu, 17 Feb 2011 21:24:16 +0000 (22:24 +0100)]
Add a proper pkg-config file.
Stef Walter [Thu, 17 Feb 2011 19:01:21 +0000 (20:01 +0100)]
Only allow colon between name and value.
Stef Walter [Sun, 30 Jan 2011 14:26:23 +0000 (08:26 -0600)]
Configuration tests.
Stef Walter [Wed, 26 Jan 2011 18:46:14 +0000 (12:46 -0600)]
Add testing and start testing hash table functionality.
Stef Walter [Tue, 25 Jan 2011 03:41:55 +0000 (21:41 -0600)]
Reinitialize modules after fork().
Stef Walter [Tue, 25 Jan 2011 03:25:02 +0000 (21:25 -0600)]
Initial implementation with new config system.
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.
Stef Walter [Sat, 22 Jan 2011 22:34:29 +0000 (16:34 -0600)]
Rework public library API so that we can initialize arbitrary
modules.
Stef Walter [Sat, 22 Jan 2011 20:45:57 +0000 (14:45 -0600)]
Rough idea of possible library functions.
Stef Walter [Thu, 20 Jan 2011 19:36:33 +0000 (13:36 -0600)]
Initial implementation of p11-unity