platform/upstream/gcr.git
13 years ago[egg] Complete implementation of openssl sytle PEM writing
Stef Walter [Tue, 8 Mar 2011 17:10:19 +0000 (18:10 +0100)]
[egg] Complete implementation of openssl sytle PEM writing

The openssl PEM parser is particularly fragile, so write some
stringent tests to check.

13 years ago[gck] Fix uri library-manufacturer test.
Stef Walter [Mon, 7 Mar 2011 14:56:08 +0000 (15:56 +0100)]
[gck] Fix uri library-manufacturer test.

13 years agoTransfer the color properly onto the certificate widget expander.
Stef Walter [Fri, 4 Mar 2011 18:04:23 +0000 (19:04 +0100)]
Transfer the color properly onto the certificate widget expander.

 * Remains white when a text selection surrounds it, this is harder
   to fix.
 * Highlights properly on mouse over.

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

13 years agoCalculate the minimal/natural size of certificate widget better.
Stef Walter [Fri, 4 Mar 2011 17:43:29 +0000 (18:43 +0100)]
Calculate the minimal/natural size of certificate widget  better.

 * These are still just gueseses. But they're guesses that look good.
 * Added a new GcrViewer implementation that is a scrolled viewer.
   We use this in GcrCertificateWidget instead of using GtkScrolledWindow
   directly.

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

13 years agoMake the library-manufacturer in the trust uris actually match.
Stef Walter [Wed, 2 Mar 2011 18:01:43 +0000 (19:01 +0100)]
Make the library-manufacturer in the trust uris actually match.

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

13 years ago[gck] Support 'library-manufacturer' in PKCS#11 URIs properly.
Stef Walter [Tue, 1 Mar 2011 11:19:17 +0000 (12:19 +0100)]
[gck] Support 'library-manufacturer' in PKCS#11 URIs properly.

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

13 years agoMerge branch 'secret-content-type'
Stef Walter [Tue, 1 Mar 2011 09:27:42 +0000 (10:27 +0100)]
Merge branch 'secret-content-type'

13 years agoMerge branch 'hard-code-config'
Stef Walter [Tue, 1 Mar 2011 09:19:10 +0000 (10:19 +0100)]
Merge branch 'hard-code-config'

13 years ago[gcr] Remove support for pkcs11-options file.
Stef Walter [Mon, 28 Feb 2011 14:21:07 +0000 (15:21 +0100)]
[gcr] Remove support for pkcs11-options file.

In the next release we should be integrating with p11-kit which will
contain support for proper configuration of PKCS#11 modules. So for
this release we hard code the modules we'd like to use.

13 years agoUse more modern gtest style for egg tests.
Stef Walter [Wed, 23 Feb 2011 17:55:29 +0000 (18:55 +0100)]
Use more modern gtest style for egg tests.

13 years agoAdd translator comment about 'pinned certificate'
Claude Paroz [Wed, 9 Feb 2011 20:20:48 +0000 (21:20 +0100)]
Add translator comment about 'pinned certificate'

13 years agoFix undefined type in egg-asn1x.c
Ryan Stonecipher [Mon, 24 Jan 2011 20:42:02 +0000 (14:42 -0600)]
Fix undefined type in egg-asn1x.c

Mac OSX doesn't have a ulong type

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

13 years agoFix problems building tests using internal functions.
Stef Walter [Wed, 19 Jan 2011 19:12:05 +0000 (13:12 -0600)]
Fix problems building tests using internal functions.

Recently the changes to libgck and libgcr --export-symbols-regex
broke the tests. Export different symbols when tests are enabled
or not.

13 years agoIssue new test certificates.
Stef Walter [Wed, 19 Jan 2011 18:40:02 +0000 (12:40 -0600)]
Issue new test certificates.

13 years ago[gcr] Redo the PKCS#11 configuration file.
Stef Walter [Tue, 4 Jan 2011 22:57:48 +0000 (16:57 -0600)]
[gcr] Redo the PKCS#11 configuration file.

Use /etc/pkcs11/pkcs11-options and pkcs11-options.defaults files
instead. Don't use XDG style stuff if we're not going to follow
the XDG base dir specification.

13 years ago[gck] Update PKCS#11 URI to add library support.
Stef Walter [Fri, 31 Dec 2010 14:06:31 +0000 (08:06 -0600)]
[gck] Update PKCS#11 URI to add library support.

