platform/upstream/gcr.git
13 years agoMerge branch 'gck-work'
Stef Walter [Fri, 1 Oct 2010 18:14:27 +0000 (18:14 +0000)]
Merge branch 'gck-work'

13 years ago[gck] Build libgck docs and remove gp11 docs.
Stef Walter [Fri, 1 Oct 2010 18:09:19 +0000 (18:09 +0000)]
[gck] Build libgck docs and remove gp11 docs.

Replace the gp11 docs with gck ones

13 years ago[gck] Mark the gck API as unstable with a define.
Stef Walter [Fri, 1 Oct 2010 17:55:39 +0000 (17:55 +0000)]
[gck] Mark the gck API as unstable with a define.

Use -DGCK_API_SUBJECT_TO_CHANGE in order to compile.

13 years ago[gck] GckAttribute with const value pointer.
Stef Walter [Tue, 28 Sep 2010 01:10:48 +0000 (01:10 +0000)]
[gck] GckAttribute with const value pointer.

We want to reinforce the fact that attributes are not modifiable once
they're setup.

13 years ago[gck] Simplify use of GckMechanism
Stef Walter [Tue, 28 Sep 2010 01:05:41 +0000 (01:05 +0000)]
[gck] Simplify use of GckMechanism

There's no way to do a deep copy of a GckMechanisms aka CK_MECHANISM.
The parameter may contain pointers to other memory else where. So we
do a shallow copy instead. The memory is expected to stay around just
like a buffer.

13 years ago[gck] Cleanup use of 'full' functions.
Stef Walter [Mon, 27 Sep 2010 23:54:24 +0000 (23:54 +0000)]
[gck] Cleanup use of 'full' functions.

 * Expect GCancellable in more places.
 * Remove a bunch of xxx_full() functions that are redundant.
 * Add a few xxx_full() functions where we don't want to have
   to fill in full mechanisms.

13 years ago[gck] Add session options, remove module options.
Stef Walter [Mon, 27 Sep 2010 23:09:01 +0000 (23:09 +0000)]
[gck] Add session options, remove module options.

Add concept of session options, which are different (but sometimes
related to) session PKCS#11 flags. The session options take the
place of module options, which were much harder to use appropriately.

13 years ago[gck] Add gck_attributes_add_all() for copying GckAttributes
Stef Walter [Sat, 18 Sep 2010 17:13:02 +0000 (17:13 +0000)]
[gck] Add gck_attributes_add_all() for copying GckAttributes

New function allows deep copying of a GckAttributes array.

13 years ago[gck] Rework testing and make mock module.
Stef Walter [Sat, 18 Sep 2010 17:08:59 +0000 (17:08 +0000)]
[gck] Rework testing and make mock module.

Make mock Pkcs#11 module better modularized, and available to other
tests of other modules. Add more test helpers.

13 years ago[gck] Expose CK_BBOOL and CK_ULONG casting helpers.
Stef Walter [Sat, 18 Sep 2010 03:02:18 +0000 (03:02 +0000)]
[gck] Expose CK_BBOOL and CK_ULONG casting helpers.

Add gck_value_to_ulong() and gck_value_to_boolean() to check
and cast CK_BBOOL and CK_ULONG.

13 years agoMerge branch 'master' into gck-work
Stef Walter [Sun, 12 Sep 2010 21:19:52 +0000 (21:19 +0000)]
Merge branch 'master' into gck-work

13 years agoRelease version 2.31.92
Stef Walter [Sun, 12 Sep 2010 19:36:37 +0000 (19:36 +0000)]
Release version 2.31.92

13 years agoMerge branch 'pam-client-no-max-path'
Stef Walter [Sun, 12 Sep 2010 19:27:50 +0000 (19:27 +0000)]
Merge branch 'pam-client-no-max-path'

13 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

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

13 years ago[gck] Fix double free with copied attributes.
Stef Walter [Fri, 10 Sep 2010 04:52:31 +0000 (04:52 +0000)]
[gck] Fix double free with copied attributes.

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

