Stef Walter [Mon, 29 Nov 2010 22:24:59 +0000 (22:24 +0000)]
[gcr] Complete tests of gcr_trust_xxx functionality.
Stef Walter [Mon, 29 Nov 2010 22:22:39 +0000 (22:22 +0000)]
[gck] Fix crash in enumerator when C_FindObjects fails.
If C_FindObjects failed when used in a gck_enumerate_xxx()
and friends, then we would crash.
Stef Walter [Mon, 29 Nov 2010 22:21:49 +0000 (22:21 +0000)]
[gck] Add functionality for dumping PKCS#11 attributes.
gck_attribute_dump() and gck_attributes_dump()
Stef Walter [Wed, 24 Nov 2010 19:27:13 +0000 (19:27 +0000)]
[pkcs11] Rename CKA_G_REMOTE to CKA_G_PEER (better terminology)
* Also update various locations where we used 'remote' to 'peer'
Stef Walter [Wed, 24 Nov 2010 16:12:16 +0000 (16:12 +0000)]
[testing] Preprocess test files before searching for tests.
* Allows tests to be commented out or ifdefed.
* Faster building of tests.
* Other cleanup of tests.
Stef Walter [Tue, 23 Nov 2010 22:56:30 +0000 (22:56 +0000)]
[egg] Add utilities so GByteArray can be used in GHashTable.
Update xdg pkcs11 module to use these new utils.
Stef Walter [Tue, 23 Nov 2010 02:48:38 +0000 (02:48 +0000)]
[egg] Encode empty SET OF and SEQUENCE OF properly.
Make choices based on whether they contain any other real
valid elements inside.
Stef Walter [Tue, 23 Nov 2010 02:26:23 +0000 (02:26 +0000)]
[egg] Add functions testing ASN.1 and printing out messages.
Stef Walter [Tue, 23 Nov 2010 02:04:18 +0000 (02:04 +0000)]
[egg] Must select which choice when building ASN.1.
When building up ASN.1 must select which choice by using
the egg_asn1x_set_choice() function.
Stef Walter [Mon, 22 Nov 2010 22:05:17 +0000 (22:05 +0000)]
[egg] Implement egg_asn1x_set_raw_element() for explicitly tagged types.
Also fix encoding of explicitly tagged choice elements.
Stef Walter [Sun, 21 Nov 2010 03:06:00 +0000 (03:06 +0000)]
[egg] Produce proper messages for mismatched tags in DER parsing.
Stef Walter [Fri, 19 Nov 2010 19:38:32 +0000 (19:38 +0000)]
Fix up gcr library to support trust assertions.
Stef Walter [Fri, 19 Nov 2010 18:06:10 +0000 (18:06 +0000)]
Better ASN.1 test coverage and fixes.
Stef Walter [Thu, 11 Nov 2010 21:52:07 +0000 (21:52 +0000)]
Merge branch 'master' into trust-store
Danielle Madeley [Thu, 14 Oct 2010 02:11:09 +0000 (13:11 +1100)]
[gcr] Replace gp11-0 with gck in pkgconfig file
Stef Walter [Mon, 11 Oct 2010 00:37:24 +0000 (00:37 +0000)]
[gcr] Fix broken dispose of GcrCertificateWidget
Dispose and finalize of the gcr widgets was broken.
https://bugzilla.gnome.org/show_bug.cgi?id=631840
Stef Walter [Fri, 8 Oct 2010 13:46:32 +0000 (13:46 +0000)]
[gp11] Remove gp11 library.
Remove gp11 library now that seahorse has migrated to libgck.
libgck is the replacement for gp11
Stef Walter [Fri, 8 Oct 2010 01:24:50 +0000 (01:24 +0000)]
Release version 2.91.1
Stef Walter [Wed, 6 Oct 2010 14:24:40 +0000 (14:24 +0000)]
[gcr] Fixes for building with GTK+ 2.91.0
Mostly related to no more expose_event and only having draw signal.
Stef Walter [Wed, 6 Oct 2010 14:20:44 +0000 (14:20 +0000)]
[gck] Fix wrong library name in pkgconfig file
pkgconfig file still contained gp11
Stef Walter [Tue, 5 Oct 2010 22:05:22 +0000 (22:05 +0000)]
Merge branch 'ui-widgets'
Stef Walter [Tue, 5 Oct 2010 21:58:48 +0000 (21:58 +0000)]
Merge branch 'gnome-2-32'
William Jon McCann [Sat, 2 Oct 2010 05:36:58 +0000 (01:36 -0400)]
Fix typo to fix the build
Philip Withnall [Fri, 1 Oct 2010 18:26:21 +0000 (18:26 +0000)]
Miscellaneous string fixes
Small grammar and punctuation fixes.
Stef Walter [Fri, 1 Oct 2010 18:14:27 +0000 (18:14 +0000)]
Merge branch 'gck-work'
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
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.
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.
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.
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.
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.
Stef Walter [Mon, 20 Sep 2010 02:02:21 +0000 (02:02 +0000)]
[egg] Add accessor functions for enumerated ASN.1 values.
Add getter and setter for ENUMERATED ASN.1 values, and DER
encoder.
Stef Walter [Sun, 19 Sep 2010 02:32:28 +0000 (02:32 +0000)]
[gcr] Save subject and md5 hash as well when storing trust.
In addition to the attributes we use to look things up store
CKA_SUBJECT and CKA_CERT_MD5_HASH as well.
Stef Walter [Sat, 18 Sep 2010 20:34:43 +0000 (20:34 +0000)]
[gcr] Use gpointer instead guchar for GSimpleCertificate
Fix up for consistency.
Stef Walter [Sat, 18 Sep 2010 17:20:23 +0000 (17:20 +0000)]
[gcr] Implement gcr_trust_xxx() functions.
For looking up certificate trust exceptions and trust roots.
We do not do trust chains or verification. We provide access to trust
storage.
Stef Walter [Sat, 18 Sep 2010 15:56:11 +0000 (15:56 +0000)]
[gcr] Functions for access GcrCertificate subject and issuer raw DER
Add the gcr_certificate_get_issuer_raw() and
gcr_certificate_get_subject_raw() functions for accessing raw DER
of issuer and certificate respectively.
Also use correct function for accessing raw serial number.
Stef Walter [Wed, 15 Sep 2010 22:41:32 +0000 (22:41 +0000)]
[egg] Add egg_asn1x_append() for adding to SEQ OF or SET OF
To add a value to a SEQUENCE OF or SET OF, added the function
egg_asn1x_append().
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.
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.
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.
Stef Walter [Mon, 13 Sep 2010 08:33:14 +0000 (08:33 +0000)]
Merge branch 'gck-work' into ui-widgets
Stef Walter [Sun, 12 Sep 2010 21:19:52 +0000 (21:19 +0000)]
Merge branch 'master' into gck-work
Stef Walter [Sun, 12 Sep 2010 19:36:37 +0000 (19:36 +0000)]
Release version 2.31.92
Stef Walter [Sun, 12 Sep 2010 19:27:50 +0000 (19:27 +0000)]
Merge branch 'pam-client-no-max-path'
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
Stef Walter [Sat, 11 Sep 2010 20:47:43 +0000 (20:47 +0000)]
Merge branch 'gsettings-migration'
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.
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.
Stef Walter [Wed, 8 Sep 2010 02:21:24 +0000 (02:21 +0000)]
Merge remote branch 'pwith/628910-header-dir'
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
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.
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
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.
Stef Walter [Wed, 1 Sep 2010 03:19:31 +0000 (03:19 +0000)]
Merge branch '624570-gtk3-option'
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
Stef Walter [Mon, 30 Aug 2010 14:44:14 +0000 (14:44 +0000)]
[gcr] Don't delete entire content when one renderer redraws.
Stef Walter [Mon, 30 Aug 2010 14:00:27 +0000 (14:00 +0000)]
[gcr] Fix problems with expanding details not showing scrollbar.
* The invisible attribute of tags in GtkTextView is buggy. So rerender
instead when expanding.
Stef Walter [Mon, 30 Aug 2010 13:45:41 +0000 (13:45 +0000)]
[gcr] Rework the architecture of viewers.
* GcrRenderer renders data like a certificate.
* GcrViewer is what the renderers render to.
* GcrXxxWidget are helper classes for quick instatiation.
Stef Walter [Sun, 29 Aug 2010 15:16:03 +0000 (15:16 +0000)]
[gcr] Remove the old style certificate widgets.
This is replaced by the unified certificate widget with both
basics and details.
Philip Withnall [Wed, 25 Aug 2010 14:15:43 +0000 (15:15 +0100)]
Add missing default cases in switch statements
Philip Withnall [Wed, 25 Aug 2010 14:12:56 +0000 (15:12 +0100)]
Fix shadowing of a glibc function to fix a gcc warning
Philip Withnall [Wed, 25 Aug 2010 14:12:11 +0000 (15:12 +0100)]
Use #ifdef instead of #if to fix gcc warnings
Philip Withnall [Sat, 28 Aug 2010 17:40:21 +0000 (18:40 +0100)]
Use "different from" rather than "different than" in a translatable string
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
Stef Walter [Sat, 28 Aug 2010 23:01:53 +0000 (23:01 +0000)]
Merge branch 'gck-work' into ui-widgets
Stef Walter [Sat, 28 Aug 2010 22:45:59 +0000 (22:45 +0000)]
[gcr] Use cairo instead of old GDK draw stuff.
Remove use of gdk_draw_pixbuf().
Stef Walter [Fri, 27 Aug 2010 03:22:52 +0000 (03:22 +0000)]
[gcr] Install the gcr-simple-certificate.h header properly.
Stef Walter [Wed, 25 Aug 2010 13:14:32 +0000 (08:14 -0500)]
Port gnome-keyring to new gck library.
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.
Stef Walter [Mon, 9 Aug 2010 18:15:43 +0000 (20:15 +0200)]
[egg] Make the hex decoder more robust
Stef Walter [Mon, 9 Aug 2010 12:10:43 +0000 (14:10 +0200)]
[gck] Fix up tests problems after recent commits.
Stef Walter [Sun, 8 Aug 2010 07:43:10 +0000 (09:43 +0200)]
Merge branch 'master' into gck-work
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
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.
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.
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.
Stef Walter [Fri, 30 Jul 2010 10:59:11 +0000 (12:59 +0200)]
[gck] Fix some indentation
Stef Walter [Fri, 30 Jul 2010 07:37:53 +0000 (09:37 +0200)]
[gck] More header cleanups.
Stef Walter [Fri, 30 Jul 2010 07:29:40 +0000 (09:29 +0200)]
Merge branch 'master' into gck-work
Stef Walter [Fri, 30 Jul 2010 07:28:15 +0000 (09:28 +0200)]
[gck] Remove debug line.
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.
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..
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.
Stef Walter [Tue, 27 Jul 2010 06:00:23 +0000 (06:00 +0000)]
[gcr] Get ready for screenshots in GUADEC presentation
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.
Stef Walter [Tue, 13 Jul 2010 03:45:37 +0000 (03:45 +0000)]
[gcr] Implement rudimentary key view.
Stef Walter [Mon, 21 Jun 2010 02:36:43 +0000 (02:36 +0000)]
[gcr] Create new view interface and implement for certificates.
Stef Walter [Sun, 20 Jun 2010 17:39:44 +0000 (17:39 +0000)]
[gcr] Fine tune the details expander.
Stef Walter [Sun, 20 Jun 2010 17:20:19 +0000 (17:20 +0000)]
[gcr] Display proper certificate icon.
Stef Walter [Sun, 20 Jun 2010 16:53:21 +0000 (16:53 +0000)]
[gcr] Rework how the certificate widget works.
* Base class so we can use for other widgets.
* Details are part of an expander.
Stef Walter [Sun, 20 Jun 2010 01:11:48 +0000 (01:11 +0000)]
Rework how the importer and parser work together.
* Parser becomes a general source for objects.
Stef Walter [Sun, 11 Jul 2010 23:30:30 +0000 (23:30 +0000)]
[daemon] Fix uninitialized PKCS#11 function pointer.
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.
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.
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.
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.
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.