platform/upstream/gcr.git
14 years ago[egg] Fix secure memory assertion.
Stef Walter [Sat, 11 Sep 2010 23:38:46 +0000 (23:38 +0000)]
[egg] Fix secure memory assertion.

Fix assertion that occurs when searching for pool to free memory from.

https://bugzilla.gnome.org/show_bug.cgi?id=616175

14 years agoMerge branch 'gsettings-migration'
Stef Walter [Sat, 11 Sep 2010 20:47:43 +0000 (20:47 +0000)]
Merge branch 'gsettings-migration'

14 years ago[gp11] Fix double free with copied attributes.
Stef Walter [Fri, 10 Sep 2010 04:49:46 +0000 (04:49 +0000)]
[gp11] Fix double free with copied attributes.

Copied attributes would result in a double free if length was zero.

14 years agoMerge remote branch 'pwith/628910-header-dir'
Stef Walter [Wed, 8 Sep 2010 02:21:24 +0000 (02:21 +0000)]
Merge remote branch 'pwith/628910-header-dir'

14 years ago[schema] Add in org.gnome.crypto.pgp gsettings schema.
Stef Walter [Wed, 8 Sep 2010 01:14:07 +0000 (01:14 +0000)]
[schema] Add in org.gnome.crypto.pgp gsettings schema.

https://bugzilla.gnome.org/show_bug.cgi?id=622401

14 years ago[gpg-agent] Add gsettings to store passphrase preferences.
Stef Walter [Tue, 7 Sep 2010 23:19:08 +0000 (23:19 +0000)]
[gpg-agent] Add gsettings to store passphrase preferences.

Depends on new glib 2.25.0 and later.

14 years agoFix the header installation directory for libgcr
Philip Withnall [Tue, 7 Sep 2010 13:06:15 +0000 (14:06 +0100)]
Fix the header installation directory for libgcr

Applications using libgcr expect to be able to #include <gcr/gcr.h>, so we
need to install the headers in a gcr/ subdirectory of the major-versioned
gcr-$MAJOR/ directory. Closes: bgo#628910

14 years ago[gcr, ui] Rework how unlock options are loaded and handled.
Stef Walter [Sun, 5 Sep 2010 20:57:37 +0000 (20:57 +0000)]
[gcr, ui] Rework how unlock options are loaded and handled.

 * Rework GcrUnlockOptionsWidget API.
 * Prepare for migration to gsettings.

14 years agoMerge branch '624570-gtk3-option'
Stef Walter [Wed, 1 Sep 2010 03:19:31 +0000 (03:19 +0000)]
Merge branch '624570-gtk3-option'

14 years agoPort to GTK+ 3
Philip Withnall [Wed, 25 Aug 2010 13:43:55 +0000 (14:43 +0100)]
Port to GTK+ 3

Add a --with-gtk=[2.0|3.0] option to configure to allow building against
GTK+ 2 or GTK+ 3. Closes: bgo#624570

14 years agoAdd missing default cases in switch statements
Philip Withnall [Wed, 25 Aug 2010 14:15:43 +0000 (15:15 +0100)]
Add missing default cases in switch statements

14 years agoFix shadowing of a glibc function to fix a gcc warning
Philip Withnall [Wed, 25 Aug 2010 14:12:56 +0000 (15:12 +0100)]
Fix shadowing of a glibc function to fix a gcc warning

14 years agoUse #ifdef instead of #if to fix gcc warnings
Philip Withnall [Wed, 25 Aug 2010 14:12:11 +0000 (15:12 +0100)]
Use #ifdef instead of #if to fix gcc warnings

14 years agoUse "different from" rather than "different than" in a translatable string
Philip Withnall [Sat, 28 Aug 2010 17:40:21 +0000 (18:40 +0100)]
Use "different from" rather than "different than" in a translatable string

14 years ago[gpg-agent] Change the agent prompt strings to not talk about keyrings.
Stef Walter [Fri, 27 Aug 2010 03:21:09 +0000 (03:21 +0000)]
[gpg-agent] Change the agent prompt strings to not talk about keyrings.

 * Added way to change strings in GcrUnlockOptionsWidget
 * GkuPrompt now has a way to transfer these strings to gnome-keyring-prompt

14 years ago[gcr] Install the gcr-simple-certificate.h header properly.
Stef Walter [Fri, 27 Aug 2010 03:22:52 +0000 (03:22 +0000)]
[gcr] Install the gcr-simple-certificate.h header properly.