13 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.

13 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'

13 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

13 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.

13 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

13 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.

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

13 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

13 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

13 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

13 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

13 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

13 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

13 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.

13 years agoPort gnome-keyring to new gck library.
Stef Walter [Wed, 25 Aug 2010 13:14:32 +0000 (08:14 -0500)]
Port gnome-keyring to new gck library.

14 years ago[gck] Implement PkCS#11 URI's and enumeration
Stef Walter [Mon, 9 Aug 2010 18:16:05 +0000 (20:16 +0200)]
[gck] Implement PkCS#11 URI's and enumeration

 * PKCS#11 URI spec is not completely finalized yet.
 * Removed old callback style enumeration and replaced with gio style.

14 years ago[egg] Make the hex decoder more robust
Stef Walter [Mon, 9 Aug 2010 18:15:43 +0000 (20:15 +0200)]
[egg] Make the hex decoder more robust

14 years ago[gck] Fix up tests problems after recent commits.
Stef Walter [Mon, 9 Aug 2010 12:10:43 +0000 (14:10 +0200)]
[gck] Fix up tests problems after recent commits.

14 years agoMerge branch 'master' into gck-work
Stef Walter [Sun, 8 Aug 2010 07:43:10 +0000 (09:43 +0200)]
Merge branch 'master' into gck-work

14 years ago[gck] Add methods for listing and initializing registered modules.
Stef Walter [Sun, 1 Aug 2010 10:02:56 +0000 (12:02 +0200)]
[gck] Add methods for listing and initializing registered modules.

 * We use the concept of a PKCS #11 registry as outlined here:
   http://wiki.cacert.org/Pkcs11TaskForce

14 years ago[gck] Make various objects pretty much immutable.
Stef Walter [Sun, 1 Aug 2010 09:34:29 +0000 (11:34 +0200)]
[gck] Make various objects pretty much immutable.

 * Except for certain flags used during destruction, which we
   use atomically internally.

14 years ago[gck] Remove most complex var args functions.
Stef Walter [Sat, 31 Jul 2010 08:39:59 +0000 (10:39 +0200)]
[gck] Remove most complex var args functions.

 * These functions could not be bound through gobject introspection.
 * They were hard to get right even in C, because the varargs were
   triples.

14 years ago[gck] Remove session pooling, and add concept of module list.
Stef Walter [Fri, 30 Jul 2010 18:42:16 +0000 (20:42 +0200)]
[gck] Remove session pooling, and add concept of module list.

 * Session pooling no langer necessary now that we track sessions
   properly in GckObject. This was of dubious value anyway.
 * Added concept of a module list.

14 years ago[gck] Fix some indentation
Stef Walter [Fri, 30 Jul 2010 10:59:11 +0000 (12:59 +0200)]
[gck] Fix some indentation

14 years ago[gck] More header cleanups.
Stef Walter [Fri, 30 Jul 2010 07:37:53 +0000 (09:37 +0200)]
[gck] More header cleanups.

14 years agoMerge branch 'master' into gck-work
Stef Walter [Fri, 30 Jul 2010 07:29:40 +0000 (09:29 +0200)]
Merge branch 'master' into gck-work

14 years ago[gck] Remove debug line.
Stef Walter [Fri, 30 Jul 2010 07:28:15 +0000 (09:28 +0200)]
[gck] Remove debug line.

14 years ago[gck] Objects keep reference to sessions not slots.
Stef Walter [Fri, 30 Jul 2010 07:21:28 +0000 (09:21 +0200)]
[gck] Objects keep reference to sessions not slots.

 * This better models the way that PKCS#11 actually works.

14 years ago[gck] In preparation for public release, rename library.
Stef Walter [Thu, 29 Jul 2010 14:34:07 +0000 (16:34 +0200)]
[gck] In preparation for public release, rename library.

 * Next steps will include cleaning up the API making it ready
   for gobject introspection etc..

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.