Add library-description and library-description and library-manufacturer
parts. And refactor to support parsing in different contexts better.

13 years agoI18N fix - using ngettext
Marek Černocký [Sat, 15 Jan 2011 16:04:09 +0000 (17:04 +0100)]
I18N fix - using ngettext

13 years agolibgcr.so: Only export symbols that begin with gcr_
Emilio Pozuelo Monfort [Tue, 28 Dec 2010 18:19:07 +0000 (18:19 +0000)]
libgcr.so: Only export symbols that begin with gcr_

Bug #638216

13 years agolibgck.so: Only export symbols that begin with gck_
Emilio Pozuelo Monfort [Tue, 28 Dec 2010 18:17:00 +0000 (18:17 +0000)]
libgck.so: Only export symbols that begin with gck_

Bug #638216

13 years ago[gcr] More fixes for GTK+ 2.91.7
Stef Walter [Wed, 22 Dec 2010 21:14:13 +0000 (21:14 +0000)]
[gcr] More fixes for GTK+ 2.91.7

 * gtk_widget_render_icon()
 * gdk_cursor_unref()

13 years ago[gcr] Make tests use pkcs11.conf.defaults from srcdir.
Stef Walter [Wed, 22 Dec 2010 17:16:49 +0000 (17:16 +0000)]
[gcr] Make tests use pkcs11.conf.defaults from srcdir.

So that make distcheck passes, and tests run without
a prior 'make install'

13 years agoMerge branch 'trust-store'
Stef Walter [Wed, 22 Dec 2010 16:36:37 +0000 (16:36 +0000)]
Merge branch 'trust-store'

13 years ago[gcr] PKCS#11 conf file is now in /etc/xdg
Stef Walter [Wed, 22 Dec 2010 16:00:28 +0000 (16:00 +0000)]
[gcr] PKCS#11 conf file is now in /etc/xdg

And install a pkcs11.conf.defaults file which is updated along
with gnome-keyring, and then a pkcs11.conf file which is editable
and can be overridden by admin/user.

13 years ago[egg] Don't try to encode optional sequences if empty.
Stef Walter [Wed, 22 Dec 2010 15:56:36 +0000 (15:56 +0000)]
[egg] Don't try to encode optional sequences if empty.

13 years ago[egg] Remove non-deterministic checks in spawn tests.
Stef Walter [Wed, 22 Dec 2010 15:55:55 +0000 (15:55 +0000)]
[egg] Remove non-deterministic checks in spawn tests.

These complete in a different thread, and the check is vulnerable
to a race condition.

13 years ago[egg] Fix uninitialized list pointers.
Stef Walter [Wed, 22 Dec 2010 15:22:09 +0000 (15:22 +0000)]
[egg] Fix uninitialized list pointers.

13 years agoAdd missing files to distribution.
Stef Walter [Wed, 22 Dec 2010 15:17:58 +0000 (15:17 +0000)]
Add missing files to distribution.

13 years ago[gcr] Add config file for setting trust slot origin/storage
Stef Walter [Sat, 18 Dec 2010 18:21:02 +0000 (12:21 -0600)]
[gcr] Add config file for setting trust slot origin/storage

Looks up which PKCS#11 slots to use for trust assertion lookups
and storage in /etc/pkcs11.conf

13 years ago[gck] Allow enumeration over slots as well as modules.
Stef Walter [Sat, 18 Dec 2010 17:59:11 +0000 (11:59 -0600)]
[gck] Allow enumeration over slots as well as modules.

Can now enumerate object over a list of slots, as well as
a list of modules.

13 years ago[gcr] Add distrusted GcrCertificateChainStatus
Stef Walter [Tue, 14 Dec 2010 00:57:38 +0000 (00:57 +0000)]
[gcr] Add distrusted GcrCertificateChainStatus

However no implementation yet.

13 years ago[gcr] Fix memory leaks in trust lookup tests.
Stef Walter [Mon, 13 Dec 2010 19:38:34 +0000 (19:38 +0000)]
[gcr] Fix memory leaks in trust lookup tests.

13 years ago[gcr] Fix memory leaks in async functions.
Stef Walter [Mon, 13 Dec 2010 19:38:13 +0000 (19:38 +0000)]
[gcr] Fix memory leaks in async functions.

g_async_result_get_source_object() refs its result.

