Stef Walter [Thu, 12 Nov 2009 06:36:55 +0000 (06:36 +0000)]
[egg] Add IETF DH groups.
These are the standard DH groups specified in RFC2409
and RFC3526
Stef Walter [Mon, 9 Nov 2009 22:26:04 +0000 (22:26 +0000)]
Merge branch 'master' into dbus-api
Stef Walter [Mon, 9 Nov 2009 17:08:08 +0000 (17:08 +0000)]
Merge branch 'master' into dbus-api
Stef Walter [Sun, 8 Nov 2009 00:17:50 +0000 (00:17 +0000)]
Refactor test directory function calls.
Make test_data_*() and test_scratch_*() function calls.
Stef Walter [Sun, 8 Nov 2009 00:10:07 +0000 (00:10 +0000)]
[egg] Move mkdtemp() code into its own file.
Move mkdtemp code into egg-mkdtemp.c so it can be used from
other places.
Stef Walter [Tue, 3 Nov 2009 03:06:44 +0000 (03:06 +0000)]
Implement prompt password return via encryption.
* Prompt password encrypted return via DH key negotiation.
* Factor out some common code between prompt-tool and daemon.
* Add tests for common code.
Stef Walter [Sat, 24 Oct 2009 01:45:31 +0000 (01:45 +0000)]
Merge branch 'master' into dbus-api
Eric Sesterhenn [Wed, 21 Oct 2009 01:54:00 +0000 (01:54 +0000)]
[gp11] Fix memory leak in gp11_slot_get_token_info()
Signed-off-by: Stef Walter <stef@memberwebs.com>
Stef Walter [Sun, 11 Oct 2009 21:38:15 +0000 (21:38 +0000)]
[egg] Build in default DH parameters.
Since generating DH parameters is costly, we build in default
parameters which can be loaded quickly.
Stef Walter [Sun, 11 Oct 2009 17:52:54 +0000 (17:52 +0000)]
[egg] Add spawn with callback functionality.
Allows executing an application and getting callbacks when
stdin, stdout, or stderr need servicing.
Stef Walter [Sat, 10 Oct 2009 15:06:42 +0000 (15:06 +0000)]
Merge branch 'master' into dbus-api
Stef Walter [Sun, 4 Oct 2009 18:18:31 +0000 (18:18 +0000)]
[egg] Add DH functions for use by IPC.
Stef Walter [Sun, 4 Oct 2009 16:18:23 +0000 (16:18 +0000)]
Merge branch 'master' into dbus-api
Stef Walter [Wed, 30 Sep 2009 01:51:40 +0000 (01:51 +0000)]
Merge branch 'master' into dbus-api
Stef Walter [Wed, 30 Sep 2009 01:48:10 +0000 (01:48 +0000)]
[egg] Fix assertion when releasing secure memory block.
If a secure memory block was allocated that was not multiple of
page size, then on releasing that block, an assertion was
raised. The source of the problem was a lack of tracking the
actually allocated block size.
Stef Walter [Sat, 26 Sep 2009 01:55:50 +0000 (01:55 +0000)]
Merge branch 'master' into dbus-api
Stef Walter [Sat, 26 Sep 2009 01:54:08 +0000 (01:54 +0000)]
[gp11] Return added attr from gp11_attributes_add_*
Return the added GP11Attribute struct from the
gp11_attributes_add_xxx() set of functions.
Diego Elio 'Flameeyes' Pettenò [Sun, 13 Sep 2009 21:26:11 +0000 (23:26 +0200)]
Fix parallel build of test sources.
When building with make -jX with X greater than 1 (parallel make), if the
dependency tree given in the Makefile is not perfect, the build will fail.
Since the prep-gtest.sh generates two files, both should be listed in the
Makefile, with the latter depending on the former (in order of creation);
since the header file is generated slightly earlier than the source file,
this is the correct order (wrong order would work on most filesystems but
will fail on tmpfs, xfs and ext4).
Additionally, make sure to tell automake about the generated sources, the
BUILT_SOURCES variable will ensure that the dependencies inside the
generated source files will be taken properly care of.
Symptoms of the previous brokenness would look like missing includes,
because the run-(auto|prompt)-test.h header would be used _after_ the file
started being written but _before_ it was completely written (race
condition).
Additionally, in egg tests, avoid using BUILT_SOURCES to set up UNIT_AUTO,
and also append to it after test.make has been included, so that they won't
overwrite one the other.
Signed-off-by: Stef Walter <stef@memberwebs.com>
Stef Walter [Sun, 30 Aug 2009 14:13:45 +0000 (14:13 +0000)]
Merge branch 'master' into dbus-api
Stef Walter [Sun, 30 Aug 2009 02:02:38 +0000 (02:02 +0000)]
[egg] Remove unneeded signal handling code.
Stef Walter [Sun, 23 Aug 2009 01:55:27 +0000 (01:55 +0000)]
[gp11] Don't fail when allocating zero length value.
When copying a zero length value, don't fail.
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.
Stef Walter [Sat, 15 Aug 2009 00:06:25 +0000 (00:06 +0000)]
Merge branch 'master' into dbus-api
Stef Walter [Fri, 14 Aug 2009 22:37:05 +0000 (22:37 +0000)]
[egg] Fix unit test.
Stef Walter [Fri, 14 Aug 2009 22:32:07 +0000 (22:32 +0000)]
[egg] Add missing definition of egg_buffer_uninit_steal()
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().
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.
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.
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
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.
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'
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.
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.
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'
Stef Walter [Mon, 13 Jul 2009 17:18:45 +0000 (17:18 +0000)]
Merge branch 'gnome-2-26'
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.
Stef Walter [Sat, 27 Jun 2009 19:44:51 +0000 (19:44 +0000)]
Merge branch 'master' into dbus-api
Stef Walter [Fri, 26 Jun 2009 17:33:03 +0000 (17:33 +0000)]
Merge branch 'gnome-2-26'
Stef Walter [Sat, 20 Jun 2009 01:04:12 +0000 (01:04 +0000)]
Build docs for the secrets API.
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.
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.
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
stefw [Sun, 12 Apr 2009 14:23:22 +0000 (14:23 +0000)]
Release 2.26.1
svn path=/branches/gnome-2-26/; revision=1722
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
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
stefw [Thu, 2 Apr 2009 04:18:57 +0000 (04:18 +0000)]
Distribute test data.
Fixes bug #577397
svn path=/trunk/; revision=1712
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
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
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
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
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
Stefan Walter [Tue, 17 Mar 2009 02:53:59 +0000 (02:53 +0000)]
Merge branch 'docs-reorganize'
svn path=/trunk/; revision=1690
Stefan Walter [Sat, 14 Mar 2009 19:01:34 +0000 (19:01 +0000)]
Release version 2.26.0
svn path=/trunk/; revision=1673
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
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
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
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
Stefan Walter [Sat, 28 Feb 2009 22:46:19 +0000 (22:46 +0000)]
Fix compiler warnings on 32-bit.
svn path=/trunk/; revision=1638
Stefan Walter [Sat, 28 Feb 2009 03:20:13 +0000 (03:20 +0000)]
Some changes to the import dialog.
svn path=/trunk/; revision=1636
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
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
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
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
Stefan Walter [Sat, 14 Feb 2009 18:17:01 +0000 (18:17 +0000)]
Release version 2.25.91
svn path=/trunk/; revision=1589
Stefan Walter [Sat, 14 Feb 2009 03:45:34 +0000 (03:45 +0000)]
Don't show horizontal scrollbar.
svn path=/trunk/; revision=1578
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
Stefan Walter [Sat, 14 Feb 2009 03:44:55 +0000 (03:44 +0000)]
Allow loading any DER certificate file.
svn path=/trunk/; revision=1576
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
Stefan Walter [Sat, 14 Feb 2009 00:23:27 +0000 (00:23 +0000)]
Fill in the key size field.
svn path=/trunk/; revision=1574
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
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
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
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
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
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
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
Stefan Walter [Fri, 13 Feb 2009 18:32:41 +0000 (18:32 +0000)]
Don't allow allocating zero bytes.
svn path=/trunk/; revision=1564
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
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
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
Stefan Walter [Fri, 13 Feb 2009 04:20:44 +0000 (04:20 +0000)]
Remove unused field.
svn path=/trunk/; revision=1560
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
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
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
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
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
Stefan Walter [Sun, 8 Feb 2009 14:38:13 +0000 (14:38 +0000)]
Add translator comments.
Fixes bug #570529
svn path=/trunk/; revision=1538
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
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
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
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
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
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
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
Stefan Walter [Sat, 7 Feb 2009 18:04:14 +0000 (18:04 +0000)]
Use varargs properly.
svn path=/trunk/; revision=1508
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
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
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
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
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