platform/upstream/gcr.git
14 years ago[gp11] CK_NOTIFY accepted when opening a session.
Stef Walter [Sat, 22 Aug 2009 20:07:39 +0000 (20:07 +0000)]
[gp11] CK_NOTIFY accepted when opening a session.

The gp11_slot_open_session_full() and gp11_slot_open_session_async()
functions now accept CK_NOTIFY and app data parameters.

14 years agoMerge branch 'master' into dbus-api
Stef Walter [Sat, 15 Aug 2009 00:06:25 +0000 (00:06 +0000)]
Merge branch 'master' into dbus-api

14 years ago[egg] Fix unit test.
Stef Walter [Fri, 14 Aug 2009 22:37:05 +0000 (22:37 +0000)]
[egg] Fix unit test.

14 years ago[egg] Add missing definition of egg_buffer_uninit_steal()
Stef Walter [Fri, 14 Aug 2009 22:32:07 +0000 (22:32 +0000)]
[egg] Add missing definition of egg_buffer_uninit_steal()

14 years ago[egg] Function for clearing secure memory.
Stefan Walter [Sat, 8 Aug 2009 02:06:17 +0000 (02:06 +0000)]
[egg] Function for clearing secure memory.

Added egg_secure_clear() and fine tuned egg_secure_strclear().

14 years ago[egg, gcr, pkcs11] Take length of ASN.1 into account, when parsing.
Stefan Walter [Sun, 2 Aug 2009 20:30:24 +0000 (20:30 +0000)]
[egg, gcr, pkcs11] Take length of ASN.1 into account, when parsing.

When parsing ASN.1, take length of elements into account, in order
to prevent null character related vulnerabilities.

14 years ago[secrets] Port over some parts of the keyring parsing.
Stef Walter [Sun, 26 Jul 2009 15:07:14 +0000 (15:07 +0000)]
[secrets] Port over some parts of the keyring parsing.

The code compiles, but does not run, and is not tested.

15 years agoMerge branch 'master' into dbus-api
Stef Walter [Thu, 23 Jul 2009 20:02:16 +0000 (20:02 +0000)]
Merge branch 'master' into dbus-api

Conflicts:
pkcs11/gck/gck-module.c
pkcs11/pkcs11g.h

15 years agoUse .ui files directly now that they're supported by glade.
Stef Walter [Sat, 18 Jul 2009 19:09:50 +0000 (19:09 +0000)]
Use .ui files directly now that they're supported by glade.

Remove old glade files, and the conversion rules from Makefile.am.

15 years agoFix tests so they work from 'make distwcheck'
Stef Walter [Mon, 13 Jul 2009 19:44:37 +0000 (19:44 +0000)]
Fix tests so they work from 'make distwcheck'

Fix path issues in the tests which need data from their
test-data directory, so that they work when running 'make distcheck'

15 years agoParse, but don't use non-utf8 secrets in keyrings.
Stef Walter [Mon, 13 Jul 2009 17:13:40 +0000 (17:13 +0000)]
Parse, but don't use non-utf8 secrets in keyrings.

This is a change for future backwards compatibility.

15 years agoUse .ui files directly now that they're supported by glade.
Stef Walter [Sat, 18 Jul 2009 19:09:50 +0000 (19:09 +0000)]
Use .ui files directly now that they're supported by glade.

Remove old glade files, and the conversion rules from Makefile.am.

15 years agoFix tests so they work from 'make distwcheck'
Stef Walter [Mon, 13 Jul 2009 19:44:37 +0000 (19:44 +0000)]
Fix tests so they work from 'make distwcheck'

Fix path issues in the tests which need data from their
test-data directory, so that they work when running 'make distcheck'

15 years agoMerge branch 'gnome-2-26'
Stef Walter [Mon, 13 Jul 2009 17:18:45 +0000 (17:18 +0000)]
Merge branch 'gnome-2-26'

15 years agoParse, but don't use non-utf8 secrets in keyrings.
Stef Walter [Mon, 13 Jul 2009 17:13:40 +0000 (17:13 +0000)]
Parse, but don't use non-utf8 secrets in keyrings.

This is a change for future backwards compatibility.

15 years agoMerge branch 'master' into dbus-api
Stef Walter [Sat, 27 Jun 2009 19:44:51 +0000 (19:44 +0000)]
Merge branch 'master' into dbus-api

15 years agoMerge branch 'gnome-2-26'
Stef Walter [Fri, 26 Jun 2009 17:33:03 +0000 (17:33 +0000)]
Merge branch 'gnome-2-26'

15 years agoBuild docs for the secrets API.
Stef Walter [Sat, 20 Jun 2009 01:04:12 +0000 (01:04 +0000)]
Build docs for the secrets API.

15 years agoMove gkr_cleanup code into egg component.
Stef Walter [Sun, 10 May 2009 14:56:19 +0000 (14:56 +0000)]
Move gkr_cleanup code into egg component.

Update tests to new style as well.

15 years agoCleanup gkr_unix_signal and move to egg component
Stef Walter [Sun, 10 May 2009 14:45:18 +0000 (14:45 +0000)]
Cleanup gkr_unix_signal and move to egg component