13 years ago[gcr] Fix memory leaks in certificate chain code.
Stef Walter [Mon, 13 Dec 2010 19:37:19 +0000 (19:37 +0000)]
[gcr] Fix memory leaks in certificate chain code.

13 years agoMerge branch 'master' into trust-store
Stef Walter [Mon, 13 Dec 2010 18:58:43 +0000 (18:58 +0000)]
Merge branch 'master' into trust-store

13 years ago[gcr] Fix memory leaks in gcr test code.
Stef Walter [Mon, 13 Dec 2010 18:58:14 +0000 (18:58 +0000)]
[gcr] Fix memory leaks in gcr test code.

13 years ago[egg] Fix memory leaks in ASN.1 code.
Stef Walter [Mon, 13 Dec 2010 18:57:50 +0000 (18:57 +0000)]
[egg] Fix memory leaks in ASN.1 code.

13 years ago[gcr] Fix Gtk+ version check.
Stef Walter [Thu, 9 Dec 2010 22:25:48 +0000 (22:25 +0000)]
[gcr] Fix Gtk+ version check.

2.91.6 has the new style-context code, not 2.91.5

13 years agoUse term 'distrust' instead of 'untrust'
Stef Walter [Mon, 13 Dec 2010 17:26:51 +0000 (17:26 +0000)]
Use term 'distrust' instead of 'untrust'

Suggested by Yaron Sheffer and describes the concept much
more aptly.

13 years ago[gcr] Documentation fixes for GcrCertificateChain
Stef Walter [Sat, 11 Dec 2010 13:16:28 +0000 (13:16 +0000)]
[gcr] Documentation fixes for GcrCertificateChain

13 years ago[gcr] Certificate chain has a 'status' not a 'type'
Stef Walter [Sat, 11 Dec 2010 03:07:32 +0000 (03:07 +0000)]
[gcr] Certificate chain has a 'status' not a 'type'

This makes things clearer. Also add enum and flags types for
certificate chain stuff.

13 years ago[gcr] Fix problem where issuer was returned instead of subject.
Stef Walter [Sat, 11 Dec 2010 03:07:06 +0000 (03:07 +0000)]
[gcr] Fix problem where issuer was returned instead of subject.

13 years ago[gcr] Fix memory leak in certificate chain building.
Stef Walter [Fri, 10 Dec 2010 23:04:16 +0000 (23:04 +0000)]
[gcr] Fix memory leak in certificate chain building.

13 years agoRename CKA_G_ trust prefix to CKA_X_ and move to own file.
Stef Walter [Fri, 10 Dec 2010 22:26:41 +0000 (22:26 +0000)]
Rename CKA_G_ trust prefix to CKA_X_ and move to own file.

Move the PKCS#11 trust extensions to its own file and give it
its own prefix.

13 years agoChange terminology to 'pinned certificate' from 'exception'.
Stef Walter [Fri, 10 Dec 2010 22:09:42 +0000 (22:09 +0000)]
Change terminology to 'pinned certificate' from 'exception'.

The matching terminology of 'anchored certificate' and 'pinned
certificate' makes things consistent and understandable.

13 years ago[gcr] Add GcrCertificateChain
Stef Walter [Fri, 10 Dec 2010 21:08:55 +0000 (21:08 +0000)]
[gcr] Add GcrCertificateChain

Represents a certificate chain, and has an operation which builds
the chain into a complete chain and identifies the type of chain.

13 years ago[gcr] Fix type check macros for certificate implementations.
Stef Walter [Fri, 10 Dec 2010 21:08:12 +0000 (21:08 +0000)]
[gcr] Fix type check macros for certificate implementations.

The type check macros for GcrSimpleCertificate and GcrPkcs11Certificate
were wrong.

13 years ago[pkcs11] Fix up standalone modules for use in tests.
Stef Walter [Fri, 10 Dec 2010 04:33:35 +0000 (04:33 +0000)]
[pkcs11] Fix up standalone modules for use in tests.

 * Make the standalone modules always resident after loading.
 * Install modules to a path that's published in the pkg-config file.

13 years ago[gcr] Fix leak in gcr_pkcs11_certificate_lookup_issuer()
Stef Walter [Fri, 10 Dec 2010 04:31:55 +0000 (04:31 +0000)]
[gcr] Fix leak in gcr_pkcs11_certificate_lookup_issuer()

13 years ago[gcr] Add function to load module from file.
Stef Walter [Fri, 10 Dec 2010 04:31:06 +0000 (04:31 +0000)]
[gcr] Add function to load module from file.

