platform/upstream/gcr.git
16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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