Also update tests to new style.

15 years agoMerge branch 'gnome-2-26'
Stefan Walter [Sun, 3 May 2009 19:51:23 +0000 (14:51 -0500)]
Merge branch 'gnome-2-26'

Conflicts:
ChangeLog
po/ca@valencia.po
po/uk.po

15 years agoRelease 2.26.1
stefw [Sun, 12 Apr 2009 14:23:22 +0000 (14:23 +0000)]
Release 2.26.1

svn path=/branches/gnome-2-26/; revision=1722

15 years agoFill in some API documentation.
stefw [Sun, 12 Apr 2009 14:03:20 +0000 (14:03 +0000)]
Fill in some API documentation.

svn path=/branches/gnome-2-26/; revision=1721

15 years agoFix problem with integer overflow in memory allocator.
stefw [Fri, 10 Apr 2009 21:33:45 +0000 (21:33 +0000)]
Fix problem with integer overflow in memory allocator.

svn path=/branches/gnome-2-26/; revision=1717

15 years agoDistribute test data.
stefw [Thu, 2 Apr 2009 04:18:57 +0000 (04:18 +0000)]
Distribute test data.

Fixes bug #577397

svn path=/trunk/; revision=1712

15 years agoMake function definitions match declarations for egg_asn1 time functions.
stefw [Thu, 2 Apr 2009 04:16:49 +0000 (04:16 +0000)]
Make function definitions match declarations for egg_asn1 time functions.

Fixes bug #576762

svn path=/trunk/; revision=1711

15 years agoPut in a semi-random test excercising 1000 iterations of allocation,
stefw [Thu, 2 Apr 2009 03:30:11 +0000 (03:30 +0000)]
Put in a semi-random test excercising 1000 iterations of allocation,
reallocation, freeing.

Validates between each step.

svn path=/trunk/; revision=1709

15 years agoFix problem where freed memory is not inserted into the unused ring properly.
stefw [Thu, 2 Apr 2009 03:30:07 +0000 (03:30 +0000)]
Fix problem where freed memory is not inserted into the unused ring properly.

This caused enless loops. Should fix bug #575247

svn path=/trunk/; revision=1708

15 years agoAdd validator which walks the secure memory heap and checks for inconsistencies.
stefw [Thu, 2 Apr 2009 03:29:59 +0000 (03:29 +0000)]
Add validator which walks the secure memory heap and checks for inconsistencies.

svn path=/trunk/; revision=1707

15 years agoFix assertion that occurs when shrinking block of secure memory and then expanding...
stefw [Thu, 2 Apr 2009 03:29:53 +0000 (03:29 +0000)]
Fix assertion that occurs when shrinking block of secure memory and then expanding again.

svn path=/trunk/; revision=1706

15 years agoMerge branch 'docs-reorganize'
Stefan Walter [Tue, 17 Mar 2009 02:53:59 +0000 (02:53 +0000)]
Merge branch 'docs-reorganize'

svn path=/trunk/; revision=1690

15 years agoRelease version 2.26.0
Stefan Walter [Sat, 14 Mar 2009 19:01:34 +0000 (19:01 +0000)]
Release version 2.26.0

svn path=/trunk/; revision=1673

15 years agoImplement valgrind support for our memory allocator, and support for
Stefan Walter [Wed, 11 Mar 2009 03:49:47 +0000 (03:49 +0000)]
Implement valgrind support for our memory allocator, and support for
running gnome-keyring-daemon under valgrind. Use --enable-valgrind=run

svn path=/trunk/; revision=1665

15 years agoCheck for asn1Parser tool in configure.
Stefan Walter [Thu, 5 Mar 2009 04:02:25 +0000 (04:02 +0000)]
Check for asn1Parser tool in configure.

Patch by Alberto Ruiz. Fixes bug #566731

svn path=/trunk/; revision=1660

15 years agoAllow specifying auto-authenticate property on a more fine grained level.
Stefan Walter [Tue, 3 Mar 2009 22:25:00 +0000 (22:25 +0000)]
Allow specifying auto-authenticate property on a more fine grained level.

svn path=/trunk/; revision=1657

15 years ago Fix "gnome-keyring-ask needs to disable
Stefan Walter [Tue, 3 Mar 2009 03:51:36 +0000 (03:51 +0000)]
 Fix "gnome-keyring-ask needs to disable
input method in password" bug #561331 Patch by Takao Fujiwara

svn path=/trunk/; revision=1654

15 years agoFix compiler warnings on 32-bit.
Stefan Walter [Sat, 28 Feb 2009 22:46:19 +0000 (22:46 +0000)]
Fix compiler warnings on 32-bit.

svn path=/trunk/; revision=1638

15 years agoSome changes to the import dialog.
Stefan Walter [Sat, 28 Feb 2009 03:20:13 +0000 (03:20 +0000)]
Some changes to the import dialog.

svn path=/trunk/; revision=1636