Add gcr_pkcs11_add_module_from_file()

13 years ago[gcr] Expose functions for setting which pkcs11 modules to use.
Stef Walter [Fri, 10 Dec 2010 01:09:04 +0000 (01:09 +0000)]
[gcr] Expose functions for setting which pkcs11 modules to use.

Add gcr_pkcs11_get_modules(), gcr_pkcs11_set_modules(), gcr_pkcs11_add_module(),
gcr_pkcs11_get_trust_lookup_modules(), gcr_pkcs11_get_trust_store_slot(),
gcr_pkcs11_get_trust_store_uri(), gcr_pkcs11_set_trust_store_uri()

13 years ago[gcr] Fix Gtk+ version check.
Stef Walter [Thu, 9 Dec 2010 22:25:48 +0000 (22:25 +0000)]
[gcr] Fix Gtk+ version check.

2.91.6 has the new style-context code, not 2.91.5

13 years ago[gcr] Complete documentation for various certificate types.
Stef Walter [Tue, 7 Dec 2010 19:30:35 +0000 (19:30 +0000)]
[gcr] Complete documentation for various certificate types.

13 years ago[gcr] Document trust storage and lookup functions.
Stef Walter [Tue, 7 Dec 2010 18:47:49 +0000 (18:47 +0000)]
[gcr] Document trust storage and lookup functions.

13 years ago[gcr] More build fixes.
Stef Walter [Tue, 7 Dec 2010 18:47:22 +0000 (18:47 +0000)]
[gcr] More build fixes.

13 years ago[gcr] Implement GcrPkcs11Certificate which loads certs from PKCS#11
Stef Walter [Mon, 6 Dec 2010 22:43:01 +0000 (22:43 +0000)]
[gcr] Implement GcrPkcs11Certificate which loads certs from PKCS#11

In particular we can lookup certs by issuer from the PKCS#11 store.

13 years ago[gcr] Include libgck headers explictly in gcr headers.
Stef Walter [Mon, 6 Dec 2010 22:28:36 +0000 (22:28 +0000)]
[gcr] Include libgck headers explictly in gcr headers.

When we derive objects from gck objects, we have to include the
headers properly and not try to hide them.

13 years ago[gcr] Move to a single header model.
Stef Walter [Mon, 6 Dec 2010 22:00:41 +0000 (22:00 +0000)]
[gcr] Move to a single header model.

Similar to gtk, where you can only include <gcr/gcr.h> to prevent
future API breaks because of headers.

13 years ago[gcr] Use void pointers instead of unsigned char for data.
Stef Walter [Mon, 6 Dec 2010 21:45:04 +0000 (21:45 +0000)]
[gcr] Use void pointers instead of unsigned char for data.

Use void pointers to make like simpler and clearer.

13 years ago[gcr] Add gcr_certificate_is_issuer() and finish up testing.
Stef Walter [Mon, 6 Dec 2010 21:38:47 +0000 (21:38 +0000)]
[gcr] Add gcr_certificate_is_issuer() and finish up testing.

Add a function to test if a certificate is the issuer of another,
and finish up testing, fix some bugs.

13 years ago[gcr] GcrSimpleCertificate tests.
Stef Walter [Mon, 6 Dec 2010 21:12:17 +0000 (21:12 +0000)]
[gcr] GcrSimpleCertificate tests.

13 years agoMerge branch 'master' into trust-store
Stef Walter [Mon, 6 Dec 2010 21:00:30 +0000 (21:00 +0000)]
Merge branch 'master' into trust-store

13 years ago[gck] Don't load *.la files as PKCS#11 modules.
Stef Walter [Mon, 6 Dec 2010 20:59:48 +0000 (20:59 +0000)]
[gck] Don't load *.la files as PKCS#11 modules.

grumble, grumble, libtool, grumble.

13 years agoMerge branch 'master' into trust-store
Stef Walter [Mon, 6 Dec 2010 19:17:06 +0000 (19:17 +0000)]
Merge branch 'master' into trust-store

13 years ago[gcr] Fix build for GTK+3 style-context changes.
Stef Walter [Mon, 6 Dec 2010 19:16:25 +0000 (19:16 +0000)]
[gcr] Fix build for GTK+3 style-context changes.

Use new gtk_widget_override_background_color() function.