14 years ago[egg] Fix asn.1 parsing into GDate.
Stef Walter [Wed, 28 Jul 2010 15:17:53 +0000 (17:17 +0200)]
[egg] Fix asn.1 parsing into GDate.

 * We used g_date_set_time_val which converted using local time.
 * Changed to set GDate fields independently.

14 years ago[egg] Fix problems building on 32-bit.
Stef Walter [Wed, 21 Jul 2010 21:26:08 +0000 (16:26 -0500)]
[egg] Fix problems building on 32-bit.

Make encoding of unsigned longs adapt to long size.

14 years ago[daemon] Fix uninitialized PKCS#11 function pointer.
Stef Walter [Sun, 11 Jul 2010 23:30:30 +0000 (23:30 +0000)]
[daemon] Fix uninitialized PKCS#11 function pointer.

14 years ago[gp11] Open readonly sessions when enumerating objects.
Stef Walter [Sun, 11 Jul 2010 23:17:20 +0000 (23:17 +0000)]
[gp11] Open readonly sessions when enumerating objects.

 * This is an interim measure. When GP11 is redone the API
   should allow the caller to specify this.

14 years ago[gp11] Don't keep authenticating if protected auth path.
Stef Walter [Sun, 11 Jul 2010 22:57:44 +0000 (22:57 +0000)]
[gp11] Don't keep authenticating if protected auth path.

 * With protected auth path, it CKR_PIN_INCORRECT means the
   user cancelled or gave up.

14 years agoRemove run time dependency on libtasn1.
Stef Walter [Sun, 11 Jul 2010 02:25:13 +0000 (02:25 +0000)]
Remove run time dependency on libtasn1.

 * Required for build when we actually parse ASN.1 files.

14 years agoUse new DER decoding and encoding routines.
Stef Walter [Fri, 9 Jul 2010 16:57:20 +0000 (16:57 +0000)]
Use new DER decoding and encoding routines.

 * Benefits are less copies of sensitive data in memory.
 * More insightful parsing and API.

14 years agoMerge branch 'gpg-agent'
Stef Walter [Mon, 28 Jun 2010 14:28:36 +0000 (14:28 +0000)]
Merge branch 'gpg-agent'

14 years agoMerge branch 'asn1-work'
Stef Walter [Mon, 28 Jun 2010 14:09:41 +0000 (14:09 +0000)]
Merge branch 'asn1-work'

14 years ago[egg] Implement some new asn1 tests, and fix problems.
Stef Walter [Thu, 31 Dec 2009 01:22:59 +0000 (01:22 +0000)]
[egg] Implement some new asn1 tests, and fix problems.

14 years ago[egg] Move the DN functionality into its own file.
Stef Walter [Wed, 30 Dec 2009 23:45:08 +0000 (23:45 +0000)]
[egg] Move the DN functionality into its own file.

14 years ago[egg] Implement asn.1 encoding.
Stef Walter [Tue, 29 Dec 2009 17:03:37 +0000 (17:03 +0000)]
[egg] Implement asn.1 encoding.

14 years ago[egg] Separate real ASN nodes in the tree from options.
Stef Walter [Sat, 26 Dec 2009 20:37:03 +0000 (20:37 +0000)]
[egg] Separate real ASN nodes in the tree from options.

14 years ago[egg] Implement a bunch of value reading functionality.
Stef Walter [Fri, 25 Dec 2009 16:21:47 +0000 (16:21 +0000)]
[egg] Implement a bunch of value reading functionality.

14 years ago[egg] Tracking of failure messages during decoding and validation.
Stef Walter [Fri, 25 Dec 2009 14:54:57 +0000 (14:54 +0000)]
[egg] Tracking of failure messages during decoding and validation.

14 years ago[egg] Implement asn validation, and some read functions.
Stef Walter [Fri, 25 Dec 2009 14:26:39 +0000 (14:26 +0000)]
[egg] Implement asn validation, and some read functions.

14 years ago[egg] Add asn functionality for clearing a tree.
Stef Walter [Fri, 25 Dec 2009 00:11:28 +0000 (00:11 +0000)]
[egg] Add asn functionality for clearing a tree.

14 years ago[egg] Rework asn1 decoding, add set support, much more robust.
Stef Walter [Thu, 24 Dec 2009 20:25:23 +0000 (20:25 +0000)]
[egg] Rework asn1 decoding, add set support, much more robust.