15 years agoFix problem with looking up pin initialized flag in the wrong
Stefan Walter [Sat, 28 Feb 2009 03:05:45 +0000 (03:05 +0000)]
Fix problem with looking up pin initialized flag in the wrong
structure.

svn path=/trunk/; revision=1632

15 years agoAdd quick hack to initialize tokens before importing into them.
Stefan Walter [Sat, 28 Feb 2009 01:24:13 +0000 (01:24 +0000)]
Add quick hack to initialize tokens before importing into them.

More functionality along this line will be needed in future versions.

svn path=/trunk/; revision=1627

15 years agoWhen enumerating objects in a module, skip tokens that fail from not being initialized.
Stefan Walter [Fri, 27 Feb 2009 01:00:07 +0000 (01:00 +0000)]
When enumerating objects in a module, skip tokens that fail from not being initialized.

svn path=/trunk/; revision=1623

15 years agoUse union instead of struct. Fixes bug #571951
Jeff Cai [Thu, 19 Feb 2009 03:41:47 +0000 (03:41 +0000)]
Use union instead of struct. Fixes bug #571951

2009-02-19  Jeff Cai <jeff.cai@sun.com>

    * egg/egg-secure-memory.c:
    Use union instead of struct.
    Fixes bug #571951

svn path=/trunk/; revision=1606

15 years agoRelease version 2.25.91
Stefan Walter [Sat, 14 Feb 2009 18:17:01 +0000 (18:17 +0000)]
Release version 2.25.91

svn path=/trunk/; revision=1589

15 years agoDon't show horizontal scrollbar.
Stefan Walter [Sat, 14 Feb 2009 03:45:34 +0000 (03:45 +0000)]
Don't show horizontal scrollbar.

svn path=/trunk/; revision=1578

15 years agoShow extensions as in hex form.
Stefan Walter [Sat, 14 Feb 2009 03:45:15 +0000 (03:45 +0000)]
Show extensions as in hex form.

No parsing of extensions yet.

svn path=/trunk/; revision=1577

15 years agoAllow loading any DER certificate file.
Stefan Walter [Sat, 14 Feb 2009 03:44:55 +0000 (03:44 +0000)]
Allow loading any DER certificate file.

svn path=/trunk/; revision=1576

15 years agoFill in the OID descriptions for RSA and DSA stuff.
Stefan Walter [Sat, 14 Feb 2009 00:31:17 +0000 (00:31 +0000)]
Fill in the OID descriptions for RSA and DSA stuff.

svn path=/trunk/; revision=1575

15 years agoFill in the key size field.
Stefan Walter [Sat, 14 Feb 2009 00:23:27 +0000 (00:23 +0000)]
Fill in the key size field.

svn path=/trunk/; revision=1574

15 years agoFill in key and signature algorithms and parameters.
Stefan Walter [Sat, 14 Feb 2009 00:23:22 +0000 (00:23 +0000)]
Fill in key and signature algorithms and parameters.

svn path=/trunk/; revision=1573

15 years agoChange to right directory so we can easily find test certificates.
Stefan Walter [Sat, 14 Feb 2009 00:23:14 +0000 (00:23 +0000)]
Change to right directory so we can easily find test certificates.

svn path=/trunk/; revision=1572

15 years agoPull out OID information functionality into it's own file.
Stefan Walter [Sat, 14 Feb 2009 00:23:07 +0000 (00:23 +0000)]
Pull out OID information functionality into it's own file.

svn path=/trunk/; revision=1571

15 years agoUse more readable upper case space delemited hex encoding for the fingerprint.
Stefan Walter [Fri, 13 Feb 2009 21:31:01 +0000 (21:31 +0000)]
Use more readable upper case space delemited hex encoding for the fingerprint.

svn path=/trunk/; revision=1569

15 years agoAllow specifying the delemiter and case of hex encodings.
Stefan Walter [Fri, 13 Feb 2009 21:30:57 +0000 (21:30 +0000)]
Allow specifying the delemiter and case of hex encodings.

svn path=/trunk/; revision=1568

15 years agoShow the correct MD5 hash in certificate basics dialog.
Stefan Walter [Fri, 13 Feb 2009 21:30:50 +0000 (21:30 +0000)]
Show the correct MD5 hash in certificate basics dialog.

Fixes bug #567769

svn path=/trunk/; revision=1567

15 years agoDon't try and allocate 0 bytes when changing allocator on an empty buffer.
Stefan Walter [Fri, 13 Feb 2009 18:32:47 +0000 (18:32 +0000)]
Don't try and allocate 0 bytes when changing  allocator on an empty buffer.

svn path=/trunk/; revision=1565

15 years agoDon't allow allocating zero bytes.
Stefan Walter [Fri, 13 Feb 2009 18:32:41 +0000 (18:32 +0000)]
Don't allow allocating zero bytes.

svn path=/trunk/; revision=1564

15 years agoUse size_t and gsize for memory sizes rather than unsigned long.
Stefan Walter [Fri, 13 Feb 2009 18:05:26 +0000 (18:05 +0000)]
Use size_t and gsize for memory sizes rather than unsigned long.

Fixes bug #571615

svn path=/trunk/; revision=1563

