platform/upstream/gcr.git
15 years agoFix possible threading problems, by using proper class finalizer, and
Stefan Walter [Sun, 21 Dec 2008 17:15:37 +0000 (17:15 +0000)]
Fix possible threading problems, by using proper class finalizer, and

* gp11/gp11-private.h:
* gp11/gp11-call.c: Fix possible threading problems, by using
proper class finalizer, and hiding all instance details.

* gp11/gp11-object.c: Fix possible reference counting problem.

* gp11/gp11-slot.c:
* gp11/tests/unit-test-gp11-object.c: Fix test reference problems.

svn path=/trunk/; revision=1402

15 years agoThere was a problem when the main loop wasn't being run for periods of
Stefan Walter [Wed, 17 Dec 2008 19:55:48 +0000 (19:55 +0000)]
There was a problem when the main loop wasn't being run for periods of

* gp11/gp11-call.c: There was a problem when the main loop
wasn't being run for periods of time, things would backup.
Now we process a result for every async call we make.

* gp11/gp11-object.c:
* gp11/gp11-slot.c: Object lifetime fixes.

svn path=/trunk/; revision=1392

15 years agogp11/gp11.h
Stefan Walter [Sun, 14 Dec 2008 00:39:44 +0000 (00:39 +0000)]
gp11/gp11.h

* gp11/gp11.h
* gp11/gp11-call.c:
* gp11/gp11-object.c:
* gp11/gp11-private.h:
* gp11/gp11-session.c:
* gp11/gp11-slot.c:
* gp11/gp11-test-gp11-object.c: Don't tie an object to a session unless
explicitly requested. Automatically open a session for object operations
(usually pooled).

svn path=/trunk/; revision=1388

15 years agoRemove usage of deprecated glib stuff.
Stefan Walter [Tue, 4 Nov 2008 12:54:32 +0000 (12:54 +0000)]
Remove usage of deprecated glib stuff.

* configure.in:
* gp11/tests/gp11-test.h:
* common/gkr-location.c: Remove usage of deprecated glib stuff.

svn path=/trunk/; revision=1362

15 years agoRelease version 2.24.0
Stefan Walter [Sat, 20 Sep 2008 22:22:57 +0000 (22:22 +0000)]
Release version 2.24.0

* ChangeLog:
* configure.in:
* NEWS:
* gp11/reference/Makefile.am: Release version 2.24.0

svn path=/trunk/; revision=1344

15 years agoUpdate documentation for functions in gp11 library.
Stefan Walter [Thu, 18 Sep 2008 02:19:47 +0000 (02:19 +0000)]
Update documentation for functions in gp11 library.

* gp11/gp11-module.c:
* gp11/gp11-object.c:
* gp11/gp11-session.c:
* gp11/gp11-slot.c:
* gp11/reference/Makefile.am:
* gp11/reference/gp11-docs.sgml:
* gp11/reference/gp11-sections.txt:
* gp11/reference/gp11-undeclared.txt:
* gp11/reference/tmpl/gp11-unused.sgml: Update documentation
for functions in gp11 library.

svn path=/trunk/; revision=1336

15 years agoAdd init_args field. (gp11_module_initialize): Use init_args structure
Stefan Walter [Sun, 14 Sep 2008 22:35:43 +0000 (22:35 +0000)]
Add init_args field. (gp11_module_initialize): Use init_args structure

* gp11/gp11-module.c (GP11ModulePrivate): Add init_args field.
(gp11_module_initialize): Use init_args structure from private
structure since at least one PKCS#11 module (opensc) requires
that the init_args argument persists in memory.

svn path=/trunk/; revision=1327

15 years agoBuild fix for Solaris. Fixes bug #550943. Patch by Jeff Cai.
Stefan Walter [Sun, 7 Sep 2008 15:09:09 +0000 (15:09 +0000)]
Build fix for Solaris. Fixes bug #550943. Patch by Jeff Cai.

* gp11/gp11-slot.c: Build fix for Solaris.
Fixes bug #550943. Patch by Jeff Cai.

svn path=/trunk/; revision=1304