14 years ago[egg] A few more parsing tests.
Stef Walter [Wed, 23 Dec 2009 16:35:09 +0000 (16:35 +0000)]
[egg] A few more parsing tests.

14 years ago[egg] Some more minor fixes for parsing certificates.
Stef Walter [Wed, 23 Dec 2009 16:28:22 +0000 (16:28 +0000)]
[egg] Some more minor fixes for parsing certificates.

14 years ago[egg] Handle identifier joins that are more than one level deep.
Stef Walter [Wed, 23 Dec 2009 16:13:21 +0000 (16:13 +0000)]
[egg] Handle identifier joins that are more than one level deep.

14 years ago[egg] Work on indefinite length encodings.
Stef Walter [Wed, 23 Dec 2009 16:00:47 +0000 (16:00 +0000)]
[egg] Work on indefinite length encodings.

14 years ago[egg] Implement DER parsing of a certificate.
Stef Walter [Tue, 22 Dec 2009 03:57:58 +0000 (03:57 +0000)]
[egg] Implement DER parsing of a certificate.

14 years ago[egg] Rework how asn nodes are accessed.
Stef Walter [Tue, 22 Dec 2009 00:59:35 +0000 (00:59 +0000)]
[egg] Rework how asn nodes are accessed.

14 years ago[egg] Implement better dumping of asn1 tree.
Stef Walter [Tue, 22 Dec 2009 00:44:02 +0000 (00:44 +0000)]
[egg] Implement better dumping of asn1 tree.

14 years ago[egg] Initial asn1 parser work.
Stef Walter [Mon, 21 Dec 2009 17:38:14 +0000 (17:38 +0000)]
[egg] Initial asn1 parser work.

14 years agoMerge branch 'master' into gpg-agent
Stef Walter [Sun, 13 Jun 2010 01:52:02 +0000 (01:52 +0000)]
Merge branch 'master' into gpg-agent

14 years agoMerge branch 'master' into gpg-agent
Stef Walter [Sat, 12 Jun 2010 23:45:33 +0000 (23:45 +0000)]
Merge branch 'master' into gpg-agent

14 years agoMerge branch 'master' into gpg-agent
Stef Walter [Sat, 12 Jun 2010 22:39:09 +0000 (22:39 +0000)]
Merge branch 'master' into gpg-agent

14 years agoCleaner naming in testing suite.
Stef Walter [Tue, 8 Jun 2010 20:07:02 +0000 (20:07 +0000)]
Cleaner naming in testing suite.

14 years agoImplement coverage of tests using gcov and lcov.
Stef Walter [Tue, 8 Jun 2010 17:19:50 +0000 (17:19 +0000)]
Implement coverage of tests using gcov and lcov.

14 years agoCleanup naming and whitespace for testing stuff.
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.

14 years agoNo more prompt tests.
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.

14 years agoRun tests in a second thread, and run mainloop.
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.

14 years agoFix possible threading race condition in gp11.
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.

14 years agoSimpler way to define secure memory callbacks.
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.

14 years agoFix bugs preventing wrap layer propmting from working.
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.

14 years agoMore fixes for -DGSEAL_ENABLE
Stef Walter [Mon, 26 Apr 2010 19:15:11 +0000 (19:15 +0000)]
More fixes for -DGSEAL_ENABLE

Fixes bug #612475

14 years agoCompile with -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.

14 years agoMake buildable with GTK+ 2.20 without deprecated symbols.
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.

14 years agoFix make dist (ship egg/egg-error.h)
Vincent Untz [Tue, 30 Mar 2010 14:31:44 +0000 (16:31 +0200)]
Fix make dist (ship egg/egg-error.h)

14 years agoMore robust error display and handling.
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.

14 years agoMerge branch 'releasing-2.29.92'
Vincent Untz [Wed, 10 Mar 2010 11:26:53 +0000 (12:26 +0100)]
Merge branch 'releasing-2.29.92'

14 years agoFix make dist
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.

14 years agoFix make dist
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.

14 years agoFix some translation strings.
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.

14 years agoUse 'log in to' rather than 'log into'
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.

14 years ago[gcr] Move the 'always unlock' option out of the unlock options widget.
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.

14 years agoRemove incomplete unlock per application/session support.
Stef Walter [Mon, 1 Feb 2010 02:46:22 +0000 (02:46 +0000)]
Remove incomplete unlock per application/session support.

14 years ago[gcr] Add commun gcr unlock functionality.
Stef Walter [Mon, 1 Feb 2010 02:21:38 +0000 (02:21 +0000)]
[gcr] Add commun gcr unlock functionality.