15 years agoCompletely overhaul the secure memory allocator.
Stefan Walter [Fri, 13 Feb 2009 04:21:00 +0000 (04:21 +0000)]
Completely overhaul the secure memory allocator.

Don't store metadata inside the secure memory area. Add memory guards, so that we can see if/when memory is incorrectly overflown.

svn path=/trunk/; revision=1562

15 years agoBe much stricter about checking pointers and sizes being passed around.
Stefan Walter [Fri, 13 Feb 2009 04:20:51 +0000 (04:20 +0000)]
Be much stricter about checking pointers and sizes being passed around.

svn path=/trunk/; revision=1561

15 years agoRemove unused field.
Stefan Walter [Fri, 13 Feb 2009 04:20:44 +0000 (04:20 +0000)]
Remove unused field.

svn path=/trunk/; revision=1560

15 years agoCalculate memory header size at compile time.
Stefan Walter [Fri, 13 Feb 2009 04:20:37 +0000 (04:20 +0000)]
Calculate memory header size at compile time.

svn path=/trunk/; revision=1559

15 years agoRemove FORCE_MALLOC_MEMORY define.
Stefan Walter [Fri, 13 Feb 2009 04:20:28 +0000 (04:20 +0000)]
Remove FORCE_MALLOC_MEMORY define.

It seems we can accomplish the identical goal with FORCE_FALLBACK_MEMORY.

svn path=/trunk/; revision=1558

15 years agoRemove non-useful mincell structure element from sub allocator.
Stefan Walter [Fri, 13 Feb 2009 04:20:17 +0000 (04:20 +0000)]
Remove non-useful mincell structure element from sub allocator.

svn path=/trunk/; revision=1557

15 years agoAdd G_BEGIN_DECLS/G_END_DECLS to gcr headers.
Stefan Walter [Wed, 11 Feb 2009 15:00:43 +0000 (15:00 +0000)]
Add G_BEGIN_DECLS/G_END_DECLS to gcr headers.

svn path=/trunk/; revision=1555

15 years agoCorrect pkg-config for the gp11 dependency.
Stefan Walter [Wed, 11 Feb 2009 01:08:25 +0000 (01:08 +0000)]
Correct pkg-config for the gp11 dependency.

svn path=/trunk/; revision=1552

15 years agoAdd translator comments.
Stefan Walter [Sun, 8 Feb 2009 14:38:13 +0000 (14:38 +0000)]
Add translator comments.

Fixes bug #570529

svn path=/trunk/; revision=1538

15 years agoSetup automatically log into token, and pool sessions.
Stefan Walter [Sun, 8 Feb 2009 04:56:48 +0000 (04:56 +0000)]
Setup automatically log into token, and pool sessions.

svn path=/trunk/; revision=1530

15 years agoCKA_TOKEN is a CK_BBOOL not a CK_ULONG
Stefan Walter [Sun, 8 Feb 2009 04:56:42 +0000 (04:56 +0000)]
CKA_TOKEN is a CK_BBOOL not a CK_ULONG

svn path=/trunk/; revision=1529

15 years agoFix problem with not distributing pkcs11.h
Stefan Walter [Sun, 8 Feb 2009 04:11:22 +0000 (04:11 +0000)]
Fix problem with not distributing pkcs11.h

svn path=/trunk/; revision=1527

15 years agoMove the general dbus code into our egg folder.
Stefan Walter [Sun, 8 Feb 2009 00:21:25 +0000 (00:21 +0000)]
Move the general dbus code into our egg folder.

svn path=/trunk/; revision=1524

15 years agoCentralize the way that libgcrypt is initialized from our code.
Stefan Walter [Sat, 7 Feb 2009 23:54:04 +0000 (23:54 +0000)]
Centralize the way that libgcrypt is initialized from our code.

So the different components don't step on each other's toes.

svn path=/trunk/; revision=1522

15 years agoWe should only have one pkcs11.h header.
Stefan Walter [Sat, 7 Feb 2009 23:23:41 +0000 (23:23 +0000)]
We should only have one pkcs11.h header.

svn path=/trunk/; revision=1517

15 years agoAdd GTK library dependency in libgcr.
Stefan Walter [Sat, 7 Feb 2009 18:29:30 +0000 (18:29 +0000)]
Add GTK library dependency in libgcr.

See bug #570393

svn path=/trunk/; revision=1509

15 years agoUse varargs properly.
Stefan Walter [Sat, 7 Feb 2009 18:04:14 +0000 (18:04 +0000)]
Use varargs properly.

svn path=/trunk/; revision=1508

15 years agoUse properly sized variable to store handle in the test.
Stefan Walter [Sat, 7 Feb 2009 18:04:09 +0000 (18:04 +0000)]
Use properly sized variable to store handle in the test.

svn path=/trunk/; revision=1507

15 years agoDon't use freed memory in test.
Stefan Walter [Sat, 7 Feb 2009 18:04:05 +0000 (18:04 +0000)]
Don't use freed memory in test.

svn path=/trunk/; revision=1506

