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
Stef Walter [Fri, 26 Jun 2009 17:33:03 +0000 (17:33 +0000)]
Merge branch 'gnome-2-26'
Stef Walter [Sat, 20 Jun 2009 01:04:12 +0000 (01:04 +0000)]
Build docs for the secrets API.
Stef Walter [Sun, 10 May 2009 14:56:19 +0000 (14:56 +0000)]
Move gkr_cleanup code into egg component.
Update tests to new style as well.
Stef Walter [Sun, 10 May 2009 14:45:18 +0000 (14:45 +0000)]
Cleanup gkr_unix_signal and move to egg component
Also update tests to new style.
Stefan Walter [Sun, 3 May 2009 19:51:23 +0000 (14:51 -0500)]
Merge branch 'gnome-2-26'
Conflicts:
ChangeLog
po/ca@valencia.po
po/uk.po
stefw [Sun, 12 Apr 2009 14:23:22 +0000 (14:23 +0000)]
Release 2.26.1
svn path=/branches/gnome-2-26/; revision=1722
stefw [Sun, 12 Apr 2009 14:03:20 +0000 (14:03 +0000)]
Fill in some API documentation.
svn path=/branches/gnome-2-26/; revision=1721
stefw [Fri, 10 Apr 2009 21:33:45 +0000 (21:33 +0000)]
Fix problem with integer overflow in memory allocator.
svn path=/branches/gnome-2-26/; revision=1717
stefw [Thu, 2 Apr 2009 04:18:57 +0000 (04:18 +0000)]
Distribute test data.
Fixes bug #577397
svn path=/trunk/; revision=1712
stefw [Thu, 2 Apr 2009 04:16:49 +0000 (04:16 +0000)]
Make function definitions match declarations for egg_asn1 time functions.
Fixes bug #576762
svn path=/trunk/; revision=1711
stefw [Thu, 2 Apr 2009 03:30:11 +0000 (03:30 +0000)]
Put in a semi-random test excercising 1000 iterations of allocation,
reallocation, freeing.
Validates between each step.
svn path=/trunk/; revision=1709
stefw [Thu, 2 Apr 2009 03:30:07 +0000 (03:30 +0000)]
Fix problem where freed memory is not inserted into the unused ring properly.
This caused enless loops. Should fix bug #575247
svn path=/trunk/; revision=1708
stefw [Thu, 2 Apr 2009 03:29:59 +0000 (03:29 +0000)]
Add validator which walks the secure memory heap and checks for inconsistencies.
svn path=/trunk/; revision=1707
stefw [Thu, 2 Apr 2009 03:29:53 +0000 (03:29 +0000)]
Fix assertion that occurs when shrinking block of secure memory and then expanding again.
svn path=/trunk/; revision=1706
Stefan Walter [Tue, 17 Mar 2009 02:53:59 +0000 (02:53 +0000)]
Merge branch 'docs-reorganize'
svn path=/trunk/; revision=1690
Stefan Walter [Sat, 14 Mar 2009 19:01:34 +0000 (19:01 +0000)]
Release version 2.26.0
svn path=/trunk/; revision=1673
Stefan Walter [Wed, 11 Mar 2009 03:49:47 +0000 (03:49 +0000)]
Implement valgrind support for our memory allocator, and support for
running gnome-keyring-daemon under valgrind. Use --enable-valgrind=run
svn path=/trunk/; revision=1665
Stefan Walter [Thu, 5 Mar 2009 04:02:25 +0000 (04:02 +0000)]
Check for asn1Parser tool in configure.
Patch by Alberto Ruiz. Fixes bug #566731
svn path=/trunk/; revision=1660
Stefan Walter [Tue, 3 Mar 2009 22:25:00 +0000 (22:25 +0000)]
Allow specifying auto-authenticate property on a more fine grained level.
svn path=/trunk/; revision=1657
Stefan Walter [Tue, 3 Mar 2009 03:51:36 +0000 (03:51 +0000)]
Fix "gnome-keyring-ask needs to disable
input method in password" bug #561331 Patch by Takao Fujiwara
svn path=/trunk/; revision=1654
Stefan Walter [Sat, 28 Feb 2009 22:46:19 +0000 (22:46 +0000)]
Fix compiler warnings on 32-bit.
svn path=/trunk/; revision=1638
Stefan Walter [Sat, 28 Feb 2009 03:20:13 +0000 (03:20 +0000)]
Some changes to the import dialog.
svn path=/trunk/; revision=1636
Stefan Walter [Sat, 28 Feb 2009 03:05:45 +0000 (03:05 +0000)]
Fix problem with looking up pin initialized flag in the wrong
structure.
svn path=/trunk/; revision=1632
Stefan Walter [Sat, 28 Feb 2009 01:24:13 +0000 (01:24 +0000)]
Add quick hack to initialize tokens before importing into them.
More functionality along this line will be needed in future versions.
svn path=/trunk/; revision=1627
Stefan Walter [Fri, 27 Feb 2009 01:00:07 +0000 (01:00 +0000)]
When enumerating objects in a module, skip tokens that fail from not being initialized.
svn path=/trunk/; revision=1623
Jeff Cai [Thu, 19 Feb 2009 03:41:47 +0000 (03:41 +0000)]
Use union instead of struct. Fixes bug #571951
2009-02-19 Jeff Cai <jeff.cai@sun.com>
* egg/egg-secure-memory.c:
Use union instead of struct.
Fixes bug #571951
svn path=/trunk/; revision=1606
Stefan Walter [Sat, 14 Feb 2009 18:17:01 +0000 (18:17 +0000)]
Release version 2.25.91
svn path=/trunk/; revision=1589
Stefan Walter [Sat, 14 Feb 2009 03:45:34 +0000 (03:45 +0000)]
Don't show horizontal scrollbar.
svn path=/trunk/; revision=1578
Stefan Walter [Sat, 14 Feb 2009 03:45:15 +0000 (03:45 +0000)]
Show extensions as in hex form.
No parsing of extensions yet.
svn path=/trunk/; revision=1577
Stefan Walter [Sat, 14 Feb 2009 03:44:55 +0000 (03:44 +0000)]
Allow loading any DER certificate file.
svn path=/trunk/; revision=1576
Stefan Walter [Sat, 14 Feb 2009 00:31:17 +0000 (00:31 +0000)]
Fill in the OID descriptions for RSA and DSA stuff.
svn path=/trunk/; revision=1575
Stefan Walter [Sat, 14 Feb 2009 00:23:27 +0000 (00:23 +0000)]
Fill in the key size field.
svn path=/trunk/; revision=1574
Stefan Walter [Sat, 14 Feb 2009 00:23:22 +0000 (00:23 +0000)]
Fill in key and signature algorithms and parameters.
svn path=/trunk/; revision=1573
Stefan Walter [Sat, 14 Feb 2009 00:23:14 +0000 (00:23 +0000)]
Change to right directory so we can easily find test certificates.
svn path=/trunk/; revision=1572