14 years ago[gp11] Bug fixes to set and get template functionality.
Stef Walter [Mon, 1 Feb 2010 02:20:33 +0000 (02:20 +0000)]
[gp11] Bug fixes to set and get template functionality.

14 years ago[gp11] Support for getting and setting object template style attrs.
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...

14 years ago[gcr] Link tests to the right egg library file.
Stef Walter [Sat, 19 Dec 2009 19:10:38 +0000 (19:10 +0000)]
[gcr] Link tests to the right egg library file.

14 years ago[daemon] Large refactoring of prompting for pkcs11 logins.
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.

14 years ago[doc] Fix up documentation errors and warnings.
Stef Walter [Thu, 17 Dec 2009 05:31:05 +0000 (05:31 +0000)]
[doc] Fix up documentation errors and warnings.

14 years agoRemove old keyring socket, library and code support.
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.

14 years ago[gp11] gp11_object_get_data null terminates.
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.

14 years ago[gp11] Implement C_InitPIN and C_SetPIN in gp11 library.
Stef Walter [Wed, 16 Dec 2009 03:58:22 +0000 (03:58 +0000)]
[gp11] Implement C_InitPIN and C_SetPIN in gp11 library.

14 years agoMerge branch 'dbus-api'
Stef Walter [Mon, 14 Dec 2009 15:00:29 +0000 (15:00 +0000)]
Merge branch 'dbus-api'

14 years ago[egg] Move padding functionality into egg
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.

14 years ago[pkcs11] Fix bugs in DH key generation.
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.

14 years agoSimplify creation of secret from DH negotiation.
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.

14 years ago[gp11] Support same attrs passed for public/private to generate_key.
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().

14 years agoAdd license to reference documentation.
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.

14 years agoMerge branch 'master' into dbus-api
Stef Walter [Tue, 24 Nov 2009 16:26:06 +0000 (16:26 +0000)]
Merge branch 'master' into dbus-api

14 years agoRemove old secrets stuff, which is now in a freedesktop project.
Stef Walter [Tue, 24 Nov 2009 03:11:43 +0000 (03:11 +0000)]
Remove old secrets stuff, which is now in a freedesktop project.

14 years ago[egg] Store DH groups in binary.
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.

14 years ago[gp11] Implement support for generate, wrap, unwrap, derive.
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...().

14 years ago[pkcs11] Implement DH key pair generation.
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.

14 years agoMerge branch 'master' into dbus-api
Stefan Walter [Sun, 15 Nov 2009 16:10:04 +0000 (16:10 +0000)]
Merge branch 'master' into dbus-api

14 years ago[egg] Add IETF DH groups.
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

14 years agoMerge branch 'master' into dbus-api
Stef Walter [Mon, 9 Nov 2009 22:26:04 +0000 (22:26 +0000)]
Merge branch 'master' into dbus-api

14 years agoMerge branch 'master' into dbus-api
Stef Walter [Mon, 9 Nov 2009 17:08:08 +0000 (17:08 +0000)]
Merge branch 'master' into dbus-api

14 years agoRefactor test directory function calls.
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.

14 years ago[egg] Move mkdtemp() code into its own file.
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.

14 years agoImplement prompt password return via encryption.
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.

14 years agoMerge branch 'master' into dbus-api
Stef Walter [Sat, 24 Oct 2009 01:45:31 +0000 (01:45 +0000)]
Merge branch 'master' into dbus-api

14 years ago[gp11] Fix memory leak in gp11_slot_get_token_info()
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>
14 years ago[egg] Build in default DH parameters.
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.

14 years ago[egg] Add spawn with callback functionality.
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.

14 years agoMerge branch 'master' into dbus-api
Stef Walter [Sat, 10 Oct 2009 15:06:42 +0000 (15:06 +0000)]
Merge branch 'master' into dbus-api

14 years ago[egg] Add DH functions for use by IPC.
Stef Walter [Sun, 4 Oct 2009 18:18:31 +0000 (18:18 +0000)]
[egg] Add DH functions for use by IPC.

14 years agoMerge branch 'master' into dbus-api
Stef Walter [Sun, 4 Oct 2009 16:18:23 +0000 (16:18 +0000)]
Merge branch 'master' into dbus-api

15 years agoMerge branch 'master' into dbus-api
Stef Walter [Wed, 30 Sep 2009 01:51:40 +0000 (01:51 +0000)]
Merge branch 'master' into dbus-api