15 years agoFix problem not specifying size correctly when using varargs in tests.
Stefan Walter [Sat, 7 Feb 2009 18:03:59 +0000 (18:03 +0000)]
Fix problem not specifying size correctly when using varargs in tests.

svn path=/trunk/; revision=1505

15 years agoUse more portable construct for signifying invalid memory in a test.
Stefan Walter [Sat, 7 Feb 2009 17:30:00 +0000 (17:30 +0000)]
Use more portable construct for signifying invalid memory in a test.

svn path=/trunk/; revision=1502

15 years agoFix problems with clearing out entire memory block when allocating
Stefan Walter [Sat, 7 Feb 2009 17:29:55 +0000 (17:29 +0000)]
Fix problems with clearing out entire memory block when allocating
memory, and then reallocating it.

svn path=/trunk/; revision=1501

15 years agoFix compiler warnings from -Wold-style-declaration. Fixes bug #5706
Thomas Hindoe Paaboel Andersen [Thu, 5 Feb 2009 20:57:49 +0000 (20:57 +0000)]
Fix compiler warnings from -Wold-style-declaration. Fixes bug #5706

svn path=/trunk/; revision=1498

15 years agoFix more size problems when using constants with varargs. Fixes bug
Stefan Walter [Mon, 2 Feb 2009 12:58:29 +0000 (12:58 +0000)]
Fix more size problems when using constants with varargs. Fixes bug

* 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/pk/gkr-pk-util.c:
* gp11/gp11-attributes.c:
* gp11/gp11-object.c:
* gp11/tests/unit-test-gp11-attributes.c:
* gp11/tests/unit-test-gp11-object.c:
* gp11/tests/unit-test-gp11-session.c:
* pkcs11/gck/gck-attributes.c:
* pkcs11/gck/gck-private-key.c:
* pkcs11/gck/gck-public-key.c:
* pkcs11/gck/gck-session.c:
* pkcs11/ssh-agent/gck-ssh-agent-ops.c:
* pkcs11/ssh-agent/gck-ssh-agent-proto.c:
* tools/gkr-tool-import.c: Fix more size problems when using constants
with varargs. Fixes bug #569736. Research by Christophe Fergeau

svn path=/trunk/; revision=1492

15 years agoFix size problems when using constants with varargs. Fixes bug #569736.
Stefan Walter [Fri, 30 Jan 2009 21:06:57 +0000 (21:06 +0000)]
Fix size problems when using constants with varargs. Fixes bug #569736.

* gp11/gp11.h:
* gp11/pkcs11.h: Fix size problems when using constants
with varargs. Fixes bug #569736. Research by Christophe Fergeau

svn path=/trunk/; revision=1485

15 years agoUse a more definite value for our varargs termination. Fixes bug #569769
Stefan Walter [Fri, 30 Jan 2009 20:42:22 +0000 (20:42 +0000)]
Use a more definite value for our varargs termination. Fixes bug #569769

* gp11/gp11.h:
* gp11/gp11-attributes.c: Use a more definite value for
our varargs termination. Fixes bug #569769

svn path=/trunk/; revision=1484

15 years agoBuild fixes.
Stefan Walter [Thu, 29 Jan 2009 01:34:45 +0000 (01:34 +0000)]
Build fixes.

* gcr/gcr-simple-certificate.c:
* pkcs11/gck/gck-data-der.c: Build fixes.

svn path=/trunk/; revision=1482

15 years agoInstall appropriate header files and fix the pkg-config file for the gcr
Stefan Walter [Thu, 29 Jan 2009 01:12:43 +0000 (01:12 +0000)]
Install appropriate header files and fix the pkg-config file for the gcr

* gcr/gcr.h:
* gcr/gcr.pc.in:
* gcr/gcr-certificate-basics-widget.h:
* gcr/gcr-certificate-details-widget.h:
* gcr/gcr-importer.h:
* gcr/gcr-parser.h:
* gcr/gcr-types.h:
* gcr/Makefile.am: Install appropriate header files
and fix the pkg-config file for the gcr library.

* gcr/gcr-certificate.c:
* gcr/gcr-certificate.h:
* gcr/gcr-simple-certificate.c: (added)
* gcr/gcr-simple-certificate.h: (added)
* gcr/tests/ui-test-details.c:
* gcr/tests/unit-test-certificate.c: Make GcrCertificate
an interface so that it can more easily plug into
various libraries.

svn path=/trunk/; revision=1481

15 years agoAdd basic UI widgets for displaying a certificate.
Stefan Walter [Wed, 28 Jan 2009 01:38:38 +0000 (01:38 +0000)]
Add basic UI widgets for displaying a certificate.

* egg/egg-asn1.c:
* egg/egg-asn1.h:
* egg/egg-hex.c:
* egg/egg-hex.h:
* egg/pkix.asn:
* egg/tests/unit-test-asn1.c:
* egg/tests/unit-test-hex.c:
* gcr/gcr-certificate.c: (added)
* gcr/gcr-certificate.h: (added)
* gcr/gcr-certificate-basics-widget.c: (added)
* gcr/gcr-certificate-basics-widget.glade: (added)
* gcr/gcr-certificate-basics-widget.h: (added)
* gcr/gcr-certificate-details-widget.c: (added)
* gcr/gcr-certificate-details-widget.h: (added)
* gcr/gcr-library.c:
* gcr/gcr-parser.c:
* gcr/Makefile.am:
* gcr/tests/Makefile.am:
* gcr/tests/ui-test-details.c: (added)
* gcr/tests/unit-test-certificate.c: (added) Add basic UI widgets for
displaying a certificate.