13 years ago[gcr] Make GcrSimpleCertificate constructor accept simple pointer.
Stef Walter [Thu, 2 Dec 2010 18:53:50 +0000 (18:53 +0000)]
[gcr] Make GcrSimpleCertificate constructor accept simple pointer.

Make it easier to deal with data whether unsigned or signed,
gint8 or char, etc.

13 years ago[gcr] Complete tests of gcr_trust_xxx functionality.
Stef Walter [Mon, 29 Nov 2010 22:24:59 +0000 (22:24 +0000)]
[gcr] Complete tests of gcr_trust_xxx functionality.

13 years ago[gck] Fix crash in enumerator when C_FindObjects fails.
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.

13 years ago[gck] Add functionality for dumping PKCS#11 attributes.
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()

13 years ago[pkcs11] Rename CKA_G_REMOTE to CKA_G_PEER (better terminology)
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'

13 years ago[testing] Preprocess test files before searching for tests.
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.

13 years ago[egg] Add utilities so GByteArray can be used in GHashTable.
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.

13 years ago[egg] Encode empty SET OF and SEQUENCE OF properly.
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.

13 years ago[egg] Add functions testing ASN.1 and printing out messages.
Stef Walter [Tue, 23 Nov 2010 02:26:23 +0000 (02:26 +0000)]
[egg] Add functions testing ASN.1 and printing out messages.

13 years ago[egg] Must select which choice when building ASN.1.
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.

13 years ago[egg] Implement egg_asn1x_set_raw_element() for explicitly tagged types.
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.

13 years ago[egg] Produce proper messages for mismatched tags in DER parsing.
Stef Walter [Sun, 21 Nov 2010 03:06:00 +0000 (03:06 +0000)]
[egg] Produce proper messages for mismatched tags in DER parsing.

13 years agoFix up gcr library to support trust assertions.
Stef Walter [Fri, 19 Nov 2010 19:38:32 +0000 (19:38 +0000)]
Fix up gcr library to support trust assertions.

13 years agoBetter ASN.1 test coverage and fixes.
Stef Walter [Fri, 19 Nov 2010 18:06:10 +0000 (18:06 +0000)]
Better ASN.1 test coverage and fixes.

13 years agoMerge branch 'master' into trust-store
Stef Walter [Thu, 11 Nov 2010 21:52:07 +0000 (21:52 +0000)]
Merge branch 'master' into trust-store

13 years ago[gcr] Replace gp11-0 with gck in pkgconfig file
Danielle Madeley [Thu, 14 Oct 2010 02:11:09 +0000 (13:11 +1100)]
[gcr] Replace gp11-0 with gck in pkgconfig file

13 years ago[gcr] Fix broken dispose of GcrCertificateWidget
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

13 years ago[gp11] Remove gp11 library.
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

13 years agoRelease version 2.91.1
Stef Walter [Fri, 8 Oct 2010 01:24:50 +0000 (01:24 +0000)]
Release version 2.91.1

13 years ago[gcr] Fixes for building with GTK+ 2.91.0
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.

13 years ago[gck] Fix wrong library name in pkgconfig file
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

13 years agoMerge branch 'ui-widgets'
Stef Walter [Tue, 5 Oct 2010 22:05:22 +0000 (22:05 +0000)]
Merge branch 'ui-widgets'

13 years agoMerge branch 'gnome-2-32'
Stef Walter [Tue, 5 Oct 2010 21:58:48 +0000 (21:58 +0000)]
Merge branch 'gnome-2-32'

13 years agoFix typo to fix the build
William Jon McCann [Sat, 2 Oct 2010 05:36:58 +0000 (01:36 -0400)]
Fix typo to fix the build

13 years agoMiscellaneous string fixes
Philip Withnall [Fri, 1 Oct 2010 18:26:21 +0000 (18:26 +0000)]
Miscellaneous string fixes

Small grammar and punctuation fixes.

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[egg] Add accessor functions for enumerated ASN.1 values.
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.

13 years ago[gcr] Save subject and md5 hash as well when storing trust.
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.

13 years ago[gcr] Use gpointer instead guchar for GSimpleCertificate
Stef Walter [Sat, 18 Sep 2010 20:34:43 +0000 (20:34 +0000)]
[gcr] Use gpointer instead guchar for GSimpleCertificate

Fix up for consistency.

13 years ago[gcr] Implement gcr_trust_xxx() functions.
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.