]>
granicus.if.org Git - p11-kit/log
Stef Walter [Fri, 8 Aug 2014 15:18:37 +0000 (17:18 +0200)]
configure.ac: Add subdir-objects to satisfy newer automakes
Stef Walter [Fri, 8 Aug 2014 07:40:44 +0000 (09:40 +0200)]
trust: Fix use of invalid memory in PEM parser
Stef Walter [Fri, 8 Aug 2014 07:24:47 +0000 (09:24 +0200)]
trust: Parse TRUSTED CERTIFICATE openssl format even without CertAux
openssl sometimes outputs TRUSTED CERTIFICATE PEM files without the
additional CertAux (ie: trust fields) information. It simply leaves
that block out. This happens with a command like:
$ openssl x509 -in my-cert.pem -out output -trustout
Stef Walter [Fri, 8 Aug 2014 07:11:52 +0000 (09:11 +0200)]
common: Allow specifying which tests to run on command line
This modifies our common unit test code so we can specify full
test paths on the command line, and restrict the run tests to
the ones specified. Order is not respected at this time.
Stef Walter [Thu, 7 Aug 2014 11:28:16 +0000 (13:28 +0200)]
Release version 0.21.1
Stef Walter [Thu, 7 Aug 2014 11:31:44 +0000 (13:31 +0200)]
po: Add new translations: oc
Stef Walter [Thu, 7 Aug 2014 06:38:46 +0000 (08:38 +0200)]
common: Don't do repeated linear reallocation of array memory
Some mallocs (notably on Windows) have really poor behavior when
called repeatedly with a linearly growing buffer.
https://bugzilla.redhat.com/show_bug.cgi?id=985419
Stef Walter [Thu, 7 Aug 2014 06:37:50 +0000 (08:37 +0200)]
p11-kit: Tweak last commit, handle the not-forked case
When we hadn't forked, but were just not initialized, still return
CKR_CRYPTOKI_NOT_INITIALIZED from managed modules.
Stef Walter [Thu, 7 Aug 2014 05:47:00 +0000 (07:47 +0200)]
p11-kit: Don't complain about C_Finalize called in wrong process
When C_Finalize is called in the wrong process, it's often because
of a caller unaware of forking. This is a painful area of PKCS#11,
but at least for C_Finalize, lets not complain loudly about it.
Stef Walter [Tue, 24 Jun 2014 12:20:01 +0000 (14:20 +0200)]
p11-kit: Add a new 'isolate' pkcs11 config option
This sets 'remote' appropriately to run the module in a separate
process.
https://bugs.freedesktop.org/show_bug.cgi?id=80472
Stef Walter [Tue, 24 Jun 2014 11:34:20 +0000 (13:34 +0200)]
p11-kit: Cleanup and add documentation for 'remote' option
https://bugs.freedesktop.org/show_bug.cgi?id=54105
Stef Walter [Tue, 24 Jun 2014 11:24:47 +0000 (13:24 +0200)]
p11-kit: Add 'p11-kit remote' command for isolating modules
This adds a new tool to the p11-kit command called 'remote'. This
is the server side of remoting a PKCS#11 module.
Stef Walter [Wed, 20 Feb 2013 11:24:03 +0000 (12:24 +0100)]
rpc: Implement execution of another tool to transport PKCS#11 RPC
Stef Walter [Wed, 9 Oct 2013 21:25:03 +0000 (23:25 +0200)]
mock: Minor testing tweaks to mock testing
Stef Walter [Wed, 9 Oct 2013 19:40:24 +0000 (21:40 +0200)]
modules: Make config file and module configs overridable by tests
Stef Walter [Wed, 9 Oct 2013 19:39:42 +0000 (21:39 +0200)]
test: Move some file and directory code into general test stuff
Stef Walter [Wed, 20 Feb 2013 10:50:25 +0000 (11:50 +0100)]
Add compatibility fdwalk() function
This is used when execing another process to close all open
file descriptors that we don't wish to be inherited.
Stef Walter [Thu, 23 Aug 2012 13:34:04 +0000 (15:34 +0200)]
rpc: Implement PKCS#11 messages/client/server code
* This enables passing around bytes which represent PKCS#11 RPC calls.
* Caller is responsible for connecting/disconnecting and so on.
* Client side caller gets a mixin from p11_rpc_client_init() to call
into, which generates callbacks with byte arrays to be transported.
* Server side calls p11_rpc_server_handle() with a CK_FUNCTION_LIST_PTR
on which relevant methods get called.
* Doesn't yet implement the actual daemon or clients etc...
https://bugs.freedesktop.org/show_bug.cgi?id=54105
Andreas Metzler [Sun, 19 Jan 2014 13:14:24 +0000 (14:14 +0100)]
Fix typo: supress - > suppress
Stef Walter [Fri, 4 Jul 2014 13:57:52 +0000 (15:57 +0200)]
Release version 0.20.3
Nikos Mavrogiannopoulos [Fri, 4 Jul 2014 13:40:58 +0000 (15:40 +0200)]
Added test for non-null values in empty ID and label URI parts
Stef Walter [Fri, 4 Jul 2014 12:50:44 +0000 (14:50 +0200)]
p11-kit: Mark p11_kit_be_quiet() and p11_kit_be_loud() stable
These are useful functions for callers who want to supress all output
from p11-kit library.
Stef Walter [Thu, 3 Jul 2014 08:26:16 +0000 (10:26 +0200)]
p11-kit: Handle managed modules correctly when forking
Correctly allow reinitialization when a process forks.
We don't yet implement checks on all entry points of a managed
module, but this allows callers to call C_Initialize again
after forking, as outlined by the PKCS#11 v2 spec.
Pavel A [Tue, 1 Jul 2014 06:00:11 +0000 (08:00 +0200)]
common: Fixed implementation of strerror_r for WinXP
ie: when streror_s is missing in msvcrt.dll
https://bugs.freedesktop.org/show_bug.cgi?id=76594
Stef Walter [Wed, 25 Jun 2014 08:55:10 +0000 (10:55 +0200)]
p11-kit: Fix corrupted list when initialization of modules fail
This fixes the function call p11_kit_module_initialize() to
correctly rearrange the modules array when initializing a module
fails.
Also fixes p11_kit_modules_load_and_initialize()
Milan Crha [Fri, 20 Jun 2014 12:04:42 +0000 (14:04 +0200)]
Don't try to symlink p11-proxy.so on windows
https://bugs.freedesktop.org/show_bug.cgi?id=76594
Stef Walter [Fri, 20 Jun 2014 11:50:08 +0000 (13:50 +0200)]
configure: Require automake 1.12 or later
We can't use automake 1.10 as serial-tests is not supported
there.
Pavel A [Fri, 20 Jun 2014 11:42:14 +0000 (13:42 +0200)]
Proposed fix for compiler warnings in common/compat.c
when buliding for Windows (mingw).
This issue has been reported in bug #76594
a. Moved vasprintf before asprintf
b. Added prototypes for each of them
Thanks,
pa
Signed-off-by: Pavel A <pavel.aronsky@daynix.com>
Stef Walter [Thu, 13 Feb 2014 08:52:34 +0000 (09:52 +0100)]
proxy: Fix cases where modules are unloaded while in use
The proxy module would unload the PKCS#11 modules it was proxying
when C_Finalize() was called. However if a caller in another thread
was inside of a PKCS#11 function at the time, this would cause
a crash.
Change things around so that underlying modules are finalized during
the proxy C_Finalize() but not released/unloaded until the proxy
module itself is unloaded.
https://bugs.freedesktop.org/show_bug.cgi?id=74919
Stef Walter [Thu, 13 Feb 2014 08:57:53 +0000 (09:57 +0100)]
proxy: Remove assertions when module is not initialized
We should return CKR_CRYPTOKI_NOT_INITIALIZED rather than
assert() when proxy PKCS#11 functions are called before the
module is initialized.
https://bugs.freedesktop.org/show_bug.cgi?id=74919
Pascal Terjan [Sun, 9 Feb 2014 23:39:20 +0000 (23:39 +0000)]
Fix handling of mmap failure and mapping empty files
Check the return value of mmap() correctly.
Empty files cannot be mmap'd so we implement some
work around code for that.
https://bugs.freedesktop.org/show_bug.cgi?id=74773
Signed-off-by: Stef Walter <stef@thewalter.net>
Stef Walter [Wed, 29 Jan 2014 09:21:45 +0000 (18:21 +0900)]
Support running autogen.sh from srcdir != builddir
Stef Walter [Wed, 29 Jan 2014 09:17:02 +0000 (18:17 +0900)]
Don't use 'aux' directory name
Because Windows is really properly screwed up.
https://bugs.freedesktop.org/show_bug.cgi?id=74149
Stef Walter [Tue, 14 Jan 2014 14:21:05 +0000 (15:21 +0100)]
Release version 0.20.2
Stef Walter [Tue, 14 Jan 2014 14:37:18 +0000 (15:37 +0100)]
distcheck: Build with optimizations so we get proper warnings
Stef Walter [Tue, 14 Jan 2014 14:31:49 +0000 (15:31 +0100)]
test-iter: Fix use of uninitialized variable
Stef Walter [Tue, 14 Jan 2014 10:20:57 +0000 (11:20 +0100)]
trust: Add installcheck target for testing extract
This is an integration test that the extract and blacklist
functionality basics work.
More integration tests should follow, at which point we should
place the various generic testing bits into their own file.
Stef Walter [Tue, 14 Jan 2014 09:00:36 +0000 (10:00 +0100)]
Build in srcdir != builddir fashion by default
Naturally this doesn't apply to tarballs
Stef Walter [Tue, 14 Jan 2014 08:43:01 +0000 (09:43 +0100)]
Move gtk-doc.make into build directory
Stef Walter [Mon, 13 Jan 2014 17:09:20 +0000 (18:09 +0100)]
enumerate: Preload and respect blacklist across all tokens
This fixes an issue where a blacklist in one token wasn't properly
skipping anchors being extracted with extract-compat
https://bugs.freedesktop.org/show_bug.cgi?id=73558
Stef Walter [Mon, 13 Jan 2014 16:58:20 +0000 (17:58 +0100)]
attrs: Allow NULL attribute to be passed to p11_attr_hash()
This allows simpler lookups.
https://bugs.freedesktop.org/show_bug.cgi?id=73558
Stef Walter [Mon, 13 Jan 2014 17:08:42 +0000 (18:08 +0100)]
enumerate: Use p11_enumerate_ready() from tests
This gives a little broader testing of the enumerator
https://bugs.freedesktop.org/show_bug.cgi?id=73558
Stef Walter [Mon, 13 Jan 2014 17:07:29 +0000 (18:07 +0100)]
iter: Fix return value in rare memory allocation case
Stef Walter [Mon, 13 Jan 2014 17:02:44 +0000 (18:02 +0100)]
iter: Add p11_kit_iter_get_attributes() function
A simple wrapper for C_GetAttributeValue()
Stef Walter [Wed, 8 Jan 2014 20:20:49 +0000 (21:20 +0100)]
Remove straggler file in the tools directory
Stef Walter [Wed, 8 Jan 2014 14:58:37 +0000 (15:58 +0100)]
Update translations from transifex
Stef Walter [Wed, 8 Jan 2014 14:04:57 +0000 (15:04 +0100)]
Fix typo in mock.c
Reported-by: Tijl Coosemans <tijl@FreeBSD.org>
Nikos Mavrogiannopoulos [Tue, 26 Nov 2013 16:23:52 +0000 (17:23 +0100)]
Check if pthread and nanosleep() are in libc before linking other libs
In recent versions of glibc this is true and prevents linking with
pthreads when it is not necessary.
Tweaked by Stef Walter
Signed-off-by: Stef Walter <stef@thewalter.net>
Roman Bogorodskiy [Fri, 8 Nov 2013 07:35:00 +0000 (07:35 +0000)]
Drop unused libtasn1.h include
It's not only unsed, but also causes build fail because CFLAGS
for tests does not contain LIBTASN1_CFLAGS.
Signed-off-by: Stef Walter <stef@thewalter.net>
https://bugs.freedesktop.org/show_bug.cgi?id=71379
Stef Walter [Fri, 13 Sep 2013 10:24:35 +0000 (12:24 +0200)]
trust: Check for race in BasicConstraints stapled extension
Related to the following bug:
https://bugs.freedesktop.org/show_bug.cgi?id=69314
Andreas Metzler [Tue, 1 Oct 2013 05:22:29 +0000 (07:22 +0200)]
Disable tests with setgid binaries when running in fakeroot
We use the FAKED_MODE environment variable as a way to detect
fakeroot.
Stef Walter [Sun, 8 Sep 2013 10:57:12 +0000 (12:57 +0200)]
Fix documentation build
Stef Walter [Mon, 9 Sep 2013 14:33:05 +0000 (16:33 +0200)]
Update from transifex and string changes
Stef Walter [Mon, 9 Sep 2013 12:12:24 +0000 (14:12 +0200)]
Release version 0.20.1
Stef Walter [Mon, 9 Sep 2013 12:10:30 +0000 (14:10 +0200)]
Remove unused make variables
Stef Walter [Thu, 5 Sep 2013 09:28:25 +0000 (11:28 +0200)]
extract-compat: Skip extraction if running as non-root
Stef Walter [Thu, 5 Sep 2013 09:27:24 +0000 (11:27 +0200)]
anchor: Run extract-compat after we've changed something
When the 'trust anchor' tool changes something, run
'trust extract-compat' after that point
Stef Walter [Thu, 5 Sep 2013 09:20:57 +0000 (11:20 +0200)]
trust: More appropriate rv when non-modifiable object deleted
This will change once the spec has a specific attribute and code
to signify deletability.
Stef Walter [Thu, 5 Sep 2013 09:22:13 +0000 (11:22 +0200)]
anchor: Better failure messages when removing anchors
Stef Walter [Thu, 5 Sep 2013 09:20:28 +0000 (11:20 +0200)]
messages: Better message for CKR_FUNCTION_REJECTED
Stef Walter [Wed, 4 Sep 2013 11:41:18 +0000 (13:41 +0200)]
Release version 0.20.0
Stef Walter [Wed, 4 Sep 2013 11:40:33 +0000 (13:40 +0200)]
Documentation tweaks
Stef Walter [Thu, 29 Aug 2013 10:18:03 +0000 (12:18 +0200)]
Release version 0.19.4
Stef Walter [Thu, 29 Aug 2013 10:12:46 +0000 (12:12 +0200)]
Route 'p11-kit extract-trust' over to trust tool
The actual command is 'trust extract-compat'. Make installed placeholder
script reflect this. We still support the old placeholder script
if it is present.
Stef Walter [Thu, 29 Aug 2013 09:46:08 +0000 (11:46 +0200)]
trust: Document the new command line trust tool
Stef Walter [Wed, 28 Aug 2013 08:47:56 +0000 (10:47 +0200)]
trust: Add 'trust anchor --remove' command
Also prevent --store from storing an anchor multiple times
Stef Walter [Wed, 28 Aug 2013 08:45:06 +0000 (10:45 +0200)]
trust: Add a list command to the trust tool
Lists with PKCS#11 URI's and some basic fields.
Stef Walter [Wed, 28 Aug 2013 08:46:13 +0000 (10:46 +0200)]
trust: Add support for removing trust token objects
Stef Walter [Wed, 28 Aug 2013 08:37:44 +0000 (10:37 +0200)]
trust: Refactor enumeration of certificates to extract
Because we want to use this same logic for listing trust
Stef Walter [Tue, 27 Aug 2013 19:20:16 +0000 (21:20 +0200)]
trust: Do reload object removals inside a loading block
So that validation/storage logic doesn't kick in if a file was
removed outside of p11-kit trust module.
Stef Walter [Wed, 28 Aug 2013 07:45:21 +0000 (09:45 +0200)]
trust: Add index callback for when an object is removed
This allows a token to remove the file if desired
Stef Walter [Tue, 27 Aug 2013 19:37:29 +0000 (21:37 +0200)]
trust: Prefer parsing the persist format to PEM
This is because the persist format contains PEM, and if the PEM
parser gets it first, then it'll ignore the other non PEM data.
Stef Walter [Tue, 27 Aug 2013 19:24:34 +0000 (21:24 +0200)]
trust: Correctly rewrite other objects in a modifiable persist file
There was a bug where we were rewriting the modified object
multiple times.
Stef Walter [Tue, 27 Aug 2013 19:16:50 +0000 (21:16 +0200)]
Add p11-kit style typedefs for iter and uri
In general we're slowly migrating towards the lower case style
for stuctures/objects.
Stef Walter [Tue, 27 Aug 2013 19:15:24 +0000 (21:15 +0200)]
iter: Add a p11_kit_iter_destroy_object() function
Handy function since this is a common need.
Stef Walter [Tue, 27 Aug 2013 19:14:35 +0000 (21:14 +0200)]
iter: Add p11_kit_iter_set_uri() function
This is so we can set a filtering uri on the iterator after construction
Stef Walter [Tue, 27 Aug 2013 19:05:31 +0000 (21:05 +0200)]
iter: Add p11_kit_iter_get_token() call
To get the already loaded CK_TOKEN_INFO during iteration for the
token that the current object is on.
Stef Walter [Tue, 27 Aug 2013 18:58:18 +0000 (20:58 +0200)]
iter: Add new P11_KIT_ITER_WANT_WRITABLE iterator behavior
This allows us to try to get a RW session, but if not fallback
to a read-only session.
Stef Walter [Tue, 27 Aug 2013 18:54:09 +0000 (20:54 +0200)]
tool: Only include debug lines marked 'tool' when --verbose
Otherwise we get all sorts of overwhelming internal debugging
when someone specifies --verbose argument to a tool.
Stef Walter [Tue, 27 Aug 2013 18:52:35 +0000 (20:52 +0200)]
debug: Allow debug lines longer than 512 characters
Since fprintf (stderr, ...) already doesn't print atomically, we don't
lose any atomicity here. If we want to print atomically this will need
some further reworking anyway.
Stef Walter [Tue, 27 Aug 2013 18:51:42 +0000 (20:51 +0200)]
debug: Add missing 'tool' flag to debug flags
Stef Walter [Tue, 27 Aug 2013 18:48:32 +0000 (20:48 +0200)]
p11-kit: Rename list.c to lists.c to simplify debugging
Stef Walter [Mon, 26 Aug 2013 12:48:59 +0000 (14:48 +0200)]
Avoid multiple stat() calls for same file
As a side effect we can also not use the dirent.d_type field
https://bugs.freedesktop.org/show_bug.cgi?id=68525
Stef Walter [Mon, 26 Aug 2013 12:48:22 +0000 (14:48 +0200)]
compat: Check return value of mmap() properly
https://bugs.freedesktop.org/show_bug.cgi?id=68525
Pascal Ernster [Fri, 16 Aug 2013 11:42:33 +0000 (13:42 +0200)]
Add --with-module-config parameter to the configure script
https://bugs.freedesktop.org/show_bug.cgi?id=68122
Stef Walter [Mon, 12 Aug 2013 10:09:27 +0000 (12:09 +0200)]
trust: Add test tool for creating BasicConstraints
Michael Cronenworth [Tue, 30 Jul 2013 04:59:00 +0000 (04:59 +0000)]
test-compat calls test_getauxval which is in a UNIX defined block
MinGW builds fail due to this.
https://bugs.freedesktop.org/show_bug.cgi?id=67518
Alon Bar-Lev [Sat, 27 Jul 2013 20:22:00 +0000 (20:22 +0000)]
do not assume dead code existence in autoconf checks
when compiler optimize source, it removes dead code so a linkage error
in these cases are not visisble.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
https://bugs.freedesktop.org/show_bug.cgi?id=67413
Stef Walter [Tue, 23 Jul 2013 14:49:13 +0000 (16:49 +0200)]
Release version 0.19.3
Stef Walter [Tue, 23 Jul 2013 21:04:32 +0000 (23:04 +0200)]
Make tests work on file systems with block size directories
On certain file systems the size of the directory does not
change when adding a file. This caused the tests to fail. Make
the tests wait more than a second in certain tests to get the
mtime to change.
https://bugs.freedesktop.org/show_bug.cgi?id=65249
Stef Walter [Tue, 23 Jul 2013 21:03:54 +0000 (23:03 +0200)]
Fix uninitialized variables
Stef Walter [Tue, 23 Jul 2013 21:02:52 +0000 (23:02 +0200)]
Don't use _GNU_SOURCE and fix strerror_r usage
glibc declares strerror_r completely different if in POSIX or GNU
mode. Nastiness. Stop using _GNU_SOURCE all together.
Stef Walter [Tue, 23 Jul 2013 14:45:50 +0000 (16:45 +0200)]
Fix various memory leaks exposed by 'make leakcheck'
Stef Walter [Tue, 23 Jul 2013 12:53:53 +0000 (14:53 +0200)]
Use simple serial automake test harness
* Add a testing sanity check to see if we're catching errors
* Fix a few other testing issues
Stef Walter [Tue, 23 Jul 2013 12:31:31 +0000 (14:31 +0200)]
Use an automake aux directory for storing litter
Stef Walter [Thu, 18 Jul 2013 15:14:42 +0000 (17:14 +0200)]
doc: Add identifiers to doc sections so gtk-doc doesn't autogen them
Stef Walter [Thu, 18 Jul 2013 14:12:30 +0000 (16:12 +0200)]
Add appropriate const qualifiers
Stef Walter [Thu, 18 Jul 2013 10:26:07 +0000 (12:26 +0200)]
Release version 0.19.2
Stef Walter [Thu, 18 Jul 2013 11:07:14 +0000 (13:07 +0200)]
Fix extract example in documentation
Stef Walter [Thu, 18 Jul 2013 10:50:34 +0000 (12:50 +0200)]
Use $XDG_CONFIG_HOME/pkcs11 as default user config directory
By default this evaluates to ~/.config/pkcs11. This is a somewhat
backwards incompatible change. However so far only advanced users
have been exposed to the user p11-kit configuration.
Distributors are able to revert this if necessary with a
--with-user-config='~/.pkcs11' ./configure option.