svn path=/trunk/; revision=1480

15 years agoComplete importer in gcr library. Make 'gnome-keyring import' use the new
Stefan Walter [Wed, 21 Jan 2009 22:08:17 +0000 (22:08 +0000)]
Complete importer in gcr library. Make 'gnome-keyring import' use the new

* daemon/ui/gkr-ask-entry.c: (moved)
* daemon/ui/gkr-ask-entry.h: (moved)
* daemon/ui/gkr-ask-tool.c:
* daemon/ui/Makefile.am:
* egg/egg-secure-entry.c: (moved from daemon/ui/gkr-ask-entry.c)
* egg/egg-secure-entry.h: (moved from daemon/ui/gkr-ask-entry.h)
* egg/Makefile.am:
* gcr/gcr.h: (added)
* gcr/gcr-import-dialog.c: (added)
* gcr/gcr-import-dialog.glade:
* gcr/gcr-import-dialog.h: (added)
* gcr/gcr-importer.c:
* gcr/gcr-importer.h:
* gcr/gcr-internal.c: (removed)
* gcr/gcr-internal.h:
* gcr/gcr-library.c: (added)
* gcr/gcr-parser.c:
* gcr/gcr-parser.h:
* gcr/gcr-types.h:
* gcr/Makefile.am:
* gcr/tests/Makefile.am:
* gcr/tests/unit-test-parser.c:
* tool/gkr-tool.c:
* tool/gkr-tool-import.c:
* tool/Makefile.am: Complete importer in gcr library. Make 'gnome-keyring import'
use the new importer.

svn path=/trunk/; revision=1472

15 years agoAdd hash and equals functions for PKCS#11 modules, slots, and objects.
Stefan Walter [Tue, 20 Jan 2009 20:38:29 +0000 (20:38 +0000)]
Add hash and equals functions for PKCS#11 modules, slots, and objects.

* gp11/gp11.h:
* gp11/gp11-module.c:
* gp11/gp11-object.c:
* gp11/gp11-slot.c:
* gp11/tests/unit-test-gp11-module.c:
* gp11/tests/unit-test-gp11-object.c:
* gp11/tests/unit-test-gp11-slot.c: Add hash and equals functions for
PKCS#11 modules, slots, and objects. Allows them to be used in hash tables
and searches.

svn path=/trunk/; revision=1471

15 years agoExpose looking up slot flags, and a few other helpful functions.
Stefan Walter [Tue, 20 Jan 2009 16:41:14 +0000 (16:41 +0000)]
Expose looking up slot flags, and a few other helpful functions.

* gp11/gp11.h:
* gp11/gp11-misc.c:
* gp11/gp11-module.c:
* gp11/gp11-private.h:
* gp11/gp11-session.c:
* gp11/gp11-slot.c: Expose looking up slot flags,
and a few other helpful functions.

svn path=/trunk/; revision=1469

15 years agoRelease version 2.25.5
Stefan Walter [Tue, 20 Jan 2009 00:37:59 +0000 (00:37 +0000)]
Release version 2.25.5

* egg/Makefile.am:
* egg/tests/test.asn:
* egg/tests/unit-test-secmem.c:
* egg/tests/unit-test-symkey.c:
* egg/tests/test-data/test-certificate-1.der: (added)
* egg/tests/test-data/pem-rsa-enc.key: (added)
* gcr/Makefile.am:
* pkcs11/roots-sotre/gck-roots-module.c:
* configure.in:
* NEWS: Release version 2.25.5

svn path=/trunk/; revision=1467

15 years agoFix build warning
Stefan Walter [Sun, 18 Jan 2009 22:30:37 +0000 (22:30 +0000)]
Fix build warning

* gcr/tests/unit-test-parser.c: Fix build warning

svn path=/trunk/; revision=1464

15 years agoAdd new gcr library for crypto UI and related tasks. Implement GckParser
Stefan Walter [Sun, 18 Jan 2009 22:24:09 +0000 (22:24 +0000)]
Add new gcr library for crypto UI and related tasks. Implement GckParser