15 years agoComplete some more documentation.
Stefan Walter [Sun, 31 Aug 2008 20:16:23 +0000 (20:16 +0000)]
Complete some more documentation.

* gp11/gp11-misc.c:
* gp11/gp11-module.c: Complete some more documentation.

svn path=/trunk/; revision=1284

15 years agoUse a more easily translatable message for CKR_RANDOM_SEED_NOT_SUPPORTED.
Stefan Walter [Sun, 31 Aug 2008 18:17:36 +0000 (18:17 +0000)]
Use a more easily translatable message for CKR_RANDOM_SEED_NOT_SUPPORTED.

* gp11/gp11-misc.c: Use a more easily translatable message
for CKR_RANDOM_SEED_NOT_SUPPORTED.

svn path=/trunk/; revision=1281

15 years agoAdded start of documentation for the GP11 library.
Stefan Walter [Thu, 28 Aug 2008 03:13:42 +0000 (03:13 +0000)]
Added start of documentation for the GP11 library.

* gp11/Makefile.am:
* gp11/gp11-attributes.c:
* gp11/gp11.h:
* gp11/reference/*: (added) Added start of documentation for the
GP11 library.

svn path=/trunk/; revision=1280

15 years agoMissing file from previous commit
Stefan Walter [Thu, 28 Aug 2008 02:56:34 +0000 (02:56 +0000)]
Missing file from previous commit

svn path=/trunk/; revision=1277

15 years agoMake sure we use the UTC time when converting time from PKCS#11.
Stefan Walter [Thu, 28 Aug 2008 02:42:21 +0000 (02:42 +0000)]
Make sure we use the UTC time when converting time from PKCS#11.

* gp11/gp11-slot.c: Make sure we use the UTC time when
converting time from PKCS#11.

svn path=/trunk/; revision=1275

15 years agoFix build problem with string formats to g_set_error.
Stefan Walter [Sat, 23 Aug 2008 04:02:25 +0000 (04:02 +0000)]
Fix build problem with string formats to g_set_error.

* gp11/gp11-call.c: Fix build problem with string formats
to g_set_error.

svn path=/trunk/; revision=1261

15 years agoAdd license comments to top of files.
Stefan Walter [Sun, 17 Aug 2008 16:20:55 +0000 (16:20 +0000)]
Add license comments to top of files.

* gp11/gp11-attributes.c:
* gp11/gp11-call.c:
* gp11/gp11-misc.c:
* gp11/gp11-module.c:
* gp11/gp11-object.c:
* gp11/gp11-private.h:
* gp11/gp11-session.c:
* gp11/gp11-slot.c:
* gp11/gp11.h: Add license comments to top of files.

svn path=/trunk/; revision=1249

15 years agogp11/gp11.h
Stefan Walter [Sun, 17 Aug 2008 16:09:52 +0000 (16:09 +0000)]
gp11/gp11.h

* gp11/gp11-attributes.c:
* gp11/gp11-misc.c:
* gp11/gp11-object.c:
* gp11/gp11-private.h:
* gp11/gp11-session.c:
* gp11/gp11-slot.c:
* gp11/gp11.h
* gp11/tests/unit-test-gp11-object.c:
* gp11/tests/unit-test-gp11-slot.c:
* tool/gkr-tool-import.c: Use gulong for all CK_ULONG derived
types in PKCS#11. Fixes bug #547830

svn path=/trunk/; revision=1248

15 years agoAdd concept of invalid attributes. Don't throw error when some attributes
Stefan Walter [Sun, 3 Aug 2008 20:35:04 +0000 (20:35 +0000)]
Add concept of invalid attributes. Don't throw error when some attributes

* gp11/gp11-attribute.c:
* gp11/gp11-call.c:
* gp11/gp11-object.c:
* gp11/gp11-private.h:
* gp11/gp11-session.c:
* gp11/gp11-slot.c:
* gp11/gp11.h: Add concept of invalid attributes. Don't throw error
when some attributes of a multi attribute retrieval are invalid.
Call async ready callbacks with right object.

* daemon/data/gnome-keyring.schemas.in: Add gconf schema for
noting the PKCS#11 objects for the current user.

svn path=/trunk/; revision=1216

15 years agoMore fine tuning of GP11 library. Add missing functions. Clarify date
Stefan Walter [Sun, 3 Aug 2008 17:03:01 +0000 (17:03 +0000)]
More fine tuning of GP11 library. Add missing functions. Clarify date

* gp11/gp11-attributes.c:
* gp11/gp11-object.c:
* gp11/gp11-session.c:
* gp11/gp11-slot.c:
* gp11/gp11.h:
* gp11/tests/unit-test-gp11-attributes.c: More fine tuning of GP11
library. Add missing functions. Clarify date handling.

svn path=/trunk/; revision=1213

15 years agoFine tune GP11 library. Make attribute data be guchar, and install gnome
Stefan Walter [Sun, 3 Aug 2008 15:02:25 +0000 (15:02 +0000)]
Fine tune GP11 library. Make attribute data be guchar, and install gnome

* gp11/gp11-attributes.c:
* gp11/gp11.h:
* gp11/gp11.pc.in:
* pkcs11/Makefile.am: Fine tune GP11 library. Make attribute
data be guchar, and install gnome PKCS#11 header. Set proper
version on the library.

svn path=/trunk/; revision=1212

15 years agoFix text problems highlighted by Claude Paroz Fixes bug #545030.
Stefan Walter [Mon, 28 Jul 2008 03:50:18 +0000 (03:50 +0000)]
Fix text problems highlighted by Claude Paroz Fixes bug #545030.

* daemon/pk/gkr-pk-storage.c:
* daemon/ssh/gkr-ssh-storage.c:
* gp11/gp11-misc.c: Fix text problems highlighted by Claude
Paroz
Fixes bug #545030.

svn path=/trunk/; revision=1205

15 years agoBuild fixes. Fixes bug #544407
Stefan Walter [Fri, 25 Jul 2008 17:33:29 +0000 (17:33 +0000)]
Build fixes. Fixes bug #544407

* gp11/gp11-module.c: Build fixes. Fixes bug #544407

svn path=/trunk/; revision=1203

15 years agoAdd ability to gnome-keyring module to pass in the socket using the
Stefan Walter [Thu, 24 Jul 2008 17:30:50 +0000 (17:30 +0000)]
Add ability to gnome-keyring module to pass in the socket using the

* gp11/gp11.h:
* gp11/gp11-module.c:
* gp11/tests/unit-test-gp11-module.c:
* gp11/tests/unit-test-gp11-object.c:
* gp11/tests/unit-test-gp11-session.c:
* gp11/tests/unit-test-gp11-slot.c:
* pkcs11/gkr-pkcs11-module.c:
* pkcs11/Makefile.am:
* pkcs11/tests/Makefile.am:
* pkcs11/tests/unit-test-pkcs11-initialize.c:
* configure.in: Add ability to gnome-keyring module to pass in the
socket using the reserved argument. This is similar to how NSS
libsoftkn3 likes to be initialized.

svn path=/trunk/; revision=1200

16 years agoBuild fix
Stefan Walter [Thu, 24 Jul 2008 04:12:39 +0000 (04:12 +0000)]
Build fix

* gp11/gp11-attributes.c: Build fix

svn path=/trunk/; revision=1199

16 years agoRelease 2.23.5
Stefan Walter [Mon, 21 Jul 2008 22:24:57 +0000 (22:24 +0000)]
Release 2.23.5

* gp11/Makefile.am:
* configure.in:
* NEWS: Release 2.23.5

svn path=/trunk/; revision=1192

16 years agoAuto login of sessions when and where necessary.
Stefan Walter [Sun, 20 Jul 2008 02:56:06 +0000 (02:56 +0000)]
Auto login of sessions when and where necessary.

* gp11/gp11.h:
* gp11/gp11-call.c:
* gp11/gp11-marshal.list:
* gp11/gp11-private.h:
* gp11/gp11-session.c:
* gp11/gp11-slot.c:
* gp11/Makefile.am:
* gp11/tests/gp11-test-module.c:
* gp11/tests/unit-test-gp11-session.c: Auto login of sessions when
and where necessary.

svn path=/trunk/; revision=1185

16 years agoMissing file from last commit.
Stefan Walter [Sat, 19 Jul 2008 21:54:02 +0000 (21:54 +0000)]
Missing file from last commit.

svn path=/trunk/; revision=1184

16 years agogp11/gp11.h
Stefan Walter [Sat, 19 Jul 2008 21:53:39 +0000 (21:53 +0000)]
gp11/gp11.h

* gp11/gp11.h
* gp11/gp11.pc.in:
* gp11/gp11-call.c:
* gp11/gp11-private.h:
* gp11/gp11-session.c:
* gp11/gp11-slot.c:
* gp11/Makefile.am:
* gp11/tests/unit-test-gp11-session.c: Add ability to reuse sessions,
in a simple pool.

svn path=/trunk/; revision=1183

16 years agoMove to glib based testing for new stuff
Stefan Walter [Mon, 14 Jul 2008 23:32:02 +0000 (23:32 +0000)]
Move to glib based testing for new stuff

* gp11/tests/gp11-test.h:
* gp11/tests/gp11-test-module.c:
* gp11/tests/Makefile.am:
* gp11/tests/unit-test-gp11-attributes.c:
* gp11/tests/unit-test-gp11-module.c:
* gp11/tests/unit-test-gp11-object.c:
* gp11/tests/unit-test-gp11-session.c:
* gp11/tests/unit-test-gp11-slot.c:
* tests/gtest.make: (moved from check.make)
* tests/gtest-helpers.c: (moved from check-helpers.c)
* tests/gtest-helpers.h: (moved from check-helpers.h)
* tests/Makefile.am:
* tests/prep-gtest.sh: (moved from prep-check.sh)
* configure.in: Move to glib based testing for new stuff

svn path=/trunk/; revision=1178

16 years agoOnly use CKR_GENERAL_ERROR when it's really quite dire.
Stefan Walter [Mon, 14 Jul 2008 19:54:11 +0000 (19:54 +0000)]
Only use CKR_GENERAL_ERROR when it's really quite dire.

        * daemon/pk/gkr-pk-cert.c:
        * daemon/pk/gkr-pk-import.c:
        * daemon/pk/gkr-pk-object.c:
        * daemon/pk/gkr-pk-privkey.c:
        * daemon/pk/gkr-pk-pubkey.c:
        * daemon/pkcs11/gkr-pkcs11-daemon-session.c:
        * daemon/pkcs11/gkr-pkcs11-dsa.c:
        * daemon/pkcs11/gkr-pkcs11-rsa.c: Only use CKR_GENERAL_ERROR
        when it's really quite dire.

        * gp11/gp11.h: (added)
        * gp11/gp11.pc.in: (added)
        * gp11/gp11-attributes.c: (added)
        * gp11/gp11-call.c: (added)
        * gp11/gp11-misc.c: (added)
        * gp11/gp11-module.c: (added)
        * gp11/gp11-object.c: (added)
        * gp11/gp11-private.h: (added)
        * gp11/gp11-session.c: (added)
        * gp11/gp11-slot.c: (added)
        * gp11/Makefile.am: (added)
        * gp11/pkcs11.h: (added)
        * gp11/tests/gp11-test.h: (added)
        * gp11/tests/gp11-test-module.c: (added)
        * gp11/tests/Makefile.am: (added)
        * gp11/tests/unit-test-gp11-attributes.c: (added)
        * gp11/tests/unit-test-gp11-module.c: (added)
        * gp11/tests/unit-test-gp11-object.c: (added)
        * gp11/tests/unit-test-gp11-session.c: (added)
        * gp11/tests/unit-test-gp11-slot.c: (added)
        * tests/check.make: (added)
        * tests/check-helpers.c: (added)
        * tests/check-helpers.h: (added)
        * tests/prep-check.sh: (added)
        * configure.in:
        * Makefile.am: Added new GP11 library

svn path=/trunk/; revision=1175

20 years agoInitial revision
Alexander Larsson [Thu, 27 Nov 2003 15:45:10 +0000 (15:45 +0000)]
Initial revision