Stef Walter [Mon, 28 Jun 2010 14:28:36 +0000 (14:28 +0000)]
Merge branch 'gpg-agent'
Stef Walter [Mon, 28 Jun 2010 14:09:41 +0000 (14:09 +0000)]
Merge branch 'asn1-work'
Stef Walter [Thu, 31 Dec 2009 01:22:59 +0000 (01:22 +0000)]
[egg] Implement some new asn1 tests, and fix problems.
Stef Walter [Wed, 30 Dec 2009 23:45:08 +0000 (23:45 +0000)]
[egg] Move the DN functionality into its own file.
Stef Walter [Tue, 29 Dec 2009 17:03:37 +0000 (17:03 +0000)]
[egg] Implement asn.1 encoding.
Stef Walter [Sat, 26 Dec 2009 20:37:03 +0000 (20:37 +0000)]
[egg] Separate real ASN nodes in the tree from options.
Stef Walter [Fri, 25 Dec 2009 16:21:47 +0000 (16:21 +0000)]
[egg] Implement a bunch of value reading functionality.
Stef Walter [Fri, 25 Dec 2009 14:54:57 +0000 (14:54 +0000)]
[egg] Tracking of failure messages during decoding and validation.
Stef Walter [Fri, 25 Dec 2009 14:26:39 +0000 (14:26 +0000)]
[egg] Implement asn validation, and some read functions.
Stef Walter [Fri, 25 Dec 2009 00:11:28 +0000 (00:11 +0000)]
[egg] Add asn functionality for clearing a tree.
Stef Walter [Thu, 24 Dec 2009 20:25:23 +0000 (20:25 +0000)]
[egg] Rework asn1 decoding, add set support, much more robust.
Stef Walter [Wed, 23 Dec 2009 16:35:09 +0000 (16:35 +0000)]
[egg] A few more parsing tests.
Stef Walter [Wed, 23 Dec 2009 16:28:22 +0000 (16:28 +0000)]
[egg] Some more minor fixes for parsing certificates.
Stef Walter [Wed, 23 Dec 2009 16:13:21 +0000 (16:13 +0000)]
[egg] Handle identifier joins that are more than one level deep.
Stef Walter [Wed, 23 Dec 2009 16:00:47 +0000 (16:00 +0000)]
[egg] Work on indefinite length encodings.
Stef Walter [Tue, 22 Dec 2009 03:57:58 +0000 (03:57 +0000)]
[egg] Implement DER parsing of a certificate.
Stef Walter [Tue, 22 Dec 2009 00:59:35 +0000 (00:59 +0000)]
[egg] Rework how asn nodes are accessed.
Stef Walter [Tue, 22 Dec 2009 00:44:02 +0000 (00:44 +0000)]
[egg] Implement better dumping of asn1 tree.
Stef Walter [Mon, 21 Dec 2009 17:38:14 +0000 (17:38 +0000)]
[egg] Initial asn1 parser work.
Stef Walter [Sun, 13 Jun 2010 01:52:02 +0000 (01:52 +0000)]
Merge branch 'master' into gpg-agent
Stef Walter [Sat, 12 Jun 2010 23:45:33 +0000 (23:45 +0000)]
Merge branch 'master' into gpg-agent
Stef Walter [Sat, 12 Jun 2010 22:39:09 +0000 (22:39 +0000)]
Merge branch 'master' into gpg-agent
Stef Walter [Tue, 8 Jun 2010 20:07:02 +0000 (20:07 +0000)]
Cleaner naming in testing suite.
Stef Walter [Tue, 8 Jun 2010 17:19:50 +0000 (17:19 +0000)]
Implement coverage of tests using gcov and lcov.
Stef Walter [Tue, 8 Jun 2010 15:45:33 +0000 (15:45 +0000)]
Cleanup naming and whitespace for testing stuff.
* Rip off bandaid (painful) whitespace cleanup.
* At the same time cleanup naming, and remove old cruft.
Stef Walter [Tue, 8 Jun 2010 15:10:52 +0000 (15:10 +0000)]
No more prompt tests.
* These were an old concept of tests that didn't run automatically.
* Also remove PAM tests, as they were completely broken, and prompt style.
Stef Walter [Tue, 8 Jun 2010 05:32:12 +0000 (05:32 +0000)]
Run tests in a second thread, and run mainloop.
Run mainloop on main thread, and tests in a second thread.
Stef Walter [Tue, 8 Jun 2010 05:20:18 +0000 (05:20 +0000)]
Fix possible threading race condition in gp11.
We weren't waking up the main loop when we were ready to process
a response from an async operation in certain cases.
Stef Walter [Tue, 8 Jun 2010 03:26:14 +0000 (03:26 +0000)]
Simpler way to define secure memory callbacks.
* Also define locking on the daemon.
Stef Walter [Sun, 6 Jun 2010 19:51:58 +0000 (19:51 +0000)]
Fix bugs preventing wrap layer propmting from working.
* Standard way to get object path from GkdSecretDispatch
* Lots of minor little tweaks and bugs.
Stef Walter [Mon, 26 Apr 2010 19:15:11 +0000 (19:15 +0000)]
More fixes for -DGSEAL_ENABLE
Fixes bug #612475
Andre Klapper [Tue, 13 Apr 2010 12:28:40 +0000 (14:28 +0200)]
Compile with -DGSEAL_ENABLE. Fixes bug 612475.
Stef Walter [Thu, 8 Apr 2010 15:50:37 +0000 (15:50 +0000)]
Make buildable with GTK+ 2.20 without deprecated symbols.
Now requires GTK+ 2.20.
Vincent Untz [Tue, 30 Mar 2010 14:31:44 +0000 (16:31 +0200)]
Fix make dist (ship egg/egg-error.h)
Stef Walter [Fri, 19 Mar 2010 23:03:33 +0000 (23:03 +0000)]
More robust error display and handling.
Handle all cases where a function may return a failure
with a NULL GError, such as preconditions and warnings.
Also use proper function for checking error codes.
Vincent Untz [Wed, 10 Mar 2010 11:26:53 +0000 (12:26 +0100)]
Merge branch 'releasing-2.29.92'
Vincent Untz [Wed, 10 Mar 2010 10:11:18 +0000 (11:11 +0100)]
Fix make dist
We need the *-overrides.txt files for the API references.
Vincent Untz [Wed, 10 Mar 2010 10:11:18 +0000 (11:11 +0100)]
Fix make dist
We need the *-overrides.txt files for the API references.
Stef Walter [Sun, 7 Feb 2010 18:22:09 +0000 (18:22 +0000)]
Fix some translation strings.
Remove dot from end of options, unmark string as
translatable.
Stef Walter [Sun, 7 Feb 2010 17:41:10 +0000 (17:41 +0000)]
Use 'log in to' rather than 'log into'
Fixed after heads up from the gnome-doc folks.
Stef Walter [Mon, 1 Feb 2010 03:09:52 +0000 (03:09 +0000)]
[gcr] Move the 'always unlock' option out of the unlock options widget.
Stef Walter [Mon, 1 Feb 2010 02:46:22 +0000 (02:46 +0000)]
Remove incomplete unlock per application/session support.
Stef Walter [Mon, 1 Feb 2010 02:21:38 +0000 (02:21 +0000)]
[gcr] Add commun gcr unlock functionality.
Stef Walter [Mon, 1 Feb 2010 02:20:33 +0000 (02:20 +0000)]
[gp11] Bug fixes to set and get template functionality.
Stef Walter [Sun, 20 Dec 2009 17:18:49 +0000 (17:18 +0000)]
[gp11] Support for getting and setting object template style attrs.
These are attributes like CKA_WRAP_TEMPLATE etc...
Stef Walter [Sat, 19 Dec 2009 19:10:38 +0000 (19:10 +0000)]
[gcr] Link tests to the right egg library file.
Stef Walter [Sat, 19 Dec 2009 19:00:01 +0000 (19:00 +0000)]
[daemon] Large refactoring of prompting for pkcs11 logins.
* Remove old ask code.
* Remove old async code, location code daemon util code.
* Move our custom GtkEntryBuffer into egg.
* Remove old EggSecureEntry stuff.
* Rework how threading works in pkcs11 daemon auth and prompting.
* Use new prompting stuff for pkcs11 logins.
* Make several fixes to the daemon/login code.
Stef Walter [Thu, 17 Dec 2009 05:31:05 +0000 (05:31 +0000)]
[doc] Fix up documentation errors and warnings.
Stef Walter [Thu, 17 Dec 2009 03:57:11 +0000 (03:57 +0000)]
Remove old keyring socket, library and code support.
After this commit, all callers must use the libgnome-keyring module
to access secrets. The old socket method and included library
no longer work.
Stef Walter [Wed, 16 Dec 2009 03:59:01 +0000 (03:59 +0000)]
[gp11] gp11_object_get_data null terminates.
Make gp11_object_get_data null terminate the data it returns
for convenience and efficiency. This is especially nice when
using a custom allocator such as secure memory.
Stef Walter [Wed, 16 Dec 2009 03:58:22 +0000 (03:58 +0000)]
[gp11] Implement C_InitPIN and C_SetPIN in gp11 library.
Stef Walter [Mon, 14 Dec 2009 15:00:29 +0000 (15:00 +0000)]
Merge branch 'dbus-api'
Stef Walter [Sun, 13 Dec 2009 22:45:37 +0000 (22:45 +0000)]
[egg] Move padding functionality into egg
So other components can use it.
Stef Walter [Sat, 12 Dec 2009 18:03:03 +0000 (18:03 +0000)]
[pkcs11] Fix bugs in DH key generation.
The public and private keys were accidentally interchanged.
Stef Walter [Sat, 12 Dec 2009 00:02:04 +0000 (00:02 +0000)]
Simplify creation of secret from DH negotiation.
PKCS#11 says to use the low order bytes, and that's what we do
here. This bears more research to make sure we're doing this
in a standard way.
Stef Walter [Fri, 11 Dec 2009 00:07:19 +0000 (00:07 +0000)]
[gp11] Support same attrs passed for public/private to generate_key.
Recognize that the same attribute set could be passed to public
and private atribute arguments for gp11_session_generate_key_xxx().
Stef Walter [Thu, 3 Dec 2009 00:12:57 +0000 (00:12 +0000)]
Add license to reference documentation.
Add a license to the reference documentation. Using the license
from Glib.
Stef Walter [Tue, 24 Nov 2009 16:26:06 +0000 (16:26 +0000)]
Merge branch 'master' into dbus-api
Stef Walter [Tue, 24 Nov 2009 03:11:43 +0000 (03:11 +0000)]
Remove old secrets stuff, which is now in a freedesktop project.
Stef Walter [Mon, 23 Nov 2009 01:42:38 +0000 (01:42 +0000)]
[egg] Store DH groups in binary.
We store them in binary so that we can access them directly in
memory when a raw value is needed.
Stef Walter [Fri, 20 Nov 2009 17:29:53 +0000 (17:29 +0000)]
[gp11] Implement support for generate, wrap, unwrap, derive.
Implement gp11_session_generate_key_pair...(),
gp11_session_wrap_key...(), gp11_session_unwrap_key...(),
and gp11_session_derive_key...().
Stef Walter [Mon, 16 Nov 2009 20:59:16 +0000 (20:59 +0000)]
[pkcs11] Implement DH key pair generation.
Also rework how the DH stuff works in the egg component.
Stefan Walter [Sun, 15 Nov 2009 16:10:04 +0000 (16:10 +0000)]
Merge branch 'master' into dbus-api
Stef Walter [Thu, 12 Nov 2009 06:36:55 +0000 (06:36 +0000)]
[egg] Add IETF DH groups.
These are the standard DH groups specified in RFC2409
and RFC3526
Stef Walter [Mon, 9 Nov 2009 22:26:04 +0000 (22:26 +0000)]
Merge branch 'master' into dbus-api
Stef Walter [Mon, 9 Nov 2009 17:08:08 +0000 (17:08 +0000)]
Merge branch 'master' into dbus-api
Stef Walter [Sun, 8 Nov 2009 00:17:50 +0000 (00:17 +0000)]
Refactor test directory function calls.
Make test_data_*() and test_scratch_*() function calls.
Stef Walter [Sun, 8 Nov 2009 00:10:07 +0000 (00:10 +0000)]
[egg] Move mkdtemp() code into its own file.
Move mkdtemp code into egg-mkdtemp.c so it can be used from
other places.
Stef Walter [Tue, 3 Nov 2009 03:06:44 +0000 (03:06 +0000)]
Implement prompt password return via encryption.
* Prompt password encrypted return via DH key negotiation.
* Factor out some common code between prompt-tool and daemon.
* Add tests for common code.
Stef Walter [Sat, 24 Oct 2009 01:45:31 +0000 (01:45 +0000)]
Merge branch 'master' into dbus-api
Eric Sesterhenn [Wed, 21 Oct 2009 01:54:00 +0000 (01:54 +0000)]
[gp11] Fix memory leak in gp11_slot_get_token_info()
Signed-off-by: Stef Walter <stef@memberwebs.com>
Stef Walter [Sun, 11 Oct 2009 21:38:15 +0000 (21:38 +0000)]
[egg] Build in default DH parameters.
Since generating DH parameters is costly, we build in default
parameters which can be loaded quickly.
Stef Walter [Sun, 11 Oct 2009 17:52:54 +0000 (17:52 +0000)]
[egg] Add spawn with callback functionality.
Allows executing an application and getting callbacks when
stdin, stdout, or stderr need servicing.
Stef Walter [Sat, 10 Oct 2009 15:06:42 +0000 (15:06 +0000)]
Merge branch 'master' into dbus-api
Stef Walter [Sun, 4 Oct 2009 18:18:31 +0000 (18:18 +0000)]
[egg] Add DH functions for use by IPC.
Stef Walter [Sun, 4 Oct 2009 16:18:23 +0000 (16:18 +0000)]
Merge branch 'master' into dbus-api
Stef Walter [Wed, 30 Sep 2009 01:51:40 +0000 (01:51 +0000)]
Merge branch 'master' into dbus-api
Stef Walter [Wed, 30 Sep 2009 01:48:10 +0000 (01:48 +0000)]
[egg] Fix assertion when releasing secure memory block.
If a secure memory block was allocated that was not multiple of
page size, then on releasing that block, an assertion was
raised. The source of the problem was a lack of tracking the
actually allocated block size.
Stef Walter [Sat, 26 Sep 2009 01:55:50 +0000 (01:55 +0000)]
Merge branch 'master' into dbus-api
Stef Walter [Sat, 26 Sep 2009 01:54:08 +0000 (01:54 +0000)]
[gp11] Return added attr from gp11_attributes_add_*
Return the added GP11Attribute struct from the
gp11_attributes_add_xxx() set of functions.
Diego Elio 'Flameeyes' Pettenò [Sun, 13 Sep 2009 21:26:11 +0000 (23:26 +0200)]
Fix parallel build of test sources.
When building with make -jX with X greater than 1 (parallel make), if the
dependency tree given in the Makefile is not perfect, the build will fail.
Since the prep-gtest.sh generates two files, both should be listed in the
Makefile, with the latter depending on the former (in order of creation);
since the header file is generated slightly earlier than the source file,
this is the correct order (wrong order would work on most filesystems but
will fail on tmpfs, xfs and ext4).
Additionally, make sure to tell automake about the generated sources, the
BUILT_SOURCES variable will ensure that the dependencies inside the
generated source files will be taken properly care of.
Symptoms of the previous brokenness would look like missing includes,
because the run-(auto|prompt)-test.h header would be used _after_ the file
started being written but _before_ it was completely written (race
condition).
Additionally, in egg tests, avoid using BUILT_SOURCES to set up UNIT_AUTO,
and also append to it after test.make has been included, so that they won't
overwrite one the other.
Signed-off-by: Stef Walter <stef@memberwebs.com>
Stef Walter [Sun, 30 Aug 2009 14:13:45 +0000 (14:13 +0000)]
Merge branch 'master' into dbus-api
Stef Walter [Sun, 30 Aug 2009 02:02:38 +0000 (02:02 +0000)]
[egg] Remove unneeded signal handling code.
Stef Walter [Sun, 23 Aug 2009 01:55:27 +0000 (01:55 +0000)]
[gp11] Don't fail when allocating zero length value.
When copying a zero length value, don't fail.
Stef Walter [Sat, 22 Aug 2009 20:07:39 +0000 (20:07 +0000)]
[gp11] CK_NOTIFY accepted when opening a session.
The gp11_slot_open_session_full() and gp11_slot_open_session_async()
functions now accept CK_NOTIFY and app data parameters.
Stef Walter [Sat, 15 Aug 2009 00:06:25 +0000 (00:06 +0000)]
Merge branch 'master' into dbus-api
Stef Walter [Fri, 14 Aug 2009 22:37:05 +0000 (22:37 +0000)]
[egg] Fix unit test.
Stef Walter [Fri, 14 Aug 2009 22:32:07 +0000 (22:32 +0000)]
[egg] Add missing definition of egg_buffer_uninit_steal()
Stefan Walter [Sat, 8 Aug 2009 02:06:17 +0000 (02:06 +0000)]
[egg] Function for clearing secure memory.
Added egg_secure_clear() and fine tuned egg_secure_strclear().
Stefan Walter [Sun, 2 Aug 2009 20:30:24 +0000 (20:30 +0000)]
[egg, gcr, pkcs11] Take length of ASN.1 into account, when parsing.
When parsing ASN.1, take length of elements into account, in order
to prevent null character related vulnerabilities.
Stef Walter [Sun, 26 Jul 2009 15:07:14 +0000 (15:07 +0000)]
[secrets] Port over some parts of the keyring parsing.
The code compiles, but does not run, and is not tested.
Stef Walter [Thu, 23 Jul 2009 20:02:16 +0000 (20:02 +0000)]
Merge branch 'master' into dbus-api
Conflicts:
pkcs11/gck/gck-module.c
pkcs11/pkcs11g.h
Stef Walter [Sat, 18 Jul 2009 19:09:50 +0000 (19:09 +0000)]
Use .ui files directly now that they're supported by glade.
Remove old glade files, and the conversion rules from Makefile.am.
Stef Walter [Mon, 13 Jul 2009 19:44:37 +0000 (19:44 +0000)]
Fix tests so they work from 'make distwcheck'
Fix path issues in the tests which need data from their
test-data directory, so that they work when running 'make distcheck'
Stef Walter [Mon, 13 Jul 2009 17:13:40 +0000 (17:13 +0000)]
Parse, but don't use non-utf8 secrets in keyrings.
This is a change for future backwards compatibility.
Stef Walter [Sat, 18 Jul 2009 19:09:50 +0000 (19:09 +0000)]
Use .ui files directly now that they're supported by glade.
Remove old glade files, and the conversion rules from Makefile.am.
Stef Walter [Mon, 13 Jul 2009 19:44:37 +0000 (19:44 +0000)]
Fix tests so they work from 'make distwcheck'
Fix path issues in the tests which need data from their
test-data directory, so that they work when running 'make distcheck'
Stef Walter [Mon, 13 Jul 2009 17:18:45 +0000 (17:18 +0000)]
Merge branch 'gnome-2-26'
Stef Walter [Mon, 13 Jul 2009 17:13:40 +0000 (17:13 +0000)]
Parse, but don't use non-utf8 secrets in keyrings.
This is a change for future backwards compatibility.
Stef Walter [Sat, 27 Jun 2009 19:44:51 +0000 (19:44 +0000)]
Merge branch 'master' into dbus-api