* egg/egg-asn1.c:
* egg/egg-hex.c: (split from pkcs11/gck/gck-util.c)
* egg/egg-hex.h: (split from pkcs11/gck/gck-util.h)
* egg/egg-openssl.c: (moved from pkcs11/gck/gck-data-openssl.c)
* egg/egg-openssl.h: (moved from pkcs11/gck/gck-data-openssl.h)
* egg/egg-symkey.c: (split from pkcs11/gck/gck-crypto.c)
* egg/egg-symkey.h: (split from pkcs11/gck/gck-crypto.h)
* egg/Makefile.am:
* egg/tests/Makefile.am:
* egg/tests/unit-test-asn1.c:
* egg/tests/unit-test-hex.c: (moved from pkcs11/gck/tests/unit-test-util.c)
* egg/tests/unit-test-openssl.c: (moved from pkcs11/gck/tests/unit-test-data-openssl.c)
* egg/tests/unit-test-symkey.c: (split from pkcs11/gck/tests/unit-test-crypto.c)
* gcr/gcr.pc.in: (added)
* gcr/gcr-internal.c: (added)
* gcr/gcr-internal.h: (added)
* gcr/gcr-marshal.list: (added)
* gcr/gcr-parser.c: (added)
* gcr/gcr-parser.h: (added)
* gcr/gcr-types.h: (added)
* gcr/Makefile.am: (added)
* gcr/template/*: (added)
* gcr/tests/Makefile.am: (added)
* gcr/tests/unit-test-parser.c: (added)
* gcr/tests/test-data: (copied from daemon/pkix/test/test-data)
* gp11/gp11.h:
* pkcs11/gck/gck-crypto.c:
* pkcs11/gck/gck-crypto.h:
* pkcs11/gck/gck-data-der.c:
* pkcs11/gck/gck-data-der.h:
* pkcs11/gck/gck-data-file.c:
* pkcs11/gck/gck-data-openssl.c: (moved)
* pkcs11/gck/gck-data-openssl.h: (moved)
* pkcs11/gck/gck-data-pem.c: (combined into egg/egg-openssl.c)
* pkcs11/gck/gck-data-pem.c: (combined into egg/egg-openssl.h)
* pkcs11/gck/gck-util.c:
* pkcs11/gck/gck-util.h:
* pkcs11/gck/Makefile.am:
* pkcs11/gck/tests/unit-test-crypto.c:
* pkcs11/gck/tests/unit-test-data-openssl.c: (moved)
* pkcs11/gck/tests/unit-test-util.c: (moved)
* pkcs11/roots-store/gck-roots-module.c:
* pkcs11/ssh-store/gck-ssh-openssh.c:
* pkcs11/user-store/gck-user-storage.c:
* configure.in:
* Makefile.am: Add new gcr library for crypto UI and related tasks. Implement
GckParser class.

svn path=/trunk/; revision=1463

15 years agoConsolidate truly common functionality into 'egg' library. Many more files
Stefan Walter [Sat, 17 Jan 2009 23:27:10 +0000 (23:27 +0000)]
Consolidate truly common functionality into 'egg' library. Many more files

* egg/egg-asn1.c: (moved from pkcs11/gck/gck-data-asn1.c)
* egg/egg-asn1.h: (moved from pkcs11/gck/gck-data-asn1.h)
* egg/egg-buffer.c: (moved from common/gkr-buffer.c)
* egg/egg-buffer.h: (moved from common/gkr-buffer.h)
* egg/egg-secure-memory.c: (moved from common/gkr-secure-memory.c)
* egg/egg-secure-memory.h: (moved from common/gkr-secure-memory.h)
* egg/egg-unix-credentials.c: (moved from common/gkr-unix-credentials.c)
* egg/egg-unix-credentials.h: (moved from common/gkr-unix-credentials.h)
* egg/Makefile.am: (added)
* egg/pk.asn: (moved from pkcs11/gck/pk.asn)
* egg/pkix.asn: (moved from pkcs11/gck/pkix.asn)
* egg/tests/Makefile.am: (added)
* egg/tests/test.asn: (moved from pkcs11/gck/tests/test.asn)
* egg/tests/unit-test-asn1.c: (moved from pkcs11/gck/tests/unit-test-data-asn1.c)
* egg/tests/unit-test-secmem.c: (moved from common/tests/unit-test-secmem.c)
* egg/tests/test-data: (added) Consolidate truly common functionality into 'egg'
library. Many more files touched due to above changes.

svn path=/trunk/; revision=1461

15 years agoDon't try to keep authenticating when bad password on protected auth path
Stefan Walter [Thu, 8 Jan 2009 18:41:26 +0000 (18:41 +0000)]
Don't try to keep authenticating when bad password on protected auth path

* gp11/gp11-module.c:
* gp11/gp11-session.c:
* gp11/gp11-slot.c: Don't try to keep authenticating when
bad password on protected auth path authentication. Protected
auth path repeats internally as necessary.

* pkcs11/pkcs11g.h:
* pkcs11/gck/gck-attributes.c:
* pkcs11/gck/gck-object.c:
* pkcs11/gck/gck-object.h:
* pkcs11/ssh-store/gck-ssh-module.c:
* pkcs11/ssh-store/gck-ssh-private-key.c:
* pkcs11/ssh-store/gck-ssh-private-key.h:
* pkcs11/ssh-store/gck-ssh-public-key.c:
* pkcs11/ssh-store/gck-ssh-public-key.h: Added CKA_GNOME_UNIQUE
attribute.

* daemon/gkr-daemon.c:
* daemon/Makefile.am:
* daemon/pkcs11/gkr-pkcs11-auth.c: (added)
* daemon/pkcs11/gkr-pkcs11-auth.h: (added)
* daemon/pkcs11/gkr-pkcs11-auth-ep.c: (added)
* daemon/pkcs11/gkr-pkcs11-daemon.c: (added)
* daemon/pkcs11/gkr-pkcs11-daemon.h: (added)
* daemon/pkcs11/Makefile.am:
* daemon/pkix/gkr-pkix-asn1.c:
* daemon/ssh/gkr-ssh-daemon.h: (removed)
* daemon/ssh/gkr-ssh-daemon-io.c: (removed)
* daemon/ssh/gkr-ssh-daemon-ops.c: (removed)
* daemon/ssh/Makefile.am: (removed)
* daemon/ui/gkr-ask-daemon.c:
* pkcs11/ssh-agent/gck-ssh-agent.c:
* pkcs11/ssh-agent/gck-ssh-agent-ops.c: Integrate new modular SSH agent
as the main gnome-keyring-daemon SSH agent.

svn path=/trunk/; revision=1447

15 years agoFix compiler warnings and add -Werror back in when --enable-tests is
Stefan Walter [Tue, 6 Jan 2009 06:26:42 +0000 (06:26 +0000)]
Fix compiler warnings and add -Werror back in when --enable-tests is

* configure.in:
* gp11/gp11.h:
* gp11/reference/Makefile.am:
* gp11/tests/gp11-test-module.c:
* gp11/tests/unit-test-gp11-attributes.c:
* pam/tests/unit-test-pam-setup.c:
* pkcs11/gck/gck-file-store.c:
* pkcs11/gck/gck-file-tracker.c:
* pkcs11/gck/gck-manager.c:
* pkcs11/gck/gck-session.c:
* pkcs11/roots/gck-roots-certificate.c:
* pkcs11/rpc-layer/gck-rpc-module.c:
* pkcs11/ssh-agent/gck-ssh-agent-ops.c:
* pkcs11/ssh-store/gck-ssh-public-key.c: Fix compiler warnings
and add -Werror back in when --enable-tests is configured.

svn path=/trunk/; revision=1442

15 years agoHelper function for matching mechanism types.
Stefan Walter [Tue, 6 Jan 2009 03:13:26 +0000 (03:13 +0000)]
Helper function for matching mechanism types.

* gp11/gp11.h:
* gp11/gp11-slot.c: Helper function for matching mechanism types.

* pkcs11/ssh-agent/gck-ssh-agent.c:
* pkcs11/ssh-agent/gck-ssh-agent.h:
* pkcs11/ssh-agent/gck-ssh-agent-ops.c:
* pkcs11/ssh-agent/gck-ssh-agent-private.h:
* pkcs11/ssh-agent/gck-ssh-agent-standalone.c: The modular ssh agent now
uses keys from any available PKCS#11 slots, and automatically selects a decent
slot for it's session keys.

svn path=/trunk/; revision=1441

15 years agoFix broken release, I have no idea why it distchecked.
Stefan Walter [Mon, 5 Jan 2009 22:51:13 +0000 (22:51 +0000)]
Fix broken release, I have no idea why it distchecked.

* pkcs11/gck/gck-module.c: Fix broken release, I have no idea
why it distchecked.

* gp11/gp11-slot.c:
* pkcs11/gck/gck-data-asn1.c:
* pkcs11/gck/gck-data-pem.c: Fix compiler warnings.

svn path=/trunk/; revision=1438

15 years agoRelease 2.25.4
Stefan Walter [Mon, 5 Jan 2009 05:05:44 +0000 (05:05 +0000)]
Release 2.25.4

* configure.in:
* NEWS:
* daemon/Makefile.am:
* pkcs11/gck/tests/Makefile.am:
* pkcs11/rpc-layer/Makefile.am:
* pkcs11/ssh-agent/gck-ssh-agent-standalone.c: Release 2.25.4

svn path=/trunk/; revision=1433

15 years agoFine tune function signatures.
Stefan Walter [Mon, 5 Jan 2009 04:29:23 +0000 (04:29 +0000)]
Fine tune function signatures.

* gp11/gp11.h:
* gp11/gp11-module.c:
* gp11/tests/unit-test-gp11-module.c: Fine tune function signatures.

svn path=/trunk/; revision=1432

15 years agoAdd gp11_module_enumerate_objects set of functions which enumerates all
Stefan Walter [Mon, 5 Jan 2009 03:59:24 +0000 (03:59 +0000)]
Add gp11_module_enumerate_objects set of functions which enumerates all

* gp11/gp11.h:
* gp11/gp11-call.c:
* gp11/gp11-module.c:
* gp11/gp11-private.h:
* gp11/gp11-session.c:
* gp11/gp11-slot.c:
* gp11/tests/unit-test-gp11-crypto.c:
* gp11/tests/unit-test-gp11-module.c:
* gp11/tests/unit-test-gp11-session.c: Add gp11_module_enumerate_objects
set of functions which enumerates all objects of a given type on a token.
Move 'auto-authenticate' and session pool to the module level.

svn path=/trunk/; revision=1431