# Generate automatically. Do not edit. commit a319d7963feefccba02c7ac9faec5fed281d0729 Author: Stef Walter Date: 2011-10-24 Release version 3.3.1 NEWS | 12 +++++++++++- docs/reference/gcr/gcr-sections.txt | 1 + gck/gck.symbols | 1 + gcr/gcr-base.symbols | 1 + 4 files changed, 14 insertions(+), 1 deletions(-) commit fb973d9c553412cb66f6ec9be005d4cdab67eb0e Author: Stef Walter Date: 2011-10-19 gcr: Add function to get the elements of a union collection gcr/gcr-union-collection.c | 16 ++++++++++++++++ gcr/gcr-union-collection.h | 2 ++ 2 files changed, 18 insertions(+), 0 deletions(-) commit 874df503452d9578efcd0fca6b1c8958a433d10b Author: Stef Walter Date: 2011-10-17 Add gnupg, and cleanup icon rendering * key and key-pair icons get rendered like the rest * Add simple gnupg icon based on gnupg logo. gcr/gcr-icons.h | 1 + gcr/icons/16x16/Makefile.am | 13 +- gcr/icons/16x16/gcr-gnupg.png | Bin 0 -> 637 bytes gcr/icons/16x16/gcr-key-pair.png | Bin 878 -> 879 bytes gcr/icons/16x16/gcr-key.png | Bin 675 -> 650 bytes gcr/icons/22x22/Makefile.am | 11 +- gcr/icons/22x22/gcr-gnupg.png | Bin 0 -> 843 bytes gcr/icons/22x22/gcr-key-pair.png | Bin 0 -> 1275 bytes gcr/icons/22x22/gcr-key.png | Bin 0 -> 868 bytes gcr/icons/24x24/Makefile.am | 13 +- gcr/icons/24x24/gcr-gnupg.png | Bin 0 -> 858 bytes gcr/icons/24x24/gcr-key-pair.png | Bin 1221 -> 1278 bytes gcr/icons/24x24/gcr-key.png | Bin 875 -> 882 bytes gcr/icons/256x256/Makefile.am | 11 +- gcr/icons/256x256/gcr-gnupg.png | Bin 0 -> 8863 bytes gcr/icons/32x32/Makefile.am | 13 +- gcr/icons/32x32/gcr-gnupg.png | Bin 0 -> 1129 bytes gcr/icons/32x32/gcr-key-pair.png | Bin 1882 -> 1903 bytes gcr/icons/32x32/gcr-key.png | Bin 1201 -> 1176 bytes gcr/icons/48x48/Makefile.am | 13 +- gcr/icons/48x48/gcr-gnupg.png | Bin 0 -> 1679 bytes gcr/icons/48x48/gcr-key-pair.png | Bin 3480 -> 3502 bytes gcr/icons/48x48/gcr-key.png | Bin 2087 -> 2036 bytes gcr/icons/Makefile.am | 8 +- gcr/icons/Makefile.decl | 15 + gcr/icons/key-and-keypair.svg | 3921 ------------------------------- gcr/icons/src/gcr-gnupg.svg | 293 +++ gcr/icons/src/gcr-key-and-keypair.svg | 4138 +++++++++++++++++++++++++++++++++ 28 files changed, 4472 insertions(+), 3978 deletions(-) commit 50dc5f5936aea5f1e8e19f7ea321dfa691e11282 Author: Gabor Kelemen Date: 2011-10-16 Include gi18n-lib.h in library sources instead of gi18n.h https://bugzilla.gnome.org/show_bug.cgi?id=661929 gck/gck-module.c | 2 +- gck/gck-modules.c | 2 +- gck/gck-session.c | 2 +- gcr/gcr-callback-output-stream.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) commit 4886578695814db0debbe9d1ea7edfa68069e451 Author: Stef Walter Date: 2011-10-13 gcr: Fix up docs and symbols docs/reference/gcr/gcr-sections.txt | 1 + gcr/gcr-base.symbols | 1 + gcr/gcr-icons.h | 1 + 3 files changed, 3 insertions(+), 0 deletions(-) commit 08066aff6ee8bcd26a84ee863197139375489406 Author: Stef Walter Date: 2011-10-13 gcr: Add password icon gcr/icons/16x16/Makefile.am | 1 + gcr/icons/16x16/gcr-password.png | Bin 0 -> 483 bytes gcr/icons/22x22/Makefile.am | 1 + gcr/icons/22x22/gcr-password.png | Bin 0 -> 803 bytes gcr/icons/22x22/gcr-smart-card.png | Bin 662 -> 666 bytes gcr/icons/24x24/Makefile.am | 1 + gcr/icons/24x24/gcr-password.png | Bin 0 -> 744 bytes gcr/icons/24x24/gcr-smart-card.png | Bin 636 -> 645 bytes gcr/icons/256x256/Makefile.am | 1 + gcr/icons/256x256/gcr-password.png | Bin 0 -> 5596 bytes gcr/icons/256x256/gcr-smart-card.png | Bin 9294 -> 10098 bytes gcr/icons/32x32/Makefile.am | 1 + gcr/icons/32x32/gcr-password.png | Bin 0 -> 902 bytes gcr/icons/48x48/Makefile.am | 1 + gcr/icons/48x48/gcr-password.png | Bin 0 -> 1525 bytes gcr/icons/48x48/gcr-smart-card.png | Bin 1684 -> 1724 bytes gcr/icons/src/gcr-password.svg | 1222 ++++++++++++++++++++++++++++++++++ 17 files changed, 1228 insertions(+), 0 deletions(-) commit 7075ac649738fb977671022388833f99396d1261 Author: Stef Walter Date: 2011-10-13 gcr: Function to emit notify on GcrCertificate props for data change gcr/gcr-certificate.c | 15 +++++++++++++++ gcr/gcr-certificate.h | 2 ++ 2 files changed, 17 insertions(+), 0 deletions(-) commit 119d3232310824ad7ed3a72c6e77fce3bf30f5fa Author: Stef Walter Date: 2011-10-12 gck: Add gck_slot_enumerate_objects() function docs/reference/gck/gck-sections.txt | 1 + gck/gck-slot.c | 38 +++++++++++++++++++++++++++++++--- gck/gck.h | 6 ++++- 3 files changed, 40 insertions(+), 5 deletions(-) commit 459787f5a616e47a75a41999ce2f9fb04c6a81be Author: Stef Walter Date: 2011-10-12 gck: Documentation fix up .gitignore | 1 + docs/reference/gck/Makefile.am | 2 +- docs/reference/gck/gck.interfaces | 1 - docs/reference/gck/gck.types | 15 +++++++++++++++ gck/gck-enumerator.c | 7 +++---- gck/gck-module.c | 1 - gck/gck-object.c | 1 - gck/gck-password.c | 1 - gck/gck-session.c | 4 +--- gck/gck-slot.c | 1 - 10 files changed, 21 insertions(+), 13 deletions(-) commit 074c6666bb3bb5264d9a0833c136c44ee9492b5e Author: Stef Walter Date: 2011-10-12 gck: Enumerator can now retrieve object attributes * New interface called GckObjectAttributes. Callers derive from GckObject, implement GckObjectAttributes and set fields in the iface to denote which attributes are interested in. * Caller passes type of derived object to gck_enumerator_set_object_type() and then enumerator will retrieve attributes set in iface, and return objects of that type * GckObjectAttributes has attributes property. .gitignore | 1 - docs/reference/gck/Makefile.am | 2 +- docs/reference/gck/gck-docs.sgml | 1 + docs/reference/gck/gck-sections.txt | 24 ++- docs/reference/gck/gck.interfaces | 1 + docs/reference/gcr/gcr.interfaces | 39 ++++ gck/Makefile.am | 1 + gck/gck-enumerator.c | 413 +++++++++++++++++++++++++++-------- gck/gck-object-attributes.c | 106 +++++++++ gck/gck-object.c | 35 ++-- gck/gck-private.h | 3 + gck/gck.h | 41 ++++- gck/gck.symbols | 5 + gck/tests/Makefile.am | 2 +- gck/tests/test-gck-enumerator.c | 137 ++++++++++++- 15 files changed, 694 insertions(+), 117 deletions(-) commit fdd117df3883adbd25f0eaa40c50129b23584429 Author: Stef Walter Date: 2011-10-11 gck: Fix build issue on i686 where sizeof (gsize) != sizeof (CK_ULONG) gck/gck-session.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 96f9babf503f5acb8df3209bbe25c13eda2ce2a8 Author: Stef Walter Date: 2011-10-11 gcr: Fix documentation build by linking to right library docs/reference/gcr/Makefile.am | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 446337e1ab9cb371a90322e695f195e297ab3b2d Author: Stef Walter Date: 2011-10-07 gck: Add gck_session_find_handles() and friends Allows callers to create their own objects for PKCS#11 objects. .gitignore | 1 + docs/reference/gck/Makefile.am | 3 +- docs/reference/gck/gck-sections.txt | 3 + gck/gck-session.c | 179 ++++++++++++++++++++++++++++------- gck/gck.h | 21 ++++- gck/gck.symbols | 3 + 6 files changed, 174 insertions(+), 36 deletions(-) commit 365f0f09f29fd09454132a5d6ecb1ddacb0a62e8 Author: Stef Walter Date: 2011-10-06 Update glib dependency for 2.30.0 * We need it for GTlsInteraction configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 0ee09c69a99003e1de81dd03224bb9f4f4cb9de9 Author: Stef Walter Date: 2011-10-06 Fix problem with doap file syntax gcr.doap | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit c6691faa0348ab087e99ab9bd9914e1d5e81fa14 Author: Stef Walter Date: 2011-10-06 Split the GCR and GCK libraries out of gnome-keyring Commits prior to this commit will not build. To build old releases of Gcr or Gck you should use the gnome-keyring git module. This module currently depends on: gtk+ >= 3.0, glib >= 2.28.0, p11-kit >= 0.6, libgcrypt >= 1.2.2 Additionally it requires asn1Parser for building. .gitignore | 92 +++ AUTHORS | 5 + COPYING | 481 ++++++++++++ ChangeLog | 33 + HACKING | 142 ++++ MAINTAINERS | 3 + Makefile.am | 57 ++ NEWS | 1 + README | 6 + autogen.sh | 22 + configure.ac | 395 ++++++++++ docs/Makefile.am | 2 + docs/reference/gck/Makefile.am | 12 +- docs/reference/gcr/Makefile.am | 8 +- docs/reference/gcr/gcr-docs.sgml | 1 - egg/Makefile.am | 48 -- egg/tests/Makefile.am | 4 +- gck/Makefile.am | 15 +- gck/gck-dump.c | 4 +- gck/gck-mock.c | 4 +- gck/gck-mock.h | 4 +- gck/gck-test.c | 2 +- gck/gck-test.h | 4 +- gck/pkcs11.h | 1373 ++++++++++++++++++++++++++++++++++- gck/pkcs11i.h | 141 ++++ gck/pkcs11n.h | 221 ++++++ gck/pkcs11x.h | 44 ++ gcr.doap | 24 + gcr/Makefile.am | 6 +- gcr/gcr-openpgp.c | 2 +- gcr/gcr-openssh.c | 2 +- gcr/gcr-pkcs11-certificate.c | 7 +- gcr/gcr-trust.c | 9 +- gcr/gcr-viewer.desktop.in | 10 + gcr/tests/test-certificate-chain.c | 5 +- gcr/tests/test-fingerprint.c | 3 +- gcr/tests/test-pkcs11-certificate.c | 3 +- gcr/tests/test-simple-certificate.c | 2 - gcr/tests/test-trust.c | 7 +- po/LINGUAS | 85 +++ po/POTFILES.in | 33 + po/af.po | 1054 +++++++++++++++++++++++++++ po/ar.po | 1049 ++++++++++++++++++++++++++ po/as.po | 1067 +++++++++++++++++++++++++++ po/ast.po | 1063 +++++++++++++++++++++++++++ po/az.po | 995 +++++++++++++++++++++++++ po/be.po | 1004 +++++++++++++++++++++++++ po/be@latin.po | 1056 +++++++++++++++++++++++++++ po/bg.po | 1027 ++++++++++++++++++++++++++ po/bn.po | 1056 +++++++++++++++++++++++++++ po/bn_IN.po | 1060 +++++++++++++++++++++++++++ po/bs.po | 995 +++++++++++++++++++++++++ po/ca.po | 1035 ++++++++++++++++++++++++++ po/ca@valencia.po | 1035 ++++++++++++++++++++++++++ po/cs.po | 1031 ++++++++++++++++++++++++++ po/cy.po | 998 +++++++++++++++++++++++++ po/da.po | 1032 ++++++++++++++++++++++++++ po/de.po | 1044 ++++++++++++++++++++++++++ po/dz.po | 1014 ++++++++++++++++++++++++++ po/el.po | 1055 +++++++++++++++++++++++++++ po/en@shaw.po | 1065 +++++++++++++++++++++++++++ po/en_CA.po | 1002 +++++++++++++++++++++++++ po/en_GB.po | 1037 ++++++++++++++++++++++++++ po/eo.po | 1036 ++++++++++++++++++++++++++ po/es.po | 1039 ++++++++++++++++++++++++++ po/et.po | 1051 +++++++++++++++++++++++++++ po/eu.po | 1035 ++++++++++++++++++++++++++ po/fa.po | 1025 ++++++++++++++++++++++++++ po/fi.po | 1026 ++++++++++++++++++++++++++ po/fr.po | 1038 ++++++++++++++++++++++++++ po/ga.po | 1012 ++++++++++++++++++++++++++ po/gl.po | 1039 ++++++++++++++++++++++++++ po/gu.po | 1058 +++++++++++++++++++++++++++ po/he.po | 1003 +++++++++++++++++++++++++ po/hi.po | 1065 +++++++++++++++++++++++++++ po/hr.po | 1005 +++++++++++++++++++++++++ po/hu.po | 1029 ++++++++++++++++++++++++++ po/id.po | 1024 ++++++++++++++++++++++++++ po/is.po | 991 +++++++++++++++++++++++++ po/it.po | 1048 ++++++++++++++++++++++++++ po/ja.po | 1059 +++++++++++++++++++++++++++ po/ka.po | 992 +++++++++++++++++++++++++ po/kn.po | 1057 +++++++++++++++++++++++++++ po/ko.po | 1022 ++++++++++++++++++++++++++ po/lt.po | 1029 ++++++++++++++++++++++++++ po/lv.po | 1037 ++++++++++++++++++++++++++ po/mai.po | 1015 ++++++++++++++++++++++++++ po/mg.po | 995 +++++++++++++++++++++++++ po/mk.po | 1039 ++++++++++++++++++++++++++ po/ml.po | 1059 +++++++++++++++++++++++++++ po/mn.po | 997 +++++++++++++++++++++++++ po/mr.po | 1061 +++++++++++++++++++++++++++ po/ms.po | 1050 ++++++++++++++++++++++++++ po/nb.po | 1024 ++++++++++++++++++++++++++ po/ne.po | 1010 ++++++++++++++++++++++++++ po/nl.po | 1047 ++++++++++++++++++++++++++ po/nn.po | 1067 +++++++++++++++++++++++++++ po/oc.po | 996 +++++++++++++++++++++++++ po/or.po | 1067 +++++++++++++++++++++++++++ po/pa.po | 1032 ++++++++++++++++++++++++++ po/pl.po | 1029 ++++++++++++++++++++++++++ po/pt.po | 1036 ++++++++++++++++++++++++++ po/pt_BR.po | 1048 ++++++++++++++++++++++++++ po/ro.po | 1061 +++++++++++++++++++++++++++ po/ru.po | 1031 ++++++++++++++++++++++++++ po/rw.po | 1000 +++++++++++++++++++++++++ po/si.po | 998 +++++++++++++++++++++++++ po/sk.po | 1061 +++++++++++++++++++++++++++ po/sl.po | 1038 ++++++++++++++++++++++++++ po/sq.po | 1035 ++++++++++++++++++++++++++ po/sr.po | 1038 ++++++++++++++++++++++++++ po/sr@latin.po | 1039 ++++++++++++++++++++++++++ po/sv.po | 1032 ++++++++++++++++++++++++++ po/ta.po | 1038 ++++++++++++++++++++++++++ po/te.po | 1026 ++++++++++++++++++++++++++ po/th.po | 1030 ++++++++++++++++++++++++++ po/tr.po | 1071 +++++++++++++++++++++++++++ po/ug.po | 1049 ++++++++++++++++++++++++++ po/uk.po | 1051 +++++++++++++++++++++++++++ po/vi.po | 1050 ++++++++++++++++++++++++++ po/xh.po | 995 +++++++++++++++++++++++++ po/zh_CN.po | 1040 ++++++++++++++++++++++++++ po/zh_HK.po | 1019 ++++++++++++++++++++++++++ po/zh_TW.po | 1019 ++++++++++++++++++++++++++ schema/Makefile.am | 2 - 125 files changed, 88985 insertions(+), 126 deletions(-) commit 5791608b2762d7264c58caaf9fe53d7a16ede1c1 Author: Stef Walter Date: 2011-10-05 gcr: Make spinner on GcrImportButton actually spin gcr/gcr-import-button.c | 6 ++++++ gcr/gcr-pkcs11-importer.c | 1 + 2 files changed, 7 insertions(+), 0 deletions(-) commit 2b5be723faed77b82e2034a698a5c1d75776f023 Author: Stef Walter Date: 2011-10-05 gcr: Fix build issues with gcr-icons.h header gcr/gcr-icons.h | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) commit 000e0a5916f0c5d4e3788950be5bc6670799205a Author: Stef Walter Date: 2011-10-05 gcr: Properly get labels from the parser into the importer * Pull in the labels seen by the parser, but not in the attributes * Fix issues supplementing when no login is required gcr/gcr-pkcs11-import-interaction.c | 25 +++++++++++++------------ gcr/gcr-pkcs11-importer.c | 8 +++++++- gcr/gcr-pkcs11-importer.h | 1 + 3 files changed, 21 insertions(+), 13 deletions(-) commit c4d29054431a1470bf08e0e00e65b83798deab45 Author: Stef Walter Date: 2011-10-05 gcr: Parse required attributes out of certificates * PKCS#11 requires the CKA_SUBJECT, CKA_ISSUER and CKA_SERIAL_NUMBER in new certificate objects, so we parse them in the parser. gcr/gcr-parser.c | 66 ++++++++++++++++++++++++++++++++++++----------------- 1 files changed, 45 insertions(+), 21 deletions(-) commit b3c7f4601ab23e9a05c8c6696b5fc150cc7cdc6e Author: Stef Walter Date: 2011-10-05 gcr: Use the home directory for the NSS icon gcr/gcr-icons.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit 23f7e8e398e707a3cccb3774960f7b2b3ef56ef3 Author: Stef Walter Date: 2011-10-05 gcr: Stop gcr-viewer process correctly when Close is clicked gcr/gcr-viewer-tool.c | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) commit 53ac7932ff2b9f80a3a71de4a0b42dd5bd274060 Author: Stef Walter Date: 2011-10-05 gcr: Rework how we get supplemental information for the import docs/reference/gcr/Makefile.am | 2 + docs/reference/gcr/gcr-sections.txt | 14 ++++- gcr/gcr-base.symbols | 3 +- gcr/gcr-fingerprint.c | 4 +- gcr/gcr-import-interaction.c | 99 +++++++++++++++++---------- gcr/gcr-import-interaction.h | 13 +++- gcr/gcr-pkcs11-import-dialog.c | 132 ++++++++--------------------------- gcr/gcr-pkcs11-import-dialog.h | 9 ++- gcr/gcr-pkcs11-import-interaction.c | 86 ++++++++++++++--------- gcr/gcr-pkcs11-importer.c | 84 ++++++++++++++++++---- 10 files changed, 248 insertions(+), 198 deletions(-) commit 19e2f3edee54c77e86fa8924060083930e3cc9a9 Author: Stef Walter Date: 2011-10-05 gcr: Fix PKCS#11 importer attribute cleanup before import * Add proper CKA_ID, CKA_DECRYPT, CKA_SIGN, CKA_SIGN_RECOVER CKA_UNWRAP, CKA_SENSITIVE, and CKA_PRIVATE attributes * Create pairs of keys and certificates, and import those first gcr/gcr-base.symbols | 11 ++ gcr/gcr-debug.c | 1 + gcr/gcr-debug.h | 3 +- gcr/gcr-pkcs11-importer.c | 222 +++++++++++++++++++++++++++++++++++++-------- 4 files changed, 196 insertions(+), 41 deletions(-) commit a6d4a9fe03b0109ef4b24e06dfdd5fb056aed879 Author: Stef Walter Date: 2011-10-05 gcr: Complete and make gcr_fingerprint_xxx functions public * These functions create consistent key fingerpints for public, private and certificates. docs/reference/gcr/gcr-docs.sgml | 1 + docs/reference/gcr/gcr-sections.txt | 7 + gcr/Makefile.am | 3 +- gcr/gcr-certificate-renderer.c | 2 +- gcr/gcr-fingerprint.c | 219 ++++++++++++++++++++++++++++------- gcr/gcr-fingerprint.h | 23 +++- gcr/gcr-key-renderer.c | 8 +- gcr/tests/test-fingerprint.c | 46 ++++++-- 8 files changed, 246 insertions(+), 63 deletions(-) commit acc403e77774308cfd7ba7cab3d65a7799d2ff47 Author: Stef Walter Date: 2011-10-04 egg: Fix parsing of unsigned integers in DER * When the unsigned integer had a high bit set, we would store/parse it incorrectly. We have to force these numbers to be unsigned so we prefix/strip an extra zero byte on the front. * Also make accessing raw and usg numbers in DER not have to copy the value, since these are often sensitive. egg/egg-asn1x.c | 125 ++++++++++++++++++++++++++++++++++----- egg/egg-asn1x.h | 11 +++- egg/tests/test-asn1.c | 53 +++++++++++++++++ gcr/gcr-certificate-renderer.c | 8 +- gcr/gcr-certificate.c | 4 +- gcr/gcr-fingerprint.c | 14 ++-- gcr/gcr-parser.c | 43 +++++++------- 7 files changed, 206 insertions(+), 52 deletions(-) commit cf3d2e4ba298e5ee8c1bda80e2a71d47ef635a89 Author: Stef Walter Date: 2011-10-04 gcr: Import keys first when importing via PKCS#11 * This is what some smartcards seem to require, an easy enough fix so just work around this problem. gcr/gcr-pkcs11-importer.c | 24 +++++++++++++++++++++++- 1 files changed, 23 insertions(+), 1 deletions(-) commit a9aabfebbffa6b4fc7990b15f2daa6c1472cc777 Author: Stef Walter Date: 2011-10-04 gck: Include CKK_XXX values in debug output correctly gck/gck-attributes.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 45 insertions(+), 0 deletions(-) commit f4ac10720e2998583c60a084ecd6ac8a34300a40 Author: Stef Walter Date: 2011-10-04 gcr: Complete the PKCS#11 import dialog * Add GcrImportInteraction interface which importers * Hookup between non-GUI importers and import interaction isn't yet completely thought out. gcr/Makefile.am | 8 +- gcr/gcr-deprecated.h | 1 - gcr/gcr-dialog-util.c | 182 ++++++++++++++ gcr/gcr-dialog-util.h | 42 ++++ gcr/gcr-gnupg-importer.c | 14 +- gcr/gcr-import-button.c | 12 + gcr/gcr-import-dialog.c | 459 ----------------------------------- gcr/gcr-import-dialog.h | 82 ------- gcr/gcr-import-dialog.ui | 128 ---------- gcr/gcr-import-interaction.c | 178 ++++++++++++++ gcr/gcr-import-interaction.h | 89 +++++++ gcr/gcr-importer.c | 54 ++++- gcr/gcr-importer.h | 45 ++-- gcr/gcr-parser.c | 1 - gcr/gcr-pkcs11-import-dialog.c | 350 ++++++++++++++++++++++++++ gcr/gcr-pkcs11-import-dialog.h | 62 +++++ gcr/gcr-pkcs11-import-dialog.ui | 251 +++++++++++++++++++ gcr/gcr-pkcs11-import-interaction.c | 240 ++++++++++++++++++ gcr/gcr-pkcs11-import-interaction.h | 45 ++++ gcr/gcr-pkcs11-importer.c | 184 +++++++++++---- gcr/gcr-pkcs11-importer.h | 14 +- 21 files changed, 1686 insertions(+), 755 deletions(-) commit 393ad5f15b2f7f6bfa000c0871161c81742806e7 Author: Stef Walter Date: 2011-10-04 gck: Add support for setting attributes in an array * Either change the attribute to the new value, or add an attribute if one doesn't exist. docs/reference/gck/gck-sections.txt | 4 + gck/gck-attributes.c | 112 +++++++++++++++++++++++++++++++++++ gck/gck.h | 16 +++++ gck/gck.symbols | 4 + 4 files changed, 136 insertions(+), 0 deletions(-) commit 51dd9e1aa79a6429d1692234deab8fc39762843d Author: Stef Walter Date: 2011-10-03 gck: Integrate GTlsInteraction into libgck * Deprecate the GckModule signals which were used for password auth * Fire deprecated GckModule signals from a compat GTlsInteraction * Add some tests for this integration docs/reference/gck/gck-sections.txt | 23 ++ gck/Makefile.am | 2 + gck/gck-enumerator.c | 311 +++++++++++------- gck/gck-interaction.c | 176 ++++++++++ gck/gck-misc.c | 15 + gck/gck-module.c | 82 +----- gck/gck-modules.c | 12 +- gck/gck-password.c | 255 ++++++++++++++ gck/gck-private.h | 48 ++- gck/gck-session.c | 643 ++++++++++++++++++++++------------- gck/gck-slot.c | 184 +++++++--- gck/gck.h | 56 +++- gck/gck.symbols | 9 + gck/tests/Makefile.am | 4 + gck/tests/mock-interaction.c | 97 ++++++ gck/tests/mock-interaction.h | 43 +++ gck/tests/test-gck-crypto.c | 2 + gck/tests/test-gck-enumerator.c | 76 ++++ gck/tests/test-gck-session.c | 2 + 19 files changed, 1543 insertions(+), 497 deletions(-) commit a41c5670005eb86f69f09cb36df9075495275dda Author: Stef Walter Date: 2011-10-01 gcr: Check that secret exchanged data has correct protocol prefix * This is for future backward compatibility, so when we have more than one protocol, we can be sure we can identify the old one. gcr/gcr-secret-exchange.c | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) commit 40da05f717179cf3316bcd9fd406507cc4d54e89 Author: Stef Walter Date: 2011-10-01 gcr: Documentation fixes for secret exchange commits docs/reference/gcr/Makefile.am | 3 +++ docs/reference/gcr/gcr-sections.txt | 29 ++--------------------------- gcr/gcr-secret-exchange.c | 2 +- 3 files changed, 6 insertions(+), 28 deletions(-) commit 1e3a5058766025d8e68e264636cc002d9cd3d54e Author: Stef Walter Date: 2011-10-01 ui: Use GcrSecretExchange for passing passwords to/from prompt * And integrate this with our credential stuff inside of the dbus secret service prompts * Fix a bug in GcrSecretService if key already derived, and data is received. egg/Makefile.am | 2 +- gcr/gcr-secret-exchange.c | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) commit 1cc65dbe1ac64af14d91fa1c1d19ed5d6b0316bf Author: Stef Walter Date: 2011-10-01 gcr: More work on the GcrSecretExchange * Expose the concept of which protocol is being used although currently only one is supported. * Add virtual method hooks so all crypto stuff can be swapped out with other implementations. * Build, documentation and test fixes https://bugzilla.gnome.org/show_bug.cgi?id=656955 gcr/Makefile.am | 2 +- gcr/gcr-base.symbols | 7 + gcr/gcr-secret-exchange.c | 699 ++++++++++++++++++++++++++------------ gcr/gcr-secret-exchange.h | 38 ++- gcr/tests/test-secret-exchange.c | 4 +- 5 files changed, 526 insertions(+), 224 deletions(-) commit 971d9db89a43a8b46de3cf84da2a51f0be4725a5 Author: Stef Walter Date: 2011-08-23 gcr: Add documentation for GcrSecretExchange https://bugzilla.gnome.org/show_bug.cgi?id=656955 docs/reference/gcr/gcr-docs.sgml | 1 + docs/reference/gcr/gcr-sections.txt | 20 +++++++ gcr/gcr-secret-exchange.c | 101 +++++++++++++++++++++++++++++++++++ gcr/gcr-secret-exchange.h | 4 +- 4 files changed, 124 insertions(+), 2 deletions(-) commit e09c71b6fcdc25800d684f52c3c853a1069f2cef Author: Stef Walter Date: 2011-08-20 gcr: Refactor GcrSecretExchange * Use the GcrSecretExchange object on both sides. * Allow exchange of multiple secrets, and in both directions. * Add tests gcr/gcr-base.h | 2 + gcr/gcr-secret-exchange.c | 220 +++++++++++++++----------------------- gcr/gcr-secret-exchange.h | 25 ++--- gcr/tests/Makefile.am | 1 + gcr/tests/test-secret-exchange.c | 162 ++++++++++++++++++++++++++++ 5 files changed, 260 insertions(+), 150 deletions(-) commit 4ebec2c877e849f9fa747f73b83b36f7e6cf41ae Author: Stef Walter Date: 2011-08-10 gcr: Implement GcrSecretExchange * Class which allows exchanging secrets over an unsecure or logged channel. * Does *NOT* protect against active attacks like MITM. https://bugzilla.gnome.org/show_bug.cgi?id=656955 gcr/Makefile.am | 2 + gcr/gcr-secret-exchange.c | 523 +++++++++++++++++++++++++++++++++++++++++++++ gcr/gcr-secret-exchange.h | 78 +++++++ 3 files changed, 603 insertions(+), 0 deletions(-) commit 08479cc76baebe35fa95a12d8ba1b65b015b3b51 Author: Stef Walter Date: 2011-10-01 gcr: More documentation fixes gcr/gcr-certificate-chain.c | 1 + gcr/gcr-certificate-renderer.c | 4 ++-- gcr/gcr-gnupg-collection.c | 2 +- gcr/gcr-gnupg-process.c | 10 +++++----- 4 files changed, 9 insertions(+), 8 deletions(-) commit 679110b437b6c73362c7b063eb7bf3fcb695334b Author: Stef Walter Date: 2011-10-01 Fix up exported symbols for recent changes * Including one symbol removal, but since this was added during this unstable cycle, no problem changing it. gck/gck.symbols | 20 ++++++++++++++++++++ gcr/gcr-base.symbols | 2 +- 2 files changed, 21 insertions(+), 1 deletions(-) commit ac925c56040e7bc82577115324b1a6796121a96b Author: Stef Walter Date: 2011-09-30 gck: Fix more argument types * and mark up introspection annotations on some more arrays gck/gck-object.c | 12 ++++++------ gck/gck-slot.c | 8 +++++--- gck/gck.h | 14 +++++++------- 3 files changed, 18 insertions(+), 16 deletions(-) commit 1b11a90afead9a0d8f7a3fd830c806b0c116adf3 Author: Stef Walter Date: 2011-09-29 gck: More introspection tweaks, checking for parameters which allow none gck/gck-attributes.c | 6 ++-- gck/gck-misc.c | 4 +- gck/gck-module.c | 4 ++- gck/gck-modules.c | 14 +++++++-- gck/gck-object.c | 6 +--- gck/gck-session.c | 52 ++++++++++++++++++++++-------------- gck/gck-slot.c | 11 +++++-- gck/gck-uri.c | 2 +- gck/gck.h | 24 ++++++++-------- gcr/gcr-certificate-chain.c | 32 +++++++++++++--------- gcr/gcr-certificate-chain.h | 3 +- gcr/gcr-certificate-renderer.c | 12 ++++---- gcr/gcr-certificate-widget.c | 10 +++--- gcr/gcr-certificate.c | 43 ++++++++++++++++++----------- gcr/gcr-collection-model.c | 6 ++-- gcr/gcr-combo-selector.c | 2 +- gcr/gcr-failure-renderer.c | 2 +- gcr/gcr-gnupg-collection.c | 2 +- gcr/gcr-gnupg-importer.c | 1 + gcr/gcr-gnupg-process.c | 10 +++--- gcr/gcr-import-button.c | 2 +- gcr/gcr-key-renderer.c | 8 +++--- gcr/gcr-key-widget.c | 6 ++-- gcr/gcr-library.c | 8 +++--- gcr/gcr-live-search.c | 1 + gcr/gcr-menu-button.c | 1 + gcr/gcr-parser.c | 39 ++++++++++++++------------ gcr/gcr-renderer.c | 6 ++-- gcr/gcr-types.h | 1 + gcr/gcr-viewer-widget.c | 2 +- gcr/gcr-viewer.c | 2 +- gcr/tests/test-certificate-chain.c | 2 +- 32 files changed, 187 insertions(+), 137 deletions(-) commit f7003cd2f252d599c369afdb00c3ef8d14f1b09a Author: Stef Walter Date: 2011-09-29 gcr: Annotate which types are being returned * If the C function is returning a base type, then annotate what derived type is actually being returned. gcr/gcr-callback-output-stream.c | 5 +++++ gcr/gcr-certificate-basics-widget.c | 15 +++++++++++++-- gcr/gcr-certificate-details-widget.c | 16 +++++++++++----- gcr/gcr-failure-renderer.c | 2 +- gcr/gcr-gnupg-collection.c | 2 +- gcr/gcr-gnupg-importer.c | 5 +++++ gcr/gcr-live-search.c | 5 +++++ gcr/gcr-memory-icon.c | 2 +- gcr/gcr-menu-button.c | 5 +++++ gcr/gcr-pkcs11-importer.c | 5 +++++ gcr/gcr-simple-certificate.c | 4 ++-- gcr/gcr-simple-collection.c | 4 ++-- gcr/gcr-union-collection.c | 4 ++-- gcr/gcr-unlock-options-widget.c | 4 ++-- gcr/gcr-viewer-window.c | 2 +- 15 files changed, 61 insertions(+), 19 deletions(-) commit d7724d62c78ae009e8a35e71a496d944010bbebb Author: Stef Walter Date: 2011-09-29 gcr: Add gcr_viewer_widget_get_parser() * This property returns the parser currently in use by the viewer widget docs/reference/gcr/gcr-sections.txt | 1 + gcr/gcr-viewer-widget.c | 48 +++++++++++++++++++++++++++++++++++ gcr/gcr-viewer-widget.h | 2 + gcr/gcr.symbols | 1 + 4 files changed, 52 insertions(+), 0 deletions(-) commit 51346d522d589ada0622bc081968f8b486ebef43 Author: Stef Walter Date: 2011-09-29 gck: Fix precondition in gck_object_from_handles gck/gck-object.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 8177dd8f2797c897ca037a1288350e42e10dc38c Author: Stef Walter Date: 2011-09-29 gcr: More introspection and documentation cleanup * Tag proper transfer on return values * Use guchar * for arrays of bytes docs/reference/gcr/gcr-docs.sgml | 4 +++ gcr/gcr-certificate-basics-widget.c | 4 +- gcr/gcr-certificate-chain.c | 6 ++-- gcr/gcr-certificate-details-widget.c | 4 +- gcr/gcr-certificate-renderer.c | 23 ++++++++-------- gcr/gcr-certificate-widget.c | 12 ++++---- gcr/gcr-certificate.c | 6 +++- gcr/gcr-certificate.h | 3 +- gcr/gcr-collection-model.c | 10 ++++--- gcr/gcr-collection.c | 14 ++++++++++ gcr/gcr-comparable.c | 2 +- gcr/gcr-import-button.c | 4 +- gcr/gcr-key-renderer.c | 4 +- gcr/gcr-library.c | 28 ++++++++++++++++++++ gcr/gcr-list-selector.c | 6 ++-- gcr/gcr-parser.c | 47 ++++++++++++++++++++++++++++----- gcr/gcr-parser.h | 2 +- gcr/gcr-pkcs11-certificate.c | 5 ++- gcr/gcr-renderer.c | 11 ++++++++ gcr/gcr-simple-certificate.c | 17 +++++++----- gcr/gcr-simple-certificate.h | 4 +- gcr/gcr-tree-selector.c | 8 +++--- gcr/gcr-types.h | 4 +- gcr/gcr-viewer-widget.c | 21 ++++++++++++++- gcr/gcr-viewer-widget.h | 2 +- gcr/gcr-viewer-window.c | 16 +++++++++++- gcr/gcr-viewer.c | 8 ++++++ gcr/tests/frob-parser.c | 2 +- gcr/tests/test-certificate-chain.c | 2 +- gcr/tests/test-certificate.c | 6 ++-- gcr/tests/test-parser.c | 4 +- gcr/tests/test-trust.c | 2 +- 32 files changed, 216 insertions(+), 75 deletions(-) commit e8cbdae82efcf8508d900547396b74c74080ae45 Author: Stef Walter Date: 2011-09-29 gck: More introspection and documentation cleanup * In particular, use guchar * for arrays of bytes. gck/gck-attributes.c | 143 +++++++++++++++------------------------ gck/gck-misc.c | 23 ++++--- gck/gck-mock.c | 8 +- gck/gck-module.c | 8 +- gck/gck-object.c | 29 +++++---- gck/gck-session.c | 45 ++++++++---- gck/gck-slot.c | 32 +++++----- gck/gck-uri.c | 4 +- gck/gck.h | 14 ++-- gck/tests/test-gck-attributes.c | 20 +++--- gck/tests/test-gck-crypto.c | 20 +++--- gck/tests/test-gck-object.c | 2 +- gck/tests/test-gck-uri.c | 2 +- 13 files changed, 171 insertions(+), 179 deletions(-) commit 22d6f3be20483adedefe2ad7c11e9fa144fa8873 Author: Stef Walter Date: 2011-09-29 gck: Fix if _gck_debug was not called _gck_debugging doesn't work * Initialize debugging in both _gck_debug and _gck_debugging gck/gck-debug.c | 19 ++++++++++++++----- gck/gck-debug.h | 2 ++ 2 files changed, 16 insertions(+), 5 deletions(-) commit 72ab8176e27e5e91c876e48123b09c3b3b2e7759 Author: Stef Walter Date: 2011-09-29 gck: Documentation, introspection, and header fixes docs/reference/gck/Makefile.am | 2 +- docs/reference/gck/gck-docs.sgml | 3 ++ docs/reference/gck/gck-pkcs11-links.xml | 4 +- docs/reference/gck/gck-sections.txt | 60 ++++++++++++++++++++++++++----- gck/Makefile.am | 20 +++++++++- gck/gck-attributes.c | 16 ++++---- gck/gck-enum-types.c.template | 43 ++++++++++++++++++++++ gck/gck-enum-types.h.template | 28 ++++++++++++++ gck/gck-misc.c | 21 +++++++---- gck/gck-module.c | 22 ++++++++++- gck/gck-modules.c | 8 ++++ gck/gck-object.c | 6 ++-- gck/gck-session.c | 25 +++++++++++-- gck/gck-slot.c | 30 ++++++++++++++-- gck/gck-uri.c | 57 +++++++++++++++++++++++++---- gck/gck.h | 29 ++++++++------- 16 files changed, 312 insertions(+), 62 deletions(-) commit e56b3113af3e4924a2692333ab3e62b3eff22aea Author: Stef Walter Date: 2011-09-29 gck: Work around g-ir-scanner syntax problem * Separate typedef from structure declaration. gck/gck.h | 30 ++++++++++++++++++++---------- 1 files changed, 20 insertions(+), 10 deletions(-) commit 25bf4fed0b543f2a2d0ae255649d3db3906765ac Author: Stef Walter Date: 2011-09-29 Gck: GckAttribute value field is a byte array gck/gck-attributes.c | 2 +- gck/gck-dump.c | 4 ++-- gck/gck.h | 14 +++++++++----- 3 files changed, 12 insertions(+), 8 deletions(-) commit bd418b84b1a341ffa1ddcd6420f6cbe785b24dd1 Author: Stef Walter Date: 2011-09-29 gck: Gck introspection doesn't depend on gtk gck/Makefile.am | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 53dd9afb57e3d047a884698fd47b18e4166cfcab Author: Stef Walter Date: 2011-09-28 gcr: Complete introspection annotations for gcr library https://bugzilla.gnome.org/show_bug.cgi?id=655651 gcr/Makefile.am | 26 ++++++------ gcr/gcr-certificate-basics-widget.c | 14 ++++++- gcr/gcr-certificate-chain.c | 11 +++-- gcr/gcr-certificate-details-widget.c | 15 +++++++ gcr/gcr-certificate-renderer.c | 4 +- gcr/gcr-certificate-widget.c | 4 +- gcr/gcr-certificate.c | 72 +++++++++++++++------------------- gcr/gcr-certificate.h | 6 +- gcr/gcr-collection-model.c | 14 +++--- gcr/gcr-collection.c | 39 +++--------------- gcr/gcr-combo-selector.c | 8 ++-- gcr/gcr-deprecated-base.h | 2 + gcr/gcr-deprecated.h | 2 + gcr/gcr-failure-renderer.c | 17 ++++++++ gcr/gcr-icons.c | 10 ++++- gcr/gcr-icons.h | 2 +- gcr/gcr-importer.c | 12 +++--- gcr/gcr-key-renderer.c | 2 +- gcr/gcr-library.c | 16 ++++--- gcr/gcr-list-selector.c | 9 ++-- gcr/gcr-parser.c | 15 ++++--- gcr/gcr-parser.h | 4 +- gcr/gcr-pkcs11-certificate.c | 12 +++--- gcr/gcr-pkcs11-importer.c | 2 +- gcr/gcr-renderer.c | 28 ++++--------- gcr/gcr-renderer.h | 1 + gcr/gcr-simple-certificate.c | 8 ++-- gcr/gcr-simple-collection.c | 6 +- gcr/gcr-tree-selector.c | 19 +++++---- gcr/gcr-types.h | 13 ++++++ gcr/gcr-union-collection.c | 6 +- gcr/gcr-viewer.c | 12 +++--- 32 files changed, 219 insertions(+), 192 deletions(-) commit 34fd5215bdc064247409acc4e1fce892450b8e51 Author: Stef Walter Date: 2011-09-28 gck: Fix introspection warnings and complete introspection annotations https://bugzilla.gnome.org/show_bug.cgi?id=655651 gck/Makefile.am | 53 ++++++++++++++++-- gck/gck-attributes.c | 51 ++++++++++++------ gck/gck-deprecated.h | 51 +++++++++++++++++ gck/gck-enumerator.c | 10 ++-- gck/gck-misc.c | 14 ++++- gck/gck-module.c | 47 ++++++++++++++--- gck/gck-modules.c | 56 ++++++++++++------- gck/gck-object.c | 81 +++++++++++++++++----------- gck/gck-session.c | 110 +++++++++++++++++++++++++------------- gck/gck-slot.c | 127 +++++++++++++++++++++++++++++++++++-------- gck/gck-uri.c | 42 ++++++++++++++ gck/gck.h | 105 ++++++++++++++++++++++++------------ gck/tests/test-gck-crypto.c | 3 +- gck/tests/test-gck-object.c | 6 +- gck/tests/test-gck-slot.c | 2 +- 15 files changed, 569 insertions(+), 189 deletions(-) commit 007e09a075927b6ab5095ea60278ed1cd91c8397 Author: Evan Nemerson Date: 2011-07-30 gcr: mark many fields as private gcr/gcr-certificate-exporter.h | 1 + gcr/gcr-certificate-widget.c | 3 +-- gcr/gcr-display-scrolled.h | 1 + gcr/gcr-display-view.h | 1 + gcr/gcr-gnupg-collection.h | 1 + gcr/gcr-gnupg-key.h | 3 +-- gcr/gcr-gnupg-process.h | 1 + gcr/gcr-import-dialog.h | 1 + gcr/gcr-live-search.h | 3 +-- gcr/gcr-memory-icon.h | 3 +-- 10 files changed, 10 insertions(+), 8 deletions(-) commit 79df02ea2c54900be1ea3ab651e49cc2b216d0de Author: Evan Nemerson Date: 2011-07-30 gcr: add GObject introspection support https://bugzilla.gnome.org/show_bug.cgi?id=655651 gcr/Makefile.am | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) commit 71fa1a24ea4cca8389ce228e1e07e498ed9c0129 Author: Stef Walter Date: 2011-09-27 gcr: Fix logic in GcrImportButton when unlocking is going on (again) gcr/gcr-import-button.c | 47 +++++++++++++++++++++++------------------------ 1 files changed, 23 insertions(+), 24 deletions(-) commit 83d13b2cc5cd4f4962b4f750f526e5f99a62bf7c Author: Stef Walter Date: 2011-09-27 gcr: More deprecation tweaking so we can build on FC16 gcr/gcr-library.c | 2 +- gcr/gcr-live-search.c | 8 ++++---- gcr/gcr-parser.c | 4 ++++ 3 files changed, 9 insertions(+), 5 deletions(-) commit bd9f435831a2596cfc86cf5f395ca293912ba476 Author: Stef Walter Date: 2011-09-27 gcr: Fix logic in GcrImportButton when unlocking is going on * Don't show the spinner when no importers are ready even though initializing gcr/gcr-import-button.c | 45 ++++++++++++++++++++++++--------------------- 1 files changed, 24 insertions(+), 21 deletions(-) commit b9315ad910fcf68d4edd0760dc89e4fc7934f1e4 Author: Stef Walter Date: 2011-09-27 gcr: Fix problem with unlock prompt * Signal handling of the authenticate was in the wrong order. gcr/gcr-viewer-widget.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 6a9fce5701da32bde5eaf7726abb1d26837601c4 Author: Stef Walter Date: 2011-09-27 gcr: Fix documentation, abi, and translation issues docs/reference/gcr/Makefile.am | 3 + docs/reference/gcr/gcr-sections.txt | 22 +++++-- docs/reference/gcr/gcr.types | 1 + gcr/Makefile.am | 4 +- gcr/gcr-base.symbols | 19 ++++++- gcr/gcr-collection-model.c | 21 ++++++- gcr/gcr-combo-selector.c | 2 +- gcr/gcr-combo-selector.h | 2 - gcr/gcr-deprecated-base.h | 16 +++++ gcr/gcr-import-button.c | 15 +++++ gcr/gcr-import-button.h | 2 +- gcr/gcr-importer.c | 104 ++++++++++++++++++++++++++++++++++- gcr/gcr-list-selector.c | 4 +- gcr/gcr-list-selector.h | 2 - gcr/gcr-parser.c | 42 ++++++++++++++- gcr/gcr-viewer-tool.c | 4 +- gcr/gcr-viewer-window.c | 16 +++--- gcr/gcr-viewer-window.h | 14 +++-- gcr/gcr.symbols | 10 +++ gcr/tests/frob-unlock.c | 2 +- 20 files changed, 267 insertions(+), 38 deletions(-) commit 04213253537242d1cf43e1af33e49c861b298ed5 Author: Stef Walter Date: 2011-09-27 gcr: Fix invalid memory access in _gcr_record_set_base64 gcr/gcr-record.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit b0bdf8849435364752cfd0c7f31156de70cd52e5 Author: Stef Walter Date: 2011-09-27 gcr: Use correct icon in the PKCS#11 importer gcr/Makefile.am | 2 +- gcr/gcr-icons.h | 2 ++ gcr/gcr-pkcs11-importer.c | 15 +++++++-------- 3 files changed, 10 insertions(+), 9 deletions(-) commit 6ec42fc0fea9484b207b980b877aeac9c1dbd161 Author: Stef Walter Date: 2011-09-27 gcr: Refactor GcrParser and delay listing of importers * PKCS#11 takes a long time to initialize with certain smart cards (several seconds). So we can't block the UI. * Expose the PKCS#11 initialization functions publicly. * Refactor GcrParser so that the current parsed item can be held around until later in the form of a GcrParsed structure. * Queue parsed items in GcrImportButton until PKCS#11 is initialized. gcr/gcr-gnupg-importer.c | 14 ++-- gcr/gcr-import-button.c | 48 ++++++++- gcr/gcr-import-button.h | 2 +- gcr/gcr-importer.c | 40 +++++-- gcr/gcr-importer.h | 26 +++--- gcr/gcr-internal.h | 10 -- gcr/gcr-library.c | 18 ++-- gcr/gcr-library.h | 10 ++ gcr/gcr-parser.c | 246 +++++++++++++++++++++++++++++++----------- gcr/gcr-parser.h | 22 ++++ gcr/gcr-pkcs11-certificate.c | 4 +- gcr/gcr-pkcs11-importer.c | 41 +++++--- gcr/gcr-pkcs11-importer.h | 3 + gcr/gcr-trust.c | 8 +- gcr/gcr-viewer-widget.c | 9 +- gcr/gcr-viewer-window.c | 4 +- 16 files changed, 358 insertions(+), 147 deletions(-) commit 240903e80ca841495686c96638f925aecdc53883 Author: Stef Walter Date: 2011-09-27 gcr: Add GcrSingleCollection internal class gcr/Makefile.am | 1 + gcr/gcr-single-collection.c | 157 +++++++++++++++++++++++++++++++++++++++++++ gcr/gcr-single-collection.h | 55 +++++++++++++++ 3 files changed, 213 insertions(+), 0 deletions(-) commit 8a6e43e16c8fbe9416643f1b906ca7038083822a Author: Stef Walter Date: 2011-09-23 gcr: Show warnings about keys that have not been verified * And emblem icons that have not been verified. gcr/gcr-display-view.c | 71 ++++++++++++++++++++++++++++++++++++++++++++++ gcr/gcr-display-view.h | 5 +++ gcr/gcr-gnupg-records.c | 31 +++++++++++++++++-- gcr/gcr-gnupg-renderer.c | 43 ++++++++++++++------------- gcr/gcr-parser.c | 4 ++- 5 files changed, 128 insertions(+), 26 deletions(-) commit 5241d4bfb92f7fb054c433f2dcb1f7cacb544f6c Author: Stef Walter Date: 2011-09-22 gcr: Fixes for the import button and viewer widget * Update the button before anything queued. * Fix viewer widget arguments gcr/gcr-import-button.c | 120 ++++++++++++++++++++++++----------------------- gcr/gcr-viewer-widget.c | 2 +- gcr/gcr-viewer-widget.h | 2 +- 3 files changed, 63 insertions(+), 61 deletions(-) commit 4d59ea3ffe0dd47311bdae6b45c9c67ae3aab840 Author: Stef Walter Date: 2011-09-22 gcr: Distribute new headers properly. gcr/Makefile.am | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 61214a59d5470fc7eabb9f49795518a709ccafa6 Author: Stef Walter Date: 2011-09-22 gcr: Fix up documentation images docs/reference/gcr/gcr-visual-index.xml | 22 ++++++++++++++-------- 1 files changed, 14 insertions(+), 8 deletions(-) commit 3f73408777f73c4edd7ebfe2be34b5d4ef3c4b64 Author: Stef Walter Date: 2011-09-22 gcr: Complete GcrViewerWidget and GcrImportButton * Cleanup documentation * Rework how the GcrViewerWindow works so that it can be used elsewhere. * Create GcrImportButton which can import certificates and widgets. docs/reference/gcr/Makefile.am | 13 +- docs/reference/gcr/gcr-docs.sgml | 2 + docs/reference/gcr/gcr-sections.txt | 46 ++- docs/reference/gcr/gcr-widgets.c | 46 ++- docs/reference/gcr/gcr.types | 23 +- docs/reference/gcr/images/certificate-widget.png | Bin 15090 -> 16144 bytes docs/reference/gcr/images/import-button.png | Bin 0 -> 2925 bytes docs/reference/gcr/images/key-widget.png | Bin 10159 -> 10159 bytes docs/reference/gcr/images/viewer-widget.png | Bin 0 -> 13167 bytes gcr/Makefile.am | 15 +- gcr/gcr-base.h | 1 + gcr/gcr-collection-model.c | 1 - gcr/gcr-combo-selector.c | 1 - gcr/gcr-failure-renderer.c | 32 +- gcr/gcr-failure-renderer.h | 11 +- gcr/gcr-gnupg-process.c | 62 ++-- gcr/gcr-import-button.c | 485 ++++++++++++++++++++++ gcr/gcr-import-button.h | 68 +++ gcr/gcr-list-selector.c | 1 - gcr/gcr-marshal.list | 2 + gcr/gcr-pkcs11-importer.c | 2 +- gcr/gcr-simple-collection.c | 1 - gcr/gcr-tree-selector.c | 1 - gcr/gcr-union-collection.c | 1 - gcr/gcr-unlock-renderer.c | 98 ++--- gcr/gcr-unlock-renderer.h | 12 +- gcr/gcr-viewer-tool.c | 6 +- gcr/gcr-viewer-widget.c | 436 +++++++++++++++++++ gcr/gcr-viewer-widget.h | 53 +++ gcr/gcr-viewer-window.c | 371 ++++------------- gcr/gcr-viewer-window.h | 12 +- gcr/gcr-viewer.c | 25 +- gcr/gcr.h | 8 +- gcr/tests/Makefile.am | 4 + gcr/tests/frob-unlock.c | 3 +- 35 files changed, 1365 insertions(+), 477 deletions(-) commit 8fce8d6ab106813d47a71dd882d81b8aff277e0e Author: Stef Walter Date: 2011-09-22 gcr: Fix up documentation for importer and menu button docs/reference/gcr/Makefile.am | 1 + gcr/gcr-importer.c | 14 ++++++++++---- gcr/gcr-importer.h | 1 + 3 files changed, 12 insertions(+), 4 deletions(-) commit c38e80cb5afd9dcd885cc8cd17a2c6678d131084 Author: Stef Walter Date: 2011-09-21 gcr: Implement GcrMenuButton which is copied from gnome-contacts * The standard clickable button which drops down a menu. gcr/Makefile.am | 1 + gcr/gcr-menu-button.c | 366 +++++++++++++++++++++++++++++++++++++++++++++++++ gcr/gcr-menu-button.h | 61 ++++++++ 3 files changed, 428 insertions(+), 0 deletions(-) commit 23caa912b07371a295f8d361c404add9888df6ff Author: Stef Walter Date: 2011-09-21 gcr: Refactor the importer with multiple registered importers * Allow multiple importers to register, and have a way for them to identify whether something is importable by the importer or not. * Create a new GnuPG keyring importer. * Add boxed type for a GList of GObject * Some other minor cleanups. docs/reference/gck/gck-sections.txt | 2 + docs/reference/gcr/Makefile.am | 4 + docs/reference/gcr/gcr-sections.txt | 79 +-- gck/gck-misc.c | 12 + gck/gck.h | 4 + gck/gck.symbols | 1 + gcr/Makefile.am | 4 +- gcr/gcr-base.symbols | 12 + gcr/gcr-certificate-widget.c | 7 - gcr/gcr-deprecated-base.h | 6 + gcr/gcr-deprecated.h | 5 - gcr/gcr-gnupg-importer.c | 315 ++++++++++ gcr/gcr-gnupg-importer.h | 67 +++ gcr/gcr-gnupg-process.c | 7 + gcr/gcr-gnupg-process.h | 2 + gcr/gcr-import-dialog.c | 15 +- gcr/gcr-import-dialog.h | 17 +- gcr/gcr-importer.c | 1118 ++++++++++------------------------- gcr/gcr-importer.h | 95 ++-- gcr/gcr-internal.h | 1 + gcr/gcr-key-widget.c | 7 - gcr/gcr-pkcs11-importer.c | 582 ++++++++++++++++++ gcr/gcr-pkcs11-importer.h | 68 +++ gcr/gcr-record.h | 11 + gcr/gcr.symbols | 14 - 25 files changed, 1476 insertions(+), 979 deletions(-) commit 10e13e6d09e77d3bfde7a9d1b45b87893c0111a9 Author: Stef Walter Date: 2011-09-20 gcr: Add Renderer for Gnupg keys * Uses the colon style GcrRecord data to render gnupg key. docs/reference/gcr/gcr-sections.txt | 10 + gcr/Makefile.am | 6 + gcr/gcr-gnupg-collection.c | 5 +- gcr/gcr-gnupg-key.c | 127 +----- gcr/gcr-gnupg-key.h | 4 - gcr/gcr-gnupg-records.c | 244 ++++++++++ gcr/gcr-gnupg-records.h | 52 +++ gcr/gcr-gnupg-renderer.c | 852 +++++++++++++++++++++++++++++++++++ gcr/gcr-gnupg-renderer.h | 77 ++++ gcr/gcr-openpgp.c | 55 ++- gcr/gcr-openpgp.h | 8 + gcr/gcr-parser.c | 20 +- gcr/gcr-record.c | 150 ++++--- gcr/gcr-record.h | 33 +- gcr/gcr-renderer.c | 2 + gcr/gcr-types.h | 10 + gcr/tests/test-gnupg-collection.c | 2 +- gcr/tests/test-gnupg-key.c | 3 +- gcr/tests/test-openpgp.c | 16 + gcr/tests/test-record.c | 4 +- 20 files changed, 1438 insertions(+), 242 deletions(-) commit 967e6356ddb2b68c4bfde66525790f7cb4739d04 Author: Stef Walter Date: 2011-09-16 gcr: Implement parsing of openpgp packet contents into records. * Also centralize our timegm() implementation for dumb OS's. * Add tests for openpgp packet parsing * Produces with-colons format in the gnupg style, slight differences but not incompatible. docs/reference/gcr/gcr-sections.txt | 10 + egg/Makefile.am | 1 + egg/egg-asn1x.c | 31 +- egg/egg-timegm.c | 58 ++ egg/egg-timegm.h | 33 + gck/gck-slot.c | 35 +- gcr/gcr-gnupg-collection.c | 2 +- gcr/gcr-gnupg-key.c | 4 +- gcr/gcr-gnupg-util.c | 59 +-- gcr/gcr-openpgp.c | 1125 ++++++++++++++++++++++++++++++++++- gcr/gcr-openpgp.h | 9 + gcr/gcr-parser.c | 4 +- gcr/gcr-record.c | 611 ++++++++++++++++++-- gcr/gcr-record.h | 142 ++++- gcr/tests/Makefile.am | 1 + gcr/tests/files/secring.gpg | Bin 0 -> 4398 bytes gcr/tests/frob-openpgp.c | 122 ++++ gcr/tests/test-openpgp.c | 270 ++++++++- gcr/tests/test-record.c | 22 - 19 files changed, 2306 insertions(+), 233 deletions(-) commit 90a5361c4886de91e50228cb1a6e3e51cbfac2a1 Author: Stef Walter Date: 2011-09-14 gcr: Implement input for GcrGnupgProcess * Use io streams for input and output docs/reference/gcr/gcr-sections.txt | 9 + gcr/Makefile.am | 1 + gcr/gcr-callback-output-stream.c | 127 +++++++ gcr/gcr-callback-output-stream.h | 58 ++++ gcr/gcr-gnupg-collection.c | 54 ++-- gcr/gcr-gnupg-process.c | 373 +++++++++++++++++---- gcr/gcr-gnupg-process.h | 19 +- gcr/tests/files/gnupg-mock/mock-arguments-environ | 2 +- gcr/tests/files/gnupg-mock/mock-echo | 8 + gcr/tests/test-gnupg-process.c | 148 +++++++-- 10 files changed, 665 insertions(+), 134 deletions(-) commit a59215f1766e8f970043973847a1af2ab97b2341 Author: Stef Walter Date: 2011-09-14 gcr: GcrParser now reports current format for block parsed * The current format represents the inner most block * Refactor GcrParser so that we can accurately track the state of the parsed items when multiple functions contribute to that state. docs/reference/gcr/gcr-sections.txt | 1 + gcr/gcr-base.symbols | 1 + gcr/gcr-parser.c | 646 +++++++++++++++++++++-------------- gcr/gcr-parser.h | 8 +- gcr/gcr-types.h | 3 +- gcr/tests/test-parser.c | 9 +- 6 files changed, 401 insertions(+), 267 deletions(-) commit 8368e7e9f60a4a0f6f7a1d2175f24ba02b1b7521 Author: Stef Walter Date: 2011-09-13 gcr: Implement recognizing of OpenPGP packets * Doesn't actually parse keys or anything else about OpenPGP (yet). * Generalize the PEM code so that it works for PGP armor. docs/reference/gcr/gcr-sections.txt | 1 + egg/Makefile.am | 1 + egg/egg-armor.c | 407 +++++++++++++++++++++++++++++++++++ egg/egg-armor.h | 50 +++++ egg/egg-openssl.c | 350 ------------------------------ egg/egg-openssl.h | 18 -- egg/tests/test-openssl.c | 17 +- gcr/Makefile.am | 1 + gcr/gcr-certificate-exporter.c | 7 +- gcr/gcr-openpgp.c | 226 +++++++++++++++++++ gcr/gcr-openpgp.h | 49 +++++ gcr/gcr-parser.c | 83 ++++++- gcr/gcr-types.h | 3 + gcr/tests/Makefile.am | 1 + gcr/tests/files/pubring.gpg | Bin 0 -> 21969 bytes gcr/tests/files/werner-koch.asc | 71 ++++++ gcr/tests/test-openpgp.c | 94 ++++++++ 17 files changed, 989 insertions(+), 390 deletions(-) commit 3b76bda50a43a7315e2c8c66bbf9a7d2304cbf73 Author: Stef Walter Date: 2011-09-13 gcr: Implement OpenSSH public key parser * And add tests for various formats. docs/reference/gcr/gcr-sections.txt | 1 + gcr/Makefile.am | 1 + gcr/gcr-internal.h | 3 + gcr/gcr-live-search.c | 19 ++- gcr/gcr-openssh.c | 491 +++++++++++++++++++++++++++++++++++ gcr/gcr-openssh.h | 51 ++++ gcr/gcr-parser.c | 108 +++++++-- gcr/gcr-types.h | 2 + gcr/tests/Makefile.am | 1 + gcr/tests/files/openssh_keys.pub | 2 + gcr/tests/test-openssh.c | 196 ++++++++++++++ testing/ssh-example/README | 1 + testing/ssh-example/id_dsa | 15 + testing/ssh-example/id_dsa.pub | 1 + testing/ssh-example/id_rsa | 30 +++ testing/ssh-example/id_rsa.pub | 1 + testing/ssh-example/identity | Bin 0 -> 988 bytes testing/ssh-example/identity.pub | 1 + 18 files changed, 907 insertions(+), 17 deletions(-) commit 08c238dcd77bd645d216c8e7c6e4bbc68c1a7b80 Author: Stef Walter Date: 2011-09-12 egg: Add decoder for decimal data, analogous to the hex decoder. egg/Makefile.am | 1 + egg/egg-decimal.c | 101 ++++++++++++++++++++++++++++++++++ egg/egg-decimal.h | 33 +++++++++++ egg/tests/Makefile.am | 1 + egg/tests/test-decimal.c | 136 ++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 272 insertions(+), 0 deletions(-) commit 5658fca73b9783b08949fca8db984c1e1436503a Author: Stef Walter Date: 2011-09-27 gcr: Remove stock icon code, add gcr_icon_for_token_info() * gcr-icons.h is public * Remove old stock icon code, and use themed icons properly * Add gcr_icon_for_token_info() function which looks up an appropriate icon for a token. gcr/Makefile.am | 1 + gcr/gcr-base.h | 1 + gcr/gcr-certificate-renderer.c | 1 - gcr/gcr-failure-renderer.c | 2 - gcr/gcr-icons.c | 70 +++++++-------------------------------- gcr/gcr-icons.h | 7 +++- gcr/gcr-key-renderer.c | 2 - gcr/gcr-unlock-renderer.c | 2 - 8 files changed, 20 insertions(+), 66 deletions(-) commit 00f5efb6f9dc9508153ee280d1c582f62e858a87 Author: Stef Walter Date: 2011-09-27 gcr: Compatiblity fix for glib 2.28.x gcr/gcr-library.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 01696f02e22e1359c6c63f46993188f6d2638e60 Author: Stef Walter Date: 2011-09-23 gcr: Add icons for smart card * Copy a bit of infrastructure from gnome-icon-theme https://bugzilla.gnome.org/show_bug.cgi?id=659951 gcr/icons/16x16/Makefile.am | 1 + gcr/icons/16x16/gcr-smart-card.png | Bin 0 -> 509 bytes gcr/icons/22x22/Makefile.am | 1 + gcr/icons/22x22/gcr-smart-card.png | Bin 0 -> 662 bytes gcr/icons/24x24/Makefile.am | 1 + gcr/icons/24x24/gcr-smart-card.png | Bin 0 -> 636 bytes gcr/icons/256x256/Makefile.am | 9 + gcr/icons/256x256/gcr-smart-card.png | Bin 0 -> 9294 bytes gcr/icons/32x32/Makefile.am | 1 + gcr/icons/32x32/gcr-smart-card.png | Bin 0 -> 1093 bytes gcr/icons/48x48/Makefile.am | 1 + gcr/icons/48x48/gcr-smart-card.png | Bin 0 -> 1684 bytes gcr/icons/Makefile.am | 9 +- gcr/icons/render-icons.py | 174 +++++ gcr/icons/src/gcr-smart-card.svg | 1165 ++++++++++++++++++++++++++++++++++ 15 files changed, 1361 insertions(+), 1 deletions(-) commit 48767fcff6d008622561f2d8a7cc9191167139f3 Author: Stef Walter Date: 2011-09-26 gcr: Fix for more glib deprecations gcr/gcr-library.c | 2 +- gcr/gcr-live-search.c | 10 ++++------ gcr/gcr-unlock-renderer.c | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) commit 76add73aa3a11b073aaec400021c870fee8858f9 Merge: 8a0c332 c9298e5 Author: Stef Walter Date: 2011-09-26 Merge branch 'introspect-nodes' commit 8a0c332bc6f853fa39f889b666ff291e0465f054 Author: Stef Walter Date: 2011-09-26 Rework configure build options based on recent mailing list posts * --enable-strict to enable -Werror, fatal warnings and disable deprecations * --disable-debug to G_DISABLE_ASSERT * default debug for -g, WITH_DEBUG * --enable-debug to -OO egg/Makefile.am | 8 +------- gck/Makefile.am | 12 ++---------- gcr/Makefile.am | 12 ++---------- 3 files changed, 5 insertions(+), 27 deletions(-) commit c9298e5229b6561fe86459d7bbe5afc9b42e4a88 Author: Stef Walter Date: 2011-09-26 Split the gcr library into base and ui components. * Different pkg-config files gcr-3.pc and gcr-base-3.pc * The base library doesn't link to GTK+ or anything that is used in the UI. It can be used by non-ui programs. gcr/Makefile.am | 177 ++++++++++++++++++++++------------- gcr/gcr-base.h | 51 ++++++++++ gcr/gcr-base.pc.in | 16 +++ gcr/gcr-base.symbols | 110 ++++++++++++++++++++++ gcr/gcr-certificate-chain.h | 5 +- gcr/gcr-certificate-exporter.h | 4 +- gcr/gcr-certificate-extensions.h | 4 +- gcr/gcr-certificate-renderer.h | 4 +- gcr/gcr-certificate-widget.h | 4 +- gcr/gcr-certificate.h | 4 +- gcr/gcr-combo-selector.c | 2 - gcr/gcr-deprecated-base.h | 49 ++++++++++ gcr/gcr-deprecated.h | 27 ++---- gcr/gcr-enum-types.c.template | 10 ++- gcr/gcr-enum-types.h.template | 2 +- gcr/gcr-failure-renderer.h | 4 +- gcr/gcr-gnupg-collection.h | 2 +- gcr/gcr-gnupg-key.c | 1 - gcr/gcr-gnupg-key.h | 5 +- gcr/gcr-gnupg-process.h | 2 +- gcr/gcr-gnupg-util.h | 4 +- gcr/gcr-import-dialog.c | 2 - gcr/gcr-importer.c | 2 - gcr/gcr-importer.h | 4 +- gcr/gcr-key-renderer.h | 4 +- gcr/gcr-key-widget.h | 4 +- gcr/gcr-library.c | 73 +-------------- gcr/gcr-library.h | 4 +- gcr/gcr-list-selector.c | 2 - gcr/gcr-memory.c | 92 ++++++++++++++++++ gcr/gcr-parser.h | 4 +- gcr/gcr-pkcs11-certificate.h | 4 +- gcr/gcr-record.h | 4 +- gcr/gcr-simple-certificate.h | 6 +- gcr/gcr-simple-collection.c | 3 +- gcr/gcr-simple-collection.h | 2 +- gcr/gcr-tree-selector.c | 2 - gcr/gcr-trust.c | 2 +- gcr/gcr-trust.h | 4 +- gcr/gcr-types.h | 4 +- gcr/gcr-union-collection.h | 2 +- gcr/gcr-unlock-options-widget.h | 4 +- gcr/gcr-unlock-renderer.h | 4 +- gcr/gcr.h | 16 +--- gcr/gcr.pc.in | 2 +- gcr/gcr.symbols | 106 --------------------- gcr/tests/frob-parser.c | 6 +- gcr/tests/test-certificate-chain.c | 2 +- gcr/tests/test-certificate.c | 2 +- gcr/tests/test-fingerprint.c | 2 +- gcr/tests/test-gnupg-collection.c | 2 +- gcr/tests/test-gnupg-process.c | 2 +- gcr/tests/test-parser.c | 2 +- gcr/tests/test-pkcs11-certificate.c | 2 +- gcr/tests/test-simple-certificate.c | 2 +- gcr/tests/test-trust.c | 2 +- gcr/tests/test-util.c | 2 +- 57 files changed, 514 insertions(+), 355 deletions(-) commit 500619f616b102e9a401f96cca95ee67ba947dc5 Merge: c35a400 7ae4cd1 Author: Stef Walter Date: 2011-09-26 Merge branch 'gnome-3-2' commit c35a40040233acaa177709cd0832e41ea6f04a36 Author: Stef Walter Date: 2011-09-21 Update symbols files for recently added API. gck/gck.symbols | 2 ++ gcr/gcr.symbols | 9 +++++++++ 2 files changed, 11 insertions(+), 0 deletions(-) commit d230dc529061462cc7b1f7c5297d6e44da024e1a Author: Stef Walter Date: 2011-09-19 Fix pkcs11 related pkg-config variables and build output. * These were accidentally missed in earlier commits related to p11-kit 0.6 gcr/gcr.pc.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit bb10e659e8b855ad47a861c5b03465214fb3d560 Merge: 73a1ad7 efcf16d Author: Stef Walter Date: 2011-09-19 Merge branch 'track-memory' commit 73a1ad763b81774e3f423cb77054bdeeda5f821d Author: Stef Walter Date: 2011-09-19 gck: Documentation fix docs/reference/gck/gck-sections.txt | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 0d1929b7a79dd619f4ace02444b51b7315d42283 Merge: 7ae4cd1 c7b1d28 Author: Stef Walter Date: 2011-09-19 Merge branch 'sort-values' commit 7ae4cd1bbbe2b12abac4243f3514565ae3b6b6f4 Author: Bastien Nocera Date: 2011-09-17 build: Fix parallel compilation We need to tell Makefile how to generate gcr-oids.h gcr/Makefile.am | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 7b9525b2f1f0904698f80a8c2c6962d758829495 Author: Andre Klapper Date: 2011-09-13 Change online URL from library.g.o to developer.g.o docs/reference/gck/gck-docs.sgml | 4 ++-- docs/reference/gcr/gcr-docs.sgml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) commit 0b1557f7da4f6688abb96c50f374435e73962967 Author: Stef Walter Date: 2011-09-12 gcr: Accept slightly invalid PKCS#12 files * In particular when the order of a SET OF is incorrect as is generated by certain implementations. * Revert cbecc802e8cf5803aac9fbd3c546b539773220b2 since this fix was wrong. * Add egg_asn1x_decode_no_validate() so that callers can validate on their own and specify validation options. egg/egg-asn1x.c | 70 +++++++++++++++++++++++++++++++++++------------------ egg/egg-asn1x.h | 7 ++++- gcr/gcr-parser.c | 58 +++++++++++++++++++++++++++++++++++++++----- 3 files changed, 103 insertions(+), 32 deletions(-) commit 483ef5a82cd2a1834737c506e85031d26b719557 Author: Stef Walter Date: 2011-09-12 gcr: Verify PKCS#12 MAC * This also has the nice effect of sanifying the prompting for unlock passwords for PKCS#12 file, since it's done by the parser before looking inside the various parts of the file. egg/egg-symkey.c | 138 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ egg/egg-symkey.h | 16 ++++++ gcr/gcr-parser.c | 96 ++++++++++++++++++++++++++++++++++++-- 3 files changed, 246 insertions(+), 4 deletions(-) commit d3933248a820ed1ce4629c3a0440223597f3a1a4 Author: Stef Walter Date: 2011-09-12 gcr: Fix memory leak while parsing PKCS#8 encrypted keys. gcr/gcr-parser.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 878fa9700c48a2b842873e39de87bb69b04d5993 Author: Stef Walter Date: 2011-09-12 egg: Fix issue generating PKCS#12 symkey from password * If the key needed was longer than the hash size we would generate the incorrect key. * Right align the calculated number correctly in the buffer egg/egg-symkey.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) commit 529322d79ee708de3d24619a7b491600bad9cb64 Author: Stef Walter Date: 2011-09-12 egg: Fix ASN.1 issues validating order of SETOF * Compare just the value, rather than the entire TLV * This fixes some corner cases parsing PKCS#12 files egg/egg-asn1x.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit efcf16d64440d668a56efdb446c725339e072f89 Author: Stef Walter Date: 2010-10-14 Secure memory tagging * Tag all secure memory with strings, and print out diagnostic report of what's in use, upon request. egg/egg-dh.c | 2 + egg/egg-entry-buffer.c | 2 + egg/egg-libgcrypt.c | 2 + egg/egg-openssl.c | 2 + egg/egg-secure-memory.c | 269 ++++++++++++++++++++++++++++++----------------- egg/egg-secure-memory.h | 31 ++++-- egg/egg-symkey.c | 2 + egg/tests/test-secmem.c | 20 ++-- gcr/gcr-parser.c | 2 + 9 files changed, 218 insertions(+), 114 deletions(-) commit d2181a276b1a1fbeedad1f27b7f49074105eaaec Author: Stef Walter Date: 2011-09-10 Fix typo in GcrUnlockRenderer https://bugzilla.gnome.org/show_bug.cgi?id=658668 gcr/gcr-unlock-renderer.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit c7b1d28d5b933210855e8aefcb44e9b7db2003ad Author: Stef Walter Date: 2011-09-09 gck: Add functions for matching uri to modules and tokens docs/reference/gck/gck-sections.txt | 2 + gck/gck-module.c | 31 ++++++++++++++++++++++++++++ gck/gck-slot.c | 38 +++++++++++++++++++++++++++++++++++ gck/gck.h | 14 +++++++++++- 4 files changed, 83 insertions(+), 2 deletions(-) commit 2a73924b070044ceb9e600c0daf007f0bddaf65b Author: Stef Walter Date: 2011-09-09 gcr: Add gcr_union_collection_have() and gcr_union_collection_size() * Used to check wether a collection is part of the union. docs/reference/gcr/gcr-sections.txt | 2 ++ gcr/gcr-union-collection.c | 34 ++++++++++++++++++++++++++++++++++ gcr/gcr-union-collection.h | 5 +++++ 3 files changed, 41 insertions(+), 0 deletions(-) commit d14a8aff48381ea97e68b7996e1b7bb2f7a923fb Author: Stef Walter Date: 2011-09-07 gcr: Fix extra object reference in gcr_union_collection_take() gcr/gcr-union-collection.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit fa06cfbd780c0a36aa93c85d8fe792ea0883f925 Author: Stef Walter Date: 2011-09-07 gcr: Fix null pointer dereference when finalizing GcrCollectionModel gcr/gcr-collection-model.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) commit 949360d644ccc5b4adb1494740968da23ca1e146 Author: Travis Reitter Date: 2011-09-06 gcr: Fix gcr-viewer build errors https://bugzilla.gnome.org/show_bug.cgi?id=658319 gcr/Makefile.am | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit e31176810201a57a60a9eb0a3d0bd0172dcde887 Author: Rodrigo Moya Date: 2011-09-06 gcr: Fix linking of gcr-viewer https://bugzilla.gnome.org/show_bug.cgi?id=658249 gcr/Makefile.am | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 2faab0712e8ccd7c733454a16e0227536b54f536 Author: Stef Walter Date: 2011-09-06 gcr: Add GcrUnionCollection class * A GcrCollection which combines the contents of other collections into a single collection. docs/reference/gcr/gcr-sections.txt | 23 +++- gcr/Makefile.am | 2 + gcr/gcr-collection.c | 1 + gcr/gcr-union-collection.c | 307 +++++++++++++++++++++++++++++++++++ gcr/gcr-union-collection.h | 71 ++++++++ gcr/gcr.h | 1 + 6 files changed, 403 insertions(+), 2 deletions(-) commit b620c6b1ac741477afeaefc22aef2b54dde05f92 Author: Stef Walter Date: 2011-09-05 gcr: gcr_collection_model_set_columns() now returns number of columns * Return the number of real columns added (not including the possible selected column). * Fix several crashers in GcrCollectionModel as well. gcr/gcr-collection-model.c | 23 +++++++++++++++++------ gcr/gcr-collection-model.h | 2 +- 2 files changed, 18 insertions(+), 7 deletions(-) commit 185ab819dea0a3e4bc57ac12bcd5f0e0a4e243ea Author: Stef Walter Date: 2011-09-05 gcr: Add gcr_collection_model_get_collection() * A way to get the collection that collection model is based on. docs/reference/gcr/gcr-sections.txt | 1 + gcr/gcr-collection-model.c | 15 +++++++++++++++ gcr/gcr-collection-model.h | 2 ++ 3 files changed, 18 insertions(+), 0 deletions(-) commit ac4a4fbe2ef99be613ad5e5aadf70a7ed8afee72 Author: Stef Walter Date: 2011-09-05 gcr: Add gcr_collection_contains() as a virtual interface method. * And deprecate gcr_simple_collection_contains() * This is because this method is hard to implement at a higher layer efficiently, and the collection itself needs to get involved. docs/reference/gcr/gcr-sections.txt | 5 +++-- gcr/gcr-collection.c | 18 ++++++++++++++++++ gcr/gcr-collection.h | 10 ++++++++-- gcr/gcr-deprecated.h | 4 ++++ gcr/gcr-gnupg-collection.c | 17 +++++++++++++++++ gcr/gcr-simple-collection.c | 14 +++++++++++++- gcr/gcr-simple-collection.h | 3 --- 7 files changed, 63 insertions(+), 8 deletions(-) commit 85ec938827fa390350d74a6c40d5e7ef3f03dc02 Author: Stef Walter Date: 2011-09-02 gcr: Add support for GcrCollectionModel to have child rows * A child row is represented by an object that implements the GcrCollection gcr/gcr-collection-model.c | 569 +++++++++++++++++++++++++++------------- gcr/gcr-collection-model.h | 7 - gcr/tests/frob-tree-selector.c | 114 ++++++++- 3 files changed, 498 insertions(+), 192 deletions(-) commit e66d7d8c5b77fcb9bddef0ad8aecae1872c6fd02 Author: Stef Walter Date: 2011-09-02 gcr: Add GtkTreeSortable interface to GcrCollectionModel * Can now sort based on values, which simplifies callers of GcrCollectionModel. * Needed for use in seahorse. gcr/gcr-collection-model.c | 482 +++++++++++++++++++++++++++++++++++++--- gcr/gcr-collection-model.h | 7 + gcr/gcr-tree-selector.c | 103 +--------- gcr/tests/frob-tree-selector.c | 4 +- 4 files changed, 460 insertions(+), 136 deletions(-) commit bd846bd1d8a4d3c3f8c5c915af1fdbac45dee86a Author: Kalev Lember Date: 2011-08-31 gcr: Don't update the MIME database if DESTDIR is set This way the configure defaults work for binary distributions and they don't need to pass --disable-update-mime to configure. https://bugzilla.gnome.org/show_bug.cgi?id=657871 gcr/Makefile.am | 24 +++++++++++++----------- 1 files changed, 13 insertions(+), 11 deletions(-) commit 24cb6dc2cdddf776453dad65d87bd65661a4a569 Author: Frédéric Péters Date: 2011-09-04 build: install gcr-viewer-window.h header file https://bugzilla.gnome.org/show_bug.cgi?id=658147 gcr/Makefile.am | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit 319bfbf6f2590ca5606daca93acf42c56264d090 Author: Stef Walter Date: 2011-09-02 gcr: Stop parsing PKCS#12 bag if locked * This allows GcrUnlockRenderer to work correctly for certain types of PKCS#12 files it was screwing up on before. gcr/gcr-parser.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 81317e80d803d1d6984a74eb3f85eb51e8c23d6e Author: Stef Walter Date: 2011-09-02 gcr: Proper flags for GcrColumnFlags * Include GCR_COLUMN_NONE * Use << instead of hex numbers gcr/gcr-column.c | 1 + gcr/gcr-column.h | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) commit a6886d3eaf189131be4f5b6202e422b03ae88a1f Author: Stef Walter Date: 2011-09-01 gcr: Add support for getting friendly name out of a PKCS#12 file. egg/egg-asn1x.c | 19 +++++++++++++++++++ egg/egg-asn1x.h | 2 ++ gcr/gcr-oids.list | 3 +++ gcr/gcr-parser.c | 52 +++++++++++++++++++++++++++++++++++++++++++++++----- 4 files changed, 71 insertions(+), 5 deletions(-) commit 46b743d63926e8171e6bca56a7365bb3fce3d9db Author: Stef Walter Date: 2011-09-01 gcr: Support multiple items inside a PKCS#12 bag. * This is how (at least) openssl sends along additional certs in a PKCS#12 file. * Create a new file personal.p12 to test this. gcr/gcr-parser.c | 13 ++++--------- gcr/tests/files/personal.p12 | Bin 0 -> 3396 bytes testing/ca-example/certs/personal.crt | 16 ++++++++++++++++ testing/ca-example/certs/personal.p12 | Bin 0 -> 3396 bytes testing/ca-example/commands.txt | 17 +++++++++++++++-- testing/ca-example/keys/personal.key | 30 ++++++++++++++++++++++++++++++ testing/ca-example/requests/personal.req | 15 +++++++++++++++ testing/ca-example/serial.txt | 2 +- 8 files changed, 81 insertions(+), 12 deletions(-) commit cbbe6b8f97ccab00d79aa24b8cd18a633ab4762e Author: Stef Walter Date: 2011-09-01 gcr: Use place holder text in viewer unlock prompt. * Displays 'Password' in the box where the user types the password. gcr/gcr-unlock-renderer.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 79e9e7eaf04f0ffe66e99812a51ca2af73af86d0 Author: Stef Walter Date: 2011-09-01 gcr: Documentation, testing and distcheck fixes * Update symbols for new APIs * Update docs with new APIs * Change how tests find fixture files. docs/reference/gcr/Makefile.am | 2 + docs/reference/gcr/gcr-sections.txt | 1 + egg/egg-testing.c | 21 -------------- egg/egg-testing.h | 2 - egg/tests/Makefile.am | 2 +- egg/tests/test-asn1x.c | 2 - egg/tests/test-openssl.c | 1 - gck/Makefile.am | 3 +- gck/gck.symbols | 1 + gck/tests/Makefile.am | 2 +- gcr/gcr-parser.c | 7 +--- gcr/gcr.symbols | 2 + gcr/tests/Makefile.am | 2 +- gcr/tests/frob-certificate.c | 27 +----------------- gcr/tests/frob-combo-selector.c | 22 --------------- gcr/tests/frob-key.c | 27 +----------------- gcr/tests/frob-tree-selector.c | 22 --------------- gcr/tests/frob-unlock-options.c | 22 --------------- gcr/tests/test-fingerprint.c | 51 +++++++++++++++++++--------------- gcr/tests/test-gnupg-collection.c | 12 +------- gcr/tests/test-gnupg-process.c | 19 ++----------- 21 files changed, 49 insertions(+), 201 deletions(-) commit d6cbd89863a56b629556ab2f6a45231db1efcd54 Author: Stef Walter Date: 2011-08-31 gcr: Expose correct outer block for PEM in GcrParser gcr/gcr-parser.c | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) commit 6d3309d99045be7c49dfaeaa3d6fe518e85bc449 Author: Stef Walter Date: 2011-08-31 egg: Make OpenSSL PEM routines return outer block as well. * We expose this in GcrParser so that we can reparse a block that needs a password. egg/egg-openssl.c | 32 +++++++++++++++++++++++++++----- egg/egg-openssl.h | 9 +++++++-- egg/tests/test-openssl.c | 9 +++++++-- gcr/gcr-parser.c | 9 +++++++-- 4 files changed, 48 insertions(+), 11 deletions(-) commit 89c2508f94af7aff8fb6f6ea135baa0f8dc9de84 Author: Stef Walter Date: 2011-08-31 gcr: Display errors in the gcr-viewer * Add GcrFailureRenderer which shows errors with reason and icon gcr/Makefile.am | 1 + gcr/gcr-failure-renderer.c | 209 ++++++++++++++++++++++++++++++++++++++++++++ gcr/gcr-failure-renderer.h | 68 ++++++++++++++ gcr/gcr-viewer-window.c | 32 ++++--- 4 files changed, 297 insertions(+), 13 deletions(-) commit 01d9b05bba8be349478a582a6798185cf6682f9e Author: Stef Walter Date: 2011-08-31 gcr: Add support for unlocking files in gcr-viewer * Add a GcrRenderer which displays unlock widgets * Add method to GcrViewer which allows insertion of renderer before another * Functionality in GcrDisplayView for showing dialog like widgets in view * Fixes for removing renderer from view * Parser fixes for enabling all formats * Parser fixes for PKCS#12 parsing with locked data gcr/Makefile.am | 1 + gcr/gcr-display-scrolled.c | 10 ++ gcr/gcr-display-view.c | 141 ++++++++++++++--- gcr/gcr-display-view.h | 4 + gcr/gcr-parser.c | 39 +++-- gcr/gcr-unlock-renderer.c | 368 ++++++++++++++++++++++++++++++++++++++++++++ gcr/gcr-unlock-renderer.h | 69 ++++++++ gcr/gcr-viewer-window.c | 125 ++++++++++++++- gcr/gcr-viewer.c | 56 +++++--- gcr/gcr-viewer.h | 27 +++- gcr/gcr.h | 1 + gcr/tests/Makefile.am | 3 +- gcr/tests/frob-unlock.c | 111 +++++++++++++ 13 files changed, 882 insertions(+), 73 deletions(-) commit 2545fe9737dae4bea08687363feb1233e5a9f09c Author: Stef Walter Date: 2011-08-25 gcr: Support get surrounding data block from GcrParser * This is needed for importing parsed data into other places than PKCS#11 tokens. * Going to use this in seahorse. docs/reference/gcr/gcr-sections.txt | 1 + gcr/gcr-parser.c | 84 +++++++++++++++++++++++++++++------ gcr/gcr-parser.h | 3 + gcr/tests/test-parser.c | 27 +++++++++++ 4 files changed, 101 insertions(+), 14 deletions(-) commit 4d786ed2a27d04551afa796eb5421883592bf6c8 Author: Stef Walter Date: 2011-08-25 gcr: Test GcrParser with null and empty data gcr/gcr-parser.c | 22 ++++++++++++---------- gcr/tests/test-parser.c | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 10 deletions(-) commit 0483d81b97f1c461192716891647c2cf36004fc0 Author: Stef Walter Date: 2011-08-25 gcr: Refactor the parser tests * Make one test per file, and give them descriptive names. * Make the tests quieter as well. gcr/tests/test-parser.c | 83 ++++++++++++++++++++++++++++------------------ 1 files changed, 50 insertions(+), 33 deletions(-) commit 6770c9f5250ddf697b5bd8866f5a70b93d072623 Author: Friedel Wolff Date: 2011-08-31 Typo in translatable string https://bugzilla.gnome.org/show_bug.cgi?id=656599 gck/gck-uri.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 66504010c3b34229ce92b67c92c429c162c9b2a6 Author: Stef Walter Date: 2011-08-31 gck: Fix tests for new PKCS#11 URI revesion * Some of the attribute names changed to include dashes gck/tests/test-gck-uri.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit b2f6cbaa8ab8259ece2e779d6b0d10497fdfbe48 Author: Stef Walter Date: 2011-08-31 gck: Add gck_modules_tokens_for_uri() function * Returns multilpe tokens matching a URI * We use this when looking up the trust slots docs/reference/gck/gck-sections.txt | 1 + gck/gck-modules.c | 80 ++++++++++++++++++++++++++-------- gcr/gcr-library.c | 7 +-- 3 files changed, 64 insertions(+), 24 deletions(-) commit fed0206792938444a457c928bb1e6ee333a81e8c Author: Stef Walter Date: 2011-08-31 gck: Add debug output to GckEnumerator and bits of GckSession * Also fix up Gcr debugging * And add debugging to trust stuff. docs/reference/gck/Makefile.am | 4 +- gck/Makefile.am | 2 + gck/gck-attributes.c | 350 ++++++++++++++++++++++++++++++++++++++++ gck/gck-debug.c | 109 +++++++++++++ gck/gck-debug.h | 86 ++++++++++ gck/gck-enumerator.c | 70 +++++++-- gck/gck-misc.c | 97 +++++++++++ gck/gck-private.h | 4 + gck/gck-session.c | 27 +++- gck/gck.h | 4 + gck/pkcs11-trust-assertions.h | 56 +++++++ gcr/Makefile.am | 3 +- gcr/gcr-debug.c | 1 + gcr/gcr-debug.h | 3 +- gcr/gcr-trust.c | 8 + 15 files changed, 808 insertions(+), 16 deletions(-) commit fae3191a62a6471893ccad979dfb0282c9cd6459 Author: Stef Walter Date: 2011-08-30 gcr: Fix library initialization bugs, and add some debug statements. * Fix problems loading trust URIS and initializing modules. * Better debug output about library initialization. gcr/gcr-debug.c | 1 + gcr/gcr-library.c | 53 ++++++++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 45 insertions(+), 9 deletions(-) commit 6d46370fe0d0216cf4a048228e827a1f29930987 Author: Stef Walter Date: 2011-08-30 Fix compile warnings when building with --disable-debug egg/egg-asn1x.c | 4 +--- egg/egg-secure-memory.c | 4 ++++ gcr/gcr-certificate-renderer.c | 2 +- gcr/gcr-parser.c | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) commit d4fe26de576b8815169df2f5eb37b6c8e70ba204 Author: Stef Walter Date: 2011-08-30 gcr: Fix up GcrViewerWindow documentation docs/reference/gcr/gcr-sections.txt | 18 +++++++++++++++++ gcr/gcr-viewer-window.c | 36 +++++++++++++++++++++++++++++++++++ gcr/gcr-viewer-window.h | 2 + 3 files changed, 56 insertions(+), 0 deletions(-) commit af8fa5521bddd9baf36b18e67f779b52c372098f Author: Stef Walter Date: 2011-08-30 Release 3.1.90 * Fix build issues to do with mime database * Fix testing issues in pkcs11 trust assertion database * Fix distribution issues. gcr/Makefile.am | 5 +++-- gcr/gcr.symbols | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) commit b1fb128fe568a2e7560868e3a49452da514cca65 Author: Stef Walter Date: 2011-08-22 gcr: Add better xdg-mime files for identifying crypto related file types * Add hook up gcr-viewer to view most of those types. * Rename test file extensions to match the proper ones gcr/Makefile.am | 31 +++++ gcr/gcr-crypto-types.xml | 151 ++++++++++++++++++++++++ gcr/gcr-viewer.desktop.in.in | 10 ++ gcr/tests/files/der-key-PBE-MD5-DES.p8 | Bin 0 -> 677 bytes gcr/tests/files/der-key-PBE-SHA1-3DES.p8 | Bin 0 -> 678 bytes gcr/tests/files/der-key-PBE-SHA1-DES.p8 | Bin 0 -> 677 bytes gcr/tests/files/der-key-PBE-SHA1-RC2-40.p8 | Bin 0 -> 678 bytes gcr/tests/files/der-key-PBE-SHA1-RC4-128.p8 | Bin 0 -> 673 bytes gcr/tests/files/der-key-dsa.p8 | Bin 0 -> 335 bytes gcr/tests/files/der-key-encrypted-pkcs5.p8 | Bin 0 -> 677 bytes gcr/tests/files/der-key-v2-des.p8 | Bin 0 -> 711 bytes gcr/tests/files/der-key-v2-des3.p8 | Bin 0 -> 714 bytes gcr/tests/files/der-key.p8 | Bin 0 -> 635 bytes gcr/tests/files/der-pkcs8-PBE-MD5-DES.key | Bin 677 -> 0 bytes gcr/tests/files/der-pkcs8-PBE-SHA1-3DES.key | Bin 678 -> 0 bytes gcr/tests/files/der-pkcs8-PBE-SHA1-DES.key | Bin 677 -> 0 bytes gcr/tests/files/der-pkcs8-PBE-SHA1-RC2-40.key | Bin 678 -> 0 bytes gcr/tests/files/der-pkcs8-PBE-SHA1-RC4-128.key | Bin 673 -> 0 bytes gcr/tests/files/der-pkcs8-dsa.key | Bin 335 -> 0 bytes gcr/tests/files/der-pkcs8-encrypted-pkcs5.key | Bin 677 -> 0 bytes gcr/tests/files/der-pkcs8-v2-des.key | Bin 711 -> 0 bytes gcr/tests/files/der-pkcs8-v2-des3.key | Bin 714 -> 0 bytes gcr/tests/files/der-pkcs8.key | Bin 635 -> 0 bytes 23 files changed, 192 insertions(+), 0 deletions(-) commit 6310b35bac3bbe5db903e2bb962219fdca7fe992 Author: Stef Walter Date: 2011-08-22 gcr: Fix up GcrDisplayView bugs and look * Separators between items. * Clicking details doesn't remove items when more than one is displayed. * Better spacing. gcr/gcr-certificate-renderer.c | 7 +- gcr/gcr-display-view.c | 191 ++++++++++++++++++++++++++++++++-------- gcr/gcr-display-view.h | 5 +- gcr/gcr-key-renderer.c | 9 ++- 4 files changed, 171 insertions(+), 41 deletions(-) commit c2fa32ba872fb25ca6bbdf95751427801bfd060b Author: Stef Walter Date: 2011-03-31 Add function for registering well known renderers. Renderers for certificates and keys are registered. gcr/gcr-renderer.c | 12 ++++++++++++ gcr/gcr-renderer.h | 2 ++ 2 files changed, 14 insertions(+), 0 deletions(-) commit f0b2e74919d77afc620363e8592e0728c102974e Author: Stef Walter Date: 2011-03-25 Implement basic little viewer window. Doesn't yet layout correctly, and is pretty plain, but displays certificates. gcr/Makefile.am | 15 +++ gcr/gcr-viewer-tool.c | 131 ++++++++++++++++++++++++++++ gcr/gcr-viewer-window.c | 222 +++++++++++++++++++++++++++++++++++++++++++++++ gcr/gcr-viewer-window.h | 56 ++++++++++++ 4 files changed, 424 insertions(+), 0 deletions(-) commit dd40ad5d5d8cb9a280f767e7d9151e12430c31ee Author: Stef Walter Date: 2011-08-25 Fix up documentation warning. docs/reference/gcr/gcr-sections.txt | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit a0e70733627ec8c18693664319d476892b17e838 Author: Stef Walter Date: 2011-08-25 gcr: Don't initialize pkcs11 modules automatically. Only load and initialize the pkcs11 modules when they're needed rather than when anything in gcr is touched. For starters this is lighter, and secondly modules can block while loading. Add async initialization functions, and treat the initialization of PkcS#11 modules as something that can block. gcr/gcr-certificate.c | 2 +- gcr/gcr-combo-selector.c | 2 +- gcr/gcr-gnupg-collection.c | 2 +- gcr/gcr-import-dialog.c | 2 +- gcr/gcr-importer.c | 2 +- gcr/gcr-internal.h | 12 ++- gcr/gcr-library.c | 179 +++++++++++++++++----- gcr/gcr-list-selector.c | 2 +- gcr/gcr-parser.c | 2 +- gcr/gcr-pkcs11-certificate.c | 96 +++++++----- gcr/gcr-simple-certificate.c | 2 +- gcr/gcr-simple-collection.c | 2 +- gcr/gcr-tree-selector.c | 2 +- gcr/gcr-trust.c | 346 ++++++++++++++++-------------------------- 14 files changed, 353 insertions(+), 300 deletions(-) commit e0281879af4a2a1f7562690efcdacfe9eb50dc20 Author: Stef Walter Date: 2011-08-25 Don't keep going after tests fail * Remove -k from gtester arguments egg/tests/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 17b8e4548044d49282da453f8dad642ac4e94da3 Author: Stef Walter Date: 2011-08-25 gck: Cleanup gck API for consistency * The GCK library is incrementing its major library version number this release cycle. So take that advantage to cleanup the API a little bit before stable releases. gck/gck-module.c | 4 +++- gck/gck-modules.c | 21 +++++++++++---------- gck/gck.h | 4 +++- gck/gck.symbols | 9 +++++++-- gck/tests/test-gck-crypto.c | 2 +- gck/tests/test-gck-enumerator.c | 2 +- gck/tests/test-gck-module.c | 6 +++--- gck/tests/test-gck-modules.c | 2 +- gck/tests/test-gck-object.c | 2 +- gck/tests/test-gck-session.c | 2 +- gck/tests/test-gck-slot.c | 2 +- gcr/gcr-library.c | 9 +++++++-- 12 files changed, 40 insertions(+), 25 deletions(-) commit 127ce4ea00240b51e8ad928f6c5be3fcc3ab5450 Author: Stef Walter Date: 2011-08-25 gcr: ABI fixes for gcr library * The gcr library has not iterated its major version * Move deprecated stuff into separate headers * Also fix problem with enum-types header. docs/reference/gcr/gcr-sections.txt | 1 + gcr/Makefile.am | 20 +++++++---- gcr/gcr-deprecated.h | 61 +++++++++++++++++++++++++++++++++++ gcr/gcr-importer.h | 9 ----- gcr/gcr-renderer.c | 17 ++++++++++ gcr/gcr-types.h | 8 ---- gcr/gcr.h | 8 +---- 7 files changed, 92 insertions(+), 32 deletions(-) commit b49cc30e1117e9b35f6c3a988ddb05cf85c0c643 Author: Stef Walter Date: 2011-08-25 Put ABI symbol checks into 'make check' * We have files in which all public symbols for the gck and gcr libraries, and then check these against the linked libraries. * Not a panacea for ABI changes, but at least a simple check gck/Makefile.am | 26 +++++-- gck/gck.symbols | 195 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ gcr/Makefile.am | 20 +++++- gcr/gcr.symbols | 197 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 429 insertions(+), 9 deletions(-) commit ecd677096ca975f77f1c73d11144ea6f0e4ed17c Author: Stef Walter Date: 2011-08-25 gck: Add async initialization functions. * PKCS#11 modules can take indeterminate time to initialize * Allow initialization in a separate thread docs/reference/gck/gck-sections.txt | 8 ++- gck/gck-call.c | 7 +- gck/gck-module.c | 150 +++++++++++++++++++++++++++-------- gck/gck-modules.c | 108 +++++++++++++++++++++---- gck/gck.h | 17 ++++- gck/tests/Makefile.am | 2 +- gck/tests/test-gck-module.c | 51 ++++++++++-- 7 files changed, 279 insertions(+), 64 deletions(-) commit 3191bc099aa05d42bdd994155f141638fb7ca5e3 Merge: 2405fb4 6274dd0 Author: Stef Walter Date: 2011-08-17 Merge branch 'parse-other-names' commit 6274dd09e8d3dd1224efd20160731854aae98d13 Author: Stef Walter Date: 2011-08-03 gcr: Display otherName subject-alt-name for xmppAddr and DNS SRV * Display the xmppAddr and DNS SRV otherName type subject alt names correctly. These are displayed as simple strings. * Also fix the critical warning when these were encountered. https://bugzilla.gnome.org/show_bug.cgi?id=655902 gcr/gcr-certificate-extensions.c | 25 ++++++++++++++++++++++++- 1 files changed, 24 insertions(+), 1 deletions(-) commit df082058abb17c971fdd2ba4f8a7efd8833a708d Author: Stef Walter Date: 2011-08-03 gcr: Reorganize how gcr oids are generated * Use script gcr-mkoids to generate oid quark code. * Call _gcr_oids_init() before using any GCR_OID_XXX symbols. gcr/Makefile.am | 8 +++- gcr/gcr-certificate-extensions.c | 3 + gcr/gcr-certificate-renderer.c | 23 +++------- gcr/gcr-certificate.c | 11 ++--- gcr/gcr-fingerprint.c | 31 ++------------ gcr/gcr-mkoids | 85 ++++++++++++++++++++++++++++++++++++++ gcr/gcr-oids.list | 19 ++++++++ gcr/gcr-parser.c | 55 ++++++++----------------- 8 files changed, 148 insertions(+), 87 deletions(-) commit 2405fb4480b42c29331d3043cfbfbcccf9547275 Author: Stef Walter Date: 2011-07-27 schema: Add support for keyservers in o.g.crypto.pgp schema * This is needed by seahorse's GSettings migration. * This keyservers setting is here, because it's a desktop wide setting, rather than seahorse specific. https://bugzilla.gnome.org/show_bug.cgi?id=622401 schema/Makefile.am | 3 ++- schema/org.gnome.crypto.pgp.gschema.xml | 5 +++++ schema/org.gnome.crypto.pgp_keyservers.convert | 2 ++ 3 files changed, 9 insertions(+), 1 deletions(-) commit 7eba34210e78be2ced21383a110d7ef5fc0a97fc Author: Stef Walter Date: 2011-07-25 Release version 3.1.4 * Include some changes to make comparing symbols easier. * Fix some issues that came up when doing make distcheck gck/Makefile.am | 6 ++ gcr/Makefile.am | 18 +++-- gcr/libgcr.symbols | 183 -------------------------------------------- gcr/tests/test-gnupg-key.c | 2 +- 4 files changed, 17 insertions(+), 192 deletions(-) commit 76acd5cb35c6725a54c27699ed52913774e8178a Author: Ross Burton Date: 2011-07-19 gcr: install the enum headers https://bugzilla.gnome.org/show_bug.cgi?id=654896 gcr/Makefile.am | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 593b87b4a7bf45bed27947b1ddbcbb777c84bd26 Author: Stef Walter Date: 2011-07-18 gck: Fix PKCS#11 URI documentation. gck/gck-uri.c | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) commit 4f76ec58f2f26b7773f559b47d6e3d3858ad657a Author: Stef Walter Date: 2011-07-18 gcr: Use glib-mkenums to generate types for enums and flags * And remove manually coded type registration in GcrCertificateChain docs/reference/gcr/gcr-sections.txt | 9 +++++++ gcr/Makefile.am | 17 +++++++++++--- gcr/gcr-certificate-chain.c | 41 ----------------------------------- gcr/gcr-certificate-chain.h | 20 +--------------- gcr/gcr-enum-types.c.template | 35 +++++++++++++++++++++++++++++ gcr/gcr-enum-types.h.template | 28 +++++++++++++++++++++++ gcr/gcr.h | 2 + 7 files changed, 89 insertions(+), 63 deletions(-) commit c84838df247bd1b1d4b25de2a65e504894a12d03 Author: Stef Walter Date: 2011-07-18 Cleanup doc sections a bit. docs/reference/gcr/gcr-sections.txt | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) commit 9eb4a70d9cb9febd24bd9d7bf2ad0dd1aeb3138b Merge: 2b2e921 cc527f8 Author: Stef Walter Date: 2011-07-18 Merge branch 'list-selector' commit 2b2e921ba6508224ed9d7e0e63913c9ce224f310 Author: Stef Walter Date: 2011-07-13 gcr: Better markup for PGP keys. gcr/gcr-gnupg-key.c | 107 +++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 100 insertions(+), 7 deletions(-) commit cc527f893f5eb56337a9853f389d34fa2294eabf Author: Stef Walter Date: 2011-07-12 gcr: Document GcrListSelector docs/reference/gcr/Makefile.am | 7 +++- docs/reference/gcr/gcr-docs.sgml | 1 + docs/reference/gcr/gcr-sections.txt | 20 ++++++++++++++ docs/reference/gcr/gcr-visual-index.xml | 3 ++ docs/reference/gcr/gcr-widgets.c | 39 +++++++++++++++++++++++++++ docs/reference/gcr/images/list-selector.png | Bin 0 -> 10123 bytes gcr/gcr-list-selector.c | 8 +++-- 7 files changed, 73 insertions(+), 5 deletions(-) commit aec404d9926ab1636c747fd24ba5c98c82016607 Author: Stef Walter Date: 2011-07-12 gcr: Add the list selector and live search. * Use live search from Empathy. * Selector has [x] boxes next to each object. https://bugzilla.gnome.org/show_bug.cgi?id=654484 gcr/Makefile.am | 3 + gcr/gcr-list-selector-private.h | 40 +++ gcr/gcr-list-selector.c | 456 +++++++++++++++++++++++++++ gcr/gcr-list-selector.h | 73 +++++ gcr/gcr-live-search.c | 651 +++++++++++++++++++++++++++++++++++++++ gcr/gcr-live-search.h | 85 +++++ gcr/gcr-marshal.list | 1 + gcr/gcr.h | 1 + gcr/tests/frob-gnupg-selector.c | 18 +- 9 files changed, 1324 insertions(+), 4 deletions(-) commit f614b407f3dfa2ed256eb9ab0b07938512b1a3cd Author: Stef Walter Date: 2011-07-13 gcr: Better markup for PGP keys. gcr/gcr-gnupg-key.c | 104 +++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 97 insertions(+), 7 deletions(-) commit 6d79a71040933c702f834fa2e0253410a9168e18 Author: Stef Walter Date: 2011-07-13 Fix some distcheck problems gcr/tests/Makefile.am | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit cd568d943fbeed82bcd02102213ff672d6f3985d Author: Stef Walter Date: 2011-07-13 gcr: Update doc images * And fix some issues with building shooter executable docs/reference/gcr/Makefile.am | 6 +++--- docs/reference/gcr/gcr-shooter.c | 6 +----- docs/reference/gcr/images/certificate-widget.png | Bin 17514 -> 15090 bytes docs/reference/gcr/images/combo-selector.png | Bin 7855 -> 7065 bytes docs/reference/gcr/images/key-widget.png | Bin 8311 -> 10159 bytes docs/reference/gcr/images/tree-selector.png | Bin 11930 -> 10628 bytes 6 files changed, 4 insertions(+), 8 deletions(-) commit 90b6deb471c78b3dfda3ad4f9dbd3e8bd626bf4f Author: Stef Walter Date: 2011-07-13 gcr: Add icons for key and keypair https://bugzilla.gnome.org/show_bug.cgi?id=651862 gcr/Makefile.am | 2 +- gcr/gcr-gnupg-key.c | 8 +- gcr/gcr-icons.c | 3 +- gcr/gcr-icons.h | 3 +- gcr/gcr-key-renderer.c | 2 +- gcr/icons/16x16/Makefile.am | 10 + gcr/icons/16x16/gcr-key-pair.png | Bin 0 -> 878 bytes gcr/icons/16x16/gcr-key.png | Bin 0 -> 675 bytes gcr/icons/22x22/Makefile.am | 8 + gcr/icons/24x24/Makefile.am | 10 + gcr/icons/24x24/gcr-key-pair.png | Bin 0 -> 1221 bytes gcr/icons/24x24/gcr-key.png | Bin 0 -> 875 bytes gcr/icons/32x32/Makefile.am | 10 + gcr/icons/32x32/gcr-key-pair.png | Bin 0 -> 1882 bytes gcr/icons/32x32/gcr-key.png | Bin 0 -> 1201 bytes gcr/icons/48x48/Makefile.am | 10 + gcr/icons/48x48/gcr-key-pair.png | Bin 0 -> 3480 bytes gcr/icons/48x48/gcr-key.png | Bin 0 -> 2087 bytes gcr/icons/Makefile.am | 13 + gcr/icons/key-and-keypair.svg | 3921 ++++++++++++++++++++++++++++++++++++++ 20 files changed, 3994 insertions(+), 6 deletions(-) commit 97848afe580ab7e31ae487871ad06816a897b1aa Author: Stef Walter Date: 2011-07-12 gcr: Review fixes for gnupg icon support * Reviewed by Phillip Withnall * Memory leak fixes. * Documentation * Other minor bits. gcr/gcr-gnupg-collection.c | 5 ++++ gcr/gcr-gnupg-key.c | 38 ++++++++++++++++++++++++++++-------- gcr/gcr-gnupg-util.c | 12 +++++++++++ gcr/gcr-memory-icon.c | 34 +++++++++++++++++++++++++++++++- gcr/gcr-memory-icon.h | 2 +- gcr/gcr-record.c | 10 +++++++++ gcr/tests/test-gnupg-collection.c | 5 ++++ gcr/tests/test-memory-icon.c | 2 +- 8 files changed, 95 insertions(+), 13 deletions(-) commit 356b4decfa47efc1e0a97b82b77b37cd0163ea73 Author: Stef Walter Date: 2011-05-13 gcr: Display photo as icon for Gnupg keys. * Load the first photo uid and use as icon for Gnupg Keys. * Add GcrMemoryIcon which is a GLoadableIcon which loads from data in memory. https://bugzilla.gnome.org/show_bug.cgi?id=650433 docs/reference/gcr/gcr-sections.txt | 10 ++ gcr/Makefile.am | 1 + gcr/gcr-gnupg-key.c | 85 ++++++++++++++- gcr/gcr-gnupg-key.h | 2 + gcr/gcr-memory-icon.c | 195 +++++++++++++++++++++++++++++++++ gcr/gcr-memory-icon.h | 67 +++++++++++ gcr/gcr-record.c | 14 +++ gcr/gcr-record.h | 4 + gcr/tests/Makefile.am | 1 + gcr/tests/test-memory-icon.c | 206 +++++++++++++++++++++++++++++++++++ gcr/tests/test-record.c | 18 +++- 11 files changed, 598 insertions(+), 5 deletions(-) commit ccf8557422c72aa81c121ae696ce4706ee993510 Author: Stef Walter Date: 2011-05-12 gcr: Implement loading of attributes in GcrGnupgCollection * These attributes can contain photo ids. * Add various definitions for dealing with attributes. * Since we like everything in the --with-colons gnupg format, we implement our own record type 'xa1' and cram the attribute (photo id) into there, along with all data. https://bugzilla.gnome.org/show_bug.cgi?id=650433 docs/reference/gcr/gcr-sections.txt | 6 ++ gcr/Makefile.am | 1 + gcr/gcr-gnupg-collection.c | 161 ++++++++++++++++++++++++++++++++--- gcr/gcr-gnupg-key.c | 11 +++ gcr/gcr-gnupg-key.h | 2 + gcr/gcr-gnupg-util.c | 102 ++++++++++++++++++++++ gcr/gcr-gnupg-util.h | 41 +++++++++ gcr/gcr-record.h | 43 +++++++++- gcr/tests/test-gnupg-collection.c | 45 +++++++++-- 9 files changed, 393 insertions(+), 19 deletions(-) commit ea92ea4093127d434af5725ba0a31d8beaeef8a2 Merge: e000c83 68e1dea Author: Stef Walter Date: 2011-07-12 Merge branch 'gnupg-process' commit 68e1dea0a165cf7752b00a9d1e987edff23e8017 Author: Stef Walter Date: 2011-07-12 gcr: Review changes for GcrGnupgProcess from Phillip Withnall * Better docs * Disconnect signal handlers properly. * Cleanup tests. * Other bits gcr/gcr-gnupg-collection.c | 26 +++-- gcr/gcr-gnupg-process.c | 85 ++++++++++++--- gcr/gcr-gnupg-process.h | 3 +- .../files/gnupg-mock/mock-status-and-attribute | 2 +- gcr/tests/test-gnupg-process.c | 117 +++++++++++++++++--- 5 files changed, 193 insertions(+), 40 deletions(-) commit f80f64c12c83e25b7d9ef04119ed8754b8f6ff93 Author: Stef Walter Date: 2011-05-12 gcr: Refactor gnupg process execution into its own class. * Support getting user attribute data from keyring. * Support getting status messages from gpg. * Better cancellation api. * Control over LOCALE https://bugzilla.gnome.org/show_bug.cgi?id=650336 docs/reference/gcr/gcr-sections.txt | 12 +- gcr/Makefile.am | 1 + gcr/gcr-gnupg-collection.c | 156 ++--- gcr/gcr-gnupg-collection.h | 10 +- gcr/gcr-gnupg-process.c | 866 ++++++++++++++++++++ gcr/gcr-gnupg-process.h | 88 ++ gcr/gcr-marshal.list | 2 + gcr/tests/Makefile.am | 3 +- gcr/tests/files/gnupg-mock/mock-arguments-environ | 22 + gcr/tests/files/gnupg-mock/mock-fail-exit | 6 + gcr/tests/files/gnupg-mock/mock-fail-signal | 8 + gcr/tests/files/gnupg-mock/mock-simple-error | 9 + gcr/tests/files/gnupg-mock/mock-simple-output | 8 + .../files/gnupg-mock/mock-status-and-attribute | 34 + gcr/tests/files/gnupg-mock/mock-status-and-output | 24 + gcr/tests/files/gnupg-mock/mock-with-homedir | 22 + gcr/tests/test-gnupg-collection.c | 1 - gcr/tests/test-gnupg-process.c | 446 ++++++++++ 18 files changed, 1608 insertions(+), 110 deletions(-) commit e000c8359b771b308d328d2517af7b0bbb18ffc6 Author: Stef Walter Date: 2011-07-09 gcr: Fixes for the gcr-3.pc file * Proper Name: field * Fix GTK dependency gcr/gcr.pc.in | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 9c8b7b6e9df99299b5cd1121c4c2ddfc79b89e2c Author: Stef Walter Date: 2011-07-09 gck: Dump major version number due to recent API refactoring. * API is not yet stable, but we increase the major version so that we don't piss off packagers. docs/reference/gcr/Makefile.am | 2 +- gck/Makefile.am | 15 +++++++------ gck/gck.pc.in | 6 ++-- gcr/Makefile.am | 2 +- gcr/libgcr.symbols | 46 +++++++++++++++++++++++++++++++++++++++- 5 files changed, 58 insertions(+), 13 deletions(-) commit ab8c61d32104f6c8d5c29e84ac6352a7b6d4f861 Author: Stef Walter Date: 2011-07-08 More build fixes after recent changes. * Use proper library names for gcr * Use lib64 properly for pam modules when default is configured. gcr/Makefile.am | 4 ++-- gcr/gcr.pc.in | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) commit ade6c524287423026d9bf359f2af02c3c30563c2 Author: Stef Walter Date: 2011-05-13 Remove support for GTK+2. * Simplifies things going forward. Now that GTK+3 is in stable distros we can depend on it. * This was raised on the mailing list a while back. https://bugzilla.gnome.org/show_bug.cgi?id=650144 docs/reference/gcr/Makefile.am | 2 +- gcr/Makefile.am | 20 +++++++------- gcr/gcr-display-scrolled.c | 6 ---- gcr/gcr-display-view.c | 56 ---------------------------------------- 4 files changed, 11 insertions(+), 73 deletions(-) commit 727ec47a63604da32058c8784cd21c60c2d60fa1 Author: Stef Walter Date: 2011-07-06 gck: Update GckUriFlags to match p11-kit gck/gck-modules.c | 6 +++- gck/gck-uri.c | 21 ++++++++++++------ gck/gck.h | 18 ++++++++++++--- gck/tests/test-gck-uri.c | 52 +++++++++++++++++++++++----------------------- 4 files changed, 58 insertions(+), 39 deletions(-) commit 39344e506c679be793e32031c2df099c736d8dba Author: Stef Walter Date: 2011-04-05 Use p11-kit to lookup trust uris. gcr/Makefile.am | 1 + gcr/gcr-library.c | 38 +++++++++++++++++++++++++++----------- 2 files changed, 28 insertions(+), 11 deletions(-) commit eae3bfcd68988bab401510f686bd9c718ec1fa6e Author: Stef Walter Date: 2011-04-05 Remove extraneous argument from gck_module_new and gck_module_initialize * Since the signature of these functions changed anyway (API not yet stable, we are going to clean them up a bit more. * The xxx_full versions may be needed in the future if more options show up. gck/gck-module.c | 10 ++++------ gck/gck-modules.c | 5 ++--- gck/gck-private.h | 3 +-- gck/gck.h | 6 ++---- gck/tests/test-gck-crypto.c | 2 +- gck/tests/test-gck-enumerator.c | 2 +- gck/tests/test-gck-module.c | 8 ++++---- gck/tests/test-gck-modules.c | 2 +- gck/tests/test-gck-object.c | 2 +- gck/tests/test-gck-session.c | 2 +- gck/tests/test-gck-slot.c | 4 ++-- gcr/gcr-library.c | 4 ++-- gcr/tests/test-certificate-chain.c | 2 +- gcr/tests/test-pkcs11-certificate.c | 2 +- gcr/tests/test-trust.c | 2 +- 15 files changed, 25 insertions(+), 31 deletions(-) commit 6854ac2de334708e3c2f62e36c99ea6655507d6e Author: Stef Walter Date: 2011-02-21 gck: Use p11-kit for module loading, messages, and uri parsing. docs/reference/gck/gck-sections.txt | 10 +- gck/Makefile.am | 3 + gck/gck-enumerator.c | 12 +- gck/gck-misc.c | 212 ++++------------- gck/gck-module.c | 131 +++++------ gck/gck-modules.c | 136 +++-------- gck/gck-private.h | 21 +- gck/gck-slot.c | 147 ++++++++---- gck/gck-uri.c | 456 +++++++++------------------------- gck/gck.h | 52 +++-- gck/gck.pc.in | 2 +- gck/tests/test-gck-crypto.c | 2 +- gck/tests/test-gck-enumerator.c | 64 +++--- gck/tests/test-gck-module.c | 6 +- gck/tests/test-gck-modules.c | 2 +- gck/tests/test-gck-object.c | 2 +- gck/tests/test-gck-session.c | 2 +- gck/tests/test-gck-slot.c | 2 +- gck/tests/test-gck-uri.c | 320 ++++++++++++------------ gcr/Makefile.am | 6 +- gcr/gcr-collection-model.c | 4 +- gcr/gcr-library.c | 6 +- gcr/gcr-library.h | 2 +- gcr/gcr.pc.in | 2 +- 24 files changed, 636 insertions(+), 966 deletions(-) commit adb706c84cc5bc75a97347942d2c250e527081c8 Merge: c035fc7 eb3eb51 Author: Stef Walter Date: 2011-06-07 Merge branch 'gnome-3-0' commit c035fc7f56f0190f942fb30a530763f220406abc Merge: b31945a 1034f9a Author: Stef Walter Date: 2011-06-04 Merge remote-tracking branch 'stefw/display-extensions' commit b31945a1fb55c38ef660eb78b5c198fa0994b8a4 Merge: 7c8c92a eb3eb51 Author: Stef Walter Date: 2011-05-31 Merge branch 'gnome-3-0' commit eb3eb51c85a6ae016f646e097bede5d995572efb Author: Stef Walter Date: 2011-05-30 gcr: Login properly when importing private keys. gcr/gcr-importer.c | 16 ++++++++++++++-- gcr/gcr-parser.c | 11 +++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) commit edd1f8f86001f546b52f661a0413e25f46808344 Author: Stef Walter Date: 2011-05-30 gcr: Fix warnings using the importer. gcr/gcr-importer.c | 2 +- gcr/gcr-parser.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 7c8c92a725803a78888ed4a7d83af57514f93244 Merge: 9d3ad04 96ef605 Author: Stef Walter Date: 2011-05-26 Merge branch 'gnome-3-0' Conflicts: NEWS configure.ac docs/reference/gcr/Makefile.am docs/reference/gcr/gcr-visual-index.xml docs/reference/gcr/gcr-widgets.c docs/reference/gcr/images/key-widget.png gcr/Makefile.am commit 1034f9afc591674647755273c074ebe007c5ee86 Author: Stef Walter Date: 2011-04-06 gcr: Parse and display certificate extensions. * Subject Alt Name * Basic Constraints * Extended Key Usage * Key Usage * Subject Key Identifier https://bugzilla.gnome.org/show_bug.cgi?id=646907 egg/egg-oid.c | 31 +++-- gcr/Makefile.am | 1 + gcr/gcr-certificate-extensions.c | 269 ++++++++++++++++++++++++++++++++++++++ gcr/gcr-certificate-extensions.h | 88 +++++++++++++ gcr/gcr-certificate-renderer.c | 216 ++++++++++++++++++++++++++++-- gcr/gcr-display-view.h | 2 + 6 files changed, 577 insertions(+), 30 deletions(-) commit 9d3ad04deff9e25e49812857e4461ca7f263cf13 Merge: 2dcd037 6df0c53 Author: Stef Walter Date: 2011-05-24 Merge branch 'key-fingerprints' Conflicts: gcr/Makefile.am commit 2dcd037ac4919cdcfa5ca0e76c69c0c0197cbe91 Merge: af983cb acc5e71 Author: Stef Walter Date: 2011-05-24 Merge branch 'display-hex' commit af983cb17b14c92ac4cf118d48402e58da904f3e Merge: 198c099 0c5f590 Author: Stef Walter Date: 2011-05-24 Merge branch 'split-selector' Conflicts: gcr/Makefile.am gcr/gcr-collection-model.c gcr/gcr-tree-selector.c commit 198c0993d8622634db5263803967602fdce6a034 Author: Stef Walter Date: 2011-05-17 gcr: Fix ununitialized memory in GcrColumns. gcr/gcr-collection-model.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 96ef605a5173972e607baf3764184b68f386ae05 Author: Stef Walter Date: 2011-05-19 Release version 3.0.2 gcr/libgcr.symbols | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit ee6146d739573140e750e5c2dca8ce049db522c1 Author: Stef Walter Date: 2011-05-19 gcr: Export list of symbols when making distribution. gcr/Makefile.am | 10 +++- gcr/libgcr.symbols | 138 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 146 insertions(+), 2 deletions(-) commit b44538051517c407d7838794dadb37141fc6d4c5 Author: Stef Walter Date: 2011-05-19 Revert "Bump libtool version of gnome-keyring library for 3.0" This reverts commit aebb7bf381694c3b72e456c2c1d19c0853d18836. * We also add back the deprecated symbol, and just leave it hanging around. gcr/gcr-library.c | 9 +++++++++ gcr/gcr-types.h | 8 ++++++++ 2 files changed, 17 insertions(+), 0 deletions(-) commit 25d0a9e105846abfad2cad93eb3d61c4b10173d4 Author: Stef Walter Date: 2011-05-16 gcr: Cleanup GcrRecord after review. * Use G_DEFINE_BOXED_TYPE * Fix some test corner cases. * Locale independent integer parsing. https://bugzilla.gnome.org/show_bug.cgi?id=650255 gcr/gcr-record.c | 22 +++------------------- gcr/gcr-record.h | 4 ++-- gcr/tests/test-record.c | 4 ++++ 3 files changed, 9 insertions(+), 21 deletions(-) commit f3de93ddedafeb5b955ab07caff0c7f5ae1fe01f Author: Stef Walter Date: 2011-05-13 gcr: More record functionality. * Add boxed type for records * Allow parsing of space delimited records. * Lookup unsigned integers in records. * More tests for GcrRecord https://bugzilla.gnome.org/show_bug.cgi?id=650255 docs/reference/gcr/gcr-sections.txt | 1 + gcr/gcr-record.c | 138 +++++++++++++++++++++++++++++++---- gcr/gcr-record.h | 15 ++++ gcr/tests/test-record.c | 122 ++++++++++++++++++++++++++++++- 4 files changed, 257 insertions(+), 19 deletions(-) commit 1f2d900fbb6ab30f4ff67d2bdafb18237ceb6c3d Author: Stef Walter Date: 2011-05-15 gcr: Fix 'make dist' of doc directory. docs/reference/gcr/Makefile.am | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 20d401eb61c25b950cf74676be93f666fda6e399 Author: Stef Walter Date: 2011-05-12 gcr: Rename GcrColons to GcrRecord * These records can be used for other purposes as well. Can represent any data with uniform single character delimiters docs/reference/gcr/gcr-sections.txt | 16 ++-- gcr/Makefile.am | 2 +- gcr/gcr-colons.c | 152 ----------------------------- gcr/gcr-colons.h | 106 -------------------- gcr/gcr-gnupg-collection.c | 80 ++++++++-------- gcr/gcr-gnupg-key.c | 162 ++++++++++++++++---------------- gcr/gcr-gnupg-key.h | 14 ++-- gcr/gcr-record.c | 162 +++++++++++++++++++++++++++++++ gcr/gcr-record.h | 109 +++++++++++++++++++++ gcr/tests/Makefile.am | 2 +- gcr/tests/test-colons.c | 180 ----------------------------------- gcr/tests/test-gnupg-collection.c | 8 +- gcr/tests/test-gnupg-key.c | 94 +++++++++--------- gcr/tests/test-record.c | 180 +++++++++++++++++++++++++++++++++++ 14 files changed, 641 insertions(+), 626 deletions(-) commit 408e65d0ca76da88e3375c128975756061895cac Author: Stef Walter Date: 2011-05-15 gcr: Fix race condition in gnupg collection async tests. gcr/tests/test-gnupg-collection.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit b64e26b2c45698fff0bf0ffb3d600df6d64363f5 Author: Stef Walter Date: 2011-05-15 gcr: Stop tests when a failure occurs gcr/tests/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 5afef86b4b11d253063bd2f2c32d90e1b2abd6fe Author: Stef Walter Date: 2011-05-15 gcr: Fix tests for GcrGnupgKey keyid and short-keyid properties gcr/tests/test-gnupg-key.c | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) commit 1acceb1bde3a87cff89a1beceb434ae3f2b82caa Author: Stef Walter Date: 2011-05-15 gcr: Fix annotation of _gcr_gnupg_key_get_secret_dataset gcr/gcr-gnupg-key.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit dbcbf9a091dddcadf28e1ba23576fee33311d47c Author: Stef Walter Date: 2011-05-15 gcr: Fixes and debugging for GcrGnupgCollection. * Comments and review changes. * Add tests for collection loading and reloading. * Debug logging * Remove racy pid tracking. Will solve this in another branch. https://bugzilla.gnome.org/show_bug.cgi?id=648019 gcr/gcr-debug.c | 1 + gcr/gcr-debug.h | 1 + gcr/gcr-gnupg-collection.c | 61 +++++++------ gcr/tests/Makefile.am | 1 + gcr/tests/files/gnupg-homedir/pubring.gpg | Bin 19689 -> 21969 bytes gcr/tests/files/gnupg-homedir/secring.gpg | Bin 0 -> 4398 bytes gcr/tests/files/gnupg-homedir/trustdb.gpg | Bin 1200 -> 1400 bytes gcr/tests/test-gnupg-collection.c | 136 ++++++++++++++++++++++++++--- testing/gnupg-example/random_seed | Bin 600 -> 0 bytes 9 files changed, 161 insertions(+), 39 deletions(-) commit 6d2b3acf8fd8153a834b2ee479b9b12dc561bb89 Author: Stef Walter Date: 2011-05-15 gcr: Make GcrGnupgKey::keyid full keyid and add short-keyid for display. * More documentation fixes and cleanup. https://bugzilla.gnome.org/show_bug.cgi?id=648019 gcr/gcr-gnupg-key.c | 42 ++++++++++++++++++++++++++++++++++-------- gcr/gcr-gnupg-key.h | 2 ++ gcr/tests/test-gnupg-key.c | 31 +++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+), 8 deletions(-) commit 6223b6023e718f3bf8a5a4882039349a54941ea0 Author: Stef Walter Date: 2011-05-15 gcr: Documentation and naming fixes. * Fixes after review. https://bugzilla.gnome.org/show_bug.cgi?id=648019 gcr/gcr-gnupg-collection.c | 45 +++++++++++++++++++------------- gcr/gcr-gnupg-key.c | 61 +++++++++++++++++++++++++++++++------------ 2 files changed, 71 insertions(+), 35 deletions(-) commit ab51bef700f52f75656079e3f53a130729db7154 Author: Stef Walter Date: 2011-05-14 gcr: Build GcrCertificateDetailsWidget and GcrCertificateBasicsWidget properly. * Forgot to inlcude these in the build. gcr/Makefile.am | 2 ++ gcr/gcr-certificate-details-widget.h | 1 + 2 files changed, 3 insertions(+), 0 deletions(-) commit 6df0c53e32acbc42f1658a28e65f62cd28aeeff4 Author: Stef Walter Date: 2011-04-09 gcr: Fix creation of fingerprints, make tests pass. * Fix encoding of test files. * Always encode NULL in RSA keys as the parameter. egg/pk.asn | 2 ++ gcr/gcr-fingerprint.c | 15 +++++++++++++-- gcr/tests/files/client.crt | Bin 1054 -> 736 bytes gcr/tests/files/client.pem | 18 ++++++++++++++++++ gcr/tests/files/generic-dsa.crt | Bin 1298 -> 918 bytes gcr/tests/files/generic-dsa.pem | 22 ++++++++++++++++++++++ gcr/tests/test-fingerprint.c | 8 ++++---- 7 files changed, 59 insertions(+), 6 deletions(-) commit 4c6ddeeb70eb1ac0ac0bab06a3cd57937c52e95e Author: Stef Walter Date: 2011-04-09 egg: Add support for encoding NULL in ASN.1 egg/egg-asn1x.c | 13 +++++++++++++ egg/egg-asn1x.h | 2 ++ egg/tests/test-asn1.c | 25 +++++++++++++++++++++++++ egg/tests/test.asn | 2 ++ 4 files changed, 42 insertions(+), 0 deletions(-) commit 2744f207a2fd533a13f3582744f133817ed69adb Author: Stef Walter Date: 2011-04-08 gcr: Add tests for creation of fingerprints gcr/tests/Makefile.am | 1 + gcr/tests/files/client.crt | 18 ++++ gcr/tests/files/client.key | 27 ++++++ gcr/tests/files/generic-dsa.crt | 22 +++++ gcr/tests/files/generic-dsa.key | 12 +++ gcr/tests/test-fingerprint.c | 181 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 261 insertions(+), 0 deletions(-) commit e4d6a7678a58f88e9b834218b78985e2ecc2630d Author: Stef Walter Date: 2011-04-06 gcr: Make key widget scroll and size properly. Also fix the test program. gcr/gcr-key-widget.c | 13 +++---------- 1 files changed, 3 insertions(+), 10 deletions(-) commit 20fb5ef13d27a69fcdd9fc8f74d53475b5b88a47 Author: Stef Walter Date: 2011-03-09 Implement calculation of fingerprints for keys. These are derived from subjectPublicKeyInfo https://bugzilla.gnome.org/show_bug.cgi?id=646905 egg/egg-asn1x.c | 4 +- egg/egg-asn1x.h | 2 +- gcr/Makefile.am | 3 +- gcr/gcr-certificate-renderer.c | 19 ++- gcr/gcr-fingerprint.c | 255 ++++++++++++++++++++++++++++++++++++++++ gcr/gcr-fingerprint.h | 40 ++++++ gcr/gcr-key-renderer.c | 20 +++- 7 files changed, 331 insertions(+), 12 deletions(-) commit acc5e71158d304d5a3ff4d7b0275a8aab0a3d029 Author: Stef Walter Date: 2011-04-06 gcr: Add _gcr_display_view_append_hex() function. Displays value as a hex string, rather than just converting to hex everywhere and duplicating the same code. https://bugzilla.gnome.org/show_bug.cgi?id=646901 gcr/gcr-certificate-renderer.c | 31 ++++++++----------------------- gcr/gcr-display-view.c | 16 ++++++++++++---- gcr/gcr-display-view.h | 6 ++++++ gcr/gcr-key-renderer.c | 2 -- 4 files changed, 26 insertions(+), 29 deletions(-) commit 66be57fc73a89a657b3e63272fb62f1f991f6c63 Author: Stef Walter Date: 2011-05-12 gcr: More testing for secret gnupg keys. * Create an example keyring * Change signature of _gcr_gnupg_key_new so it also accepts the secret part. https://bugzilla.gnome.org/show_bug.cgi?id=648019 gcr/gcr-gnupg-collection.c | 2 +- gcr/gcr-gnupg-key.c | 50 +++++++++++++++++++++++++++----- gcr/gcr-gnupg-key.h | 3 +- gcr/tests/test-gnupg-key.c | 56 +++++++++++++++++++++++++++++++++++-- testing/gnupg-example/pubring.gpg | Bin 0 -> 21969 bytes testing/gnupg-example/random_seed | Bin 0 -> 600 bytes testing/gnupg-example/secring.gpg | Bin 0 -> 4398 bytes testing/gnupg-example/trustdb.gpg | Bin 0 -> 1400 bytes 8 files changed, 98 insertions(+), 13 deletions(-) commit 02865661faac5da5bb463c47da6bfa91f2b35774 Author: Stef Walter Date: 2011-04-26 gcr: Add support for listing secret gnupg keys. * Also add support to GcrGnupgKey for holding the secret info. https://bugzilla.gnome.org/show_bug.cgi?id=648019 docs/reference/gcr/gcr-sections.txt | 2 + gcr/gcr-colons.h | 9 ++ gcr/gcr-gnupg-collection.c | 186 +++++++++++++++++++++++++---------- gcr/gcr-gnupg-key.c | 109 ++++++++++++++++----- gcr/gcr-gnupg-key.h | 9 ++- 5 files changed, 236 insertions(+), 79 deletions(-) commit 977a3246705d50c3974398162a3b775438a90765 Author: Stef Walter Date: 2011-05-13 gcr: Fix problem loading translation for NULL column names. * Just use empty string. gcr/gcr-selector.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 26404d68f352841ad4b023d1b4804eb8eddcd309 Author: Stef Walter Date: 2011-05-12 gcr: Fix logic issue in collection model * Was refering to the wrong column. gcr/gcr-collection-model.c | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-) commit 0c5f590204812596b729e4885e719e075d0de871 Author: Stef Walter Date: 2011-05-11 gcr: Split GcrSelector into GcrComboSelector and GcrTreeSelector * GcrComboSelector allows selecting one object at a time and uses 'markup' property to display the object. * GcrTreeSelector uses various columns, and a checkbox so that multiple objects can be selected at once. * Add images for both of the above. * Derive directly from GtkComboBox and GtkTreeView respectively. docs/reference/gcr/Makefile.am | 10 +- docs/reference/gcr/gcr-docs.sgml | 4 +- docs/reference/gcr/gcr-sections.txt | 60 ++- docs/reference/gcr/gcr-visual-index.xml | 6 + docs/reference/gcr/gcr-widgets.c | 99 ++++- docs/reference/gcr/images/combo-selector.png | Bin 0 -> 7855 bytes docs/reference/gcr/images/key-widget.png | Bin 8634 -> 8311 bytes docs/reference/gcr/images/tree-selector.png | Bin 0 -> 11930 bytes gcr/Makefile.am | 6 +- gcr/gcr-certificate.c | 2 +- gcr/gcr-collection-model.c | 73 +++- gcr/gcr-collection-model.h | 9 +- gcr/gcr-column.c | 4 +- gcr/gcr-combo-selector.c | 272 ++++++++++++ gcr/gcr-combo-selector.h | 69 ++++ gcr/gcr-selector.c | 566 -------------------------- gcr/gcr-selector.h | 69 ---- gcr/gcr-tree-selector.c | 464 +++++++++++++++++++++ gcr/gcr-tree-selector.h | 70 ++++ gcr/gcr.h | 3 +- gcr/tests/Makefile.am | 5 +- gcr/tests/frob-combo-selector.c | 117 ++++++ gcr/tests/frob-gnupg-selector.c | 14 +- gcr/tests/frob-selector.c | 106 ----- gcr/tests/frob-tree-selector.c | 124 ++++++ 25 files changed, 1354 insertions(+), 798 deletions(-) commit b974aec2724946dec9d1c6f4d49a7f41e215c384 Author: Stef Walter Date: 2011-05-10 docs: Add images for gcr widgets. docs/reference/gcr/Makefile.am | 35 ++- docs/reference/gcr/gcr-docs.sgml | 4 + docs/reference/gcr/gcr-shooter.c | 470 ++++++++++++++++++++++ docs/reference/gcr/gcr-shooter.h | 23 + docs/reference/gcr/gcr-visual-index.xml | 12 + docs/reference/gcr/gcr-widgets.c | 86 ++++ docs/reference/gcr/images/certificate-widget.png | Bin 0 -> 17514 bytes docs/reference/gcr/images/key-widget.png | Bin 0 -> 8634 bytes gcr/tests/files/cacert.org.cer | Bin 0 -> 1857 bytes 9 files changed, 628 insertions(+), 2 deletions(-) commit 53fa7f694fc3fec216d71765af17b5c5fe242c14 Author: Stef Walter Date: 2011-05-10 docs: Add images for gcr widgets. docs/reference/gcr/Makefile.am | 35 ++- docs/reference/gcr/gcr-docs.sgml | 4 + docs/reference/gcr/gcr-shooter.c | 470 ++++++++++++++++++++++ docs/reference/gcr/gcr-shooter.h | 23 + docs/reference/gcr/gcr-visual-index.xml | 12 + docs/reference/gcr/gcr-widgets.c | 86 ++++ docs/reference/gcr/images/certificate-widget.png | Bin 0 -> 17514 bytes docs/reference/gcr/images/key-widget.png | Bin 0 -> 8634 bytes gcr/tests/files/cacert.org.cer | Bin 0 -> 1857 bytes 9 files changed, 628 insertions(+), 2 deletions(-) commit d859db4d4e4f5b412aeca862bc5a43d7f0b7bb88 Merge: f8fdfd6 df18a41 Author: Stef Walter Date: 2011-05-09 Merge branch 'gnome-3-0' Conflicts: gck/Makefile.am gcr/Makefile.am commit df18a413f0d29947bf6b9e071f8e5a7ddd32c03d Author: Stef Walter Date: 2011-05-09 Fix build with --no-add-needed https://bugzilla.gnome.org/show_bug.cgi?id=649754 gck/Makefile.am | 4 ++-- gcr/Makefile.am | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) commit f8fdfd68c07d89d4fc50f10a4eb45408efc8f992 Author: Stef Walter Date: 2011-04-27 Fix Makefiles so testable libraries are rebuilt when source changes. gck/Makefile.am | 4 ++-- gcr/Makefile.am | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) commit b8d8ed2ca8ec9653944647b977ffb2d54de32f6f Merge: 17c9fc8 8274011 Author: Stef Walter Date: 2011-04-25 Merge branch 'gnome-3-0' Conflicts: gcr/Makefile.am gcr/tests/Makefile.am commit 82740115cb937e41d02e72698cc10330af10f370 Author: Stef Walter Date: 2011-04-24 Modernize the remainder of the tests. * Bring up to date with gtester running and individual binaries. * Make the tests run in make distcheck egg/tests/Makefile.am | 10 +++++++--- egg/tests/test-asn1.c | 10 +++++----- egg/tests/test-asn1x.c | 23 ++++++++++++----------- egg/tests/test-dh.c | 6 +++--- egg/tests/test-dn.c | 12 ++++++------ egg/tests/test-hex.c | 2 +- egg/tests/test-hkdf.c | 6 +++--- egg/tests/test-oid.c | 2 +- egg/tests/test-openssl.c | 10 +++++----- egg/tests/test-padding.c | 4 ++-- egg/tests/test-secmem.c | 2 +- egg/tests/test-symkey.c | 6 +++--- gck/tests/Makefile.am | 8 +++++--- gck/tests/test-gck-crypto.c | 8 +------- gck/tests/test-gck-enumerator.c | 8 +------- gck/tests/test-gck-module.c | 10 ++-------- gck/tests/test-gck-modules.c | 8 +------- gck/tests/test-gck-object.c | 8 +------- gck/tests/test-gck-session.c | 8 +------- gck/tests/test-gck-slot.c | 8 +------- gck/tests/test-gck-uri.c | 6 ------ gcr/tests/Makefile.am | 8 ++++---- gcr/tests/frob-certificate.c | 2 +- gcr/tests/frob-key.c | 2 +- gcr/tests/test-certificate-chain.c | 12 +++--------- gcr/tests/test-certificate.c | 12 +++--------- gcr/tests/test-parser.c | 10 ++-------- gcr/tests/test-pkcs11-certificate.c | 12 +++--------- gcr/tests/test-simple-certificate.c | 10 ++-------- gcr/tests/test-trust.c | 10 ++-------- testing/Makefile.am | 18 +----------------- 31 files changed, 84 insertions(+), 177 deletions(-) commit 1cc50829a772cc3468afd14fb4d70d9ed44ad110 Author: Stef Walter Date: 2011-04-23 Better testing configure options. * --enable-tests=yes/no/full * With 'full' the testing hooks in gnome-keyring-daemon are built * Different libraries are built in testable and non-testable versions. egg/tests/Makefile.am | 4 +--- egg/tests/test-dh.c | 7 +++++-- gck/Makefile.am | 21 +++++++++++++-------- gck/gck-mock.h | 6 +----- gck/gck-test.h | 4 ---- gck/tests/Makefile.am | 13 ++++++------- gcr/Makefile.am | 13 ++++++++----- gcr/tests/Makefile.am | 10 ++++------ 8 files changed, 38 insertions(+), 40 deletions(-) commit 17c9fc8960ec8bf651bb59baa02524fa863f3864 Author: Stef Walter Date: 2011-04-21 gcr: Fix build warning. gcr/gcr-colons.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 4edf9c53eaf1b818f9788a83b47548c9882a1c2e Author: Stef Walter Date: 2011-04-15 gcr: Implement tool for playing with the parser gcr/tests/Makefile.am | 1 + gcr/tests/frob-parser.c | 134 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 135 insertions(+), 0 deletions(-) commit d462576ced933c6cc0e1794c1267c4230cae935d Merge: 74efd54 43f8ea7 Author: Stef Walter Date: 2011-04-21 Merge branch 'gnome-3-0' commit 43f8ea7333b69e5a644be100499f9744d288f199 Author: Stef Walter Date: 2011-04-21 gck: Fix linking issue due to type in Makefile. https://bugzilla.gnome.org/show_bug.cgi?id=648338 gck/tests/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 22c67425443fb120112f3427aff90c0592ff2ae5 Author: Stef Walter Date: 2011-04-20 egg: Run the hkdf tests * These seem to have dropped out during a previous refactoring egg/tests/Makefile.am | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 18d9f4cf0451d529ef6820e5074e126426522186 Author: Marc Plano-Lesay Date: 2011-04-09 fix unused-but-set-variable warnings https://bugzilla.gnome.org/show_bug.cgi?id=647315 egg/egg-hkdf.c | 4 ++-- gck/gck-slot.c | 3 --- gcr/tests/test-parser.c | 2 ++ 3 files changed, 4 insertions(+), 5 deletions(-) commit 94c68a22b76e5dfcd22dc7b6346e5ab9d1cd9c4b Author: Kjartan Maraas Date: 2011-03-29 Remove #include from headers to make sure it's not included more than once egg/egg-libgcrypt.h | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit 74efd547976f0406d1f6531ea49be240dd0d3813 Author: Kjartan Maraas Date: 2011-03-29 Remove #include from headers to make sure it's not included more than once egg/egg-libgcrypt.h | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit a28804ce9e789d2a8b50ee00284386124ef5e6b5 Author: Stef Walter Date: 2011-04-19 gcr: Add review fixes and documentation. https://bugzilla.gnome.org/show_bug.cgi?id=647885 docs/reference/gcr/gcr-sections.txt | 31 ++++++++++ gcr/gcr-colons.c | 27 ++++----- gcr/gcr-colons.h | 8 +-- gcr/gcr-debug.c | 1 + gcr/gcr-debug.h | 1 + gcr/gcr-gnupg-collection.c | 110 ++++++++++++++++++++++------------ gcr/gcr-gnupg-key.c | 51 ++++++++++++++-- gcr/gcr-library.c | 8 +++ gcr/gcr-util.c | 11 +++- gcr/tests/test-colons.c | 13 ---- 10 files changed, 178 insertions(+), 83 deletions(-) commit 2988fd729d24a979bd7266e8c48e8f6c0d19fedb Author: Stef Walter Date: 2011-04-18 gcr: Add more comments for new colons and collection code. gcr/gcr-colons.c | 1 + gcr/gcr-colons.h | 27 +++++++++++++++++++++++++++ gcr/gcr-gnupg-collection.c | 14 ++++++++++++++ gcr/gcr-util.c | 6 ++++++ 4 files changed, 48 insertions(+), 0 deletions(-) commit 20de7767862b172ef6176200a54709145a7adf0b Author: Stef Walter Date: 2011-04-15 gcr: A rudimentary Gnupg Collection implementation. * Loads basic GPG keys. * No splitting of UIDs yet. * No monitoring yet. https://bugzilla.gnome.org/show_bug.cgi?id=647885 gcr/Makefile.am | 4 + gcr/gcr-colons.c | 154 +++++++++ gcr/gcr-colons.h | 74 +++++ gcr/gcr-gnupg-collection.c | 480 +++++++++++++++++++++++++++++ gcr/gcr-gnupg-collection.h | 69 ++++ gcr/gcr-gnupg-key.c | 249 +++++++++++++++ gcr/gcr-gnupg-key.h | 75 +++++ gcr/gcr-util.c | 55 ++++ gcr/gcr-util.h | 41 +++ gcr/tests/Makefile.am | 10 +- gcr/tests/files/gnupg-homedir/pubring.gpg | Bin 0 -> 19689 bytes gcr/tests/files/gnupg-homedir/trustdb.gpg | Bin 0 -> 1200 bytes gcr/tests/frob-gnupg-selector.c | 79 +++++ gcr/tests/test-colons.c | 193 ++++++++++++ gcr/tests/test-gnupg-collection.c | 82 +++++ gcr/tests/test-gnupg-key.c | 132 ++++++++ gcr/tests/test-util.c | 112 +++++++ 17 files changed, 1807 insertions(+), 2 deletions(-) commit 4da123a3db633c50add867f3b6d7cfce9b606ca4 Author: Stef Walter Date: 2011-04-19 gcr: GcrColumn.label should be translated with context. * Translate the label strings when using them. * Require that the 'column' context is used. gcr/gcr-certificate.c | 6 +++--- gcr/gcr-column.c | 7 +++++++ gcr/gcr-selector.c | 10 ++++++++-- 3 files changed, 18 insertions(+), 5 deletions(-) commit 8bb1bc648f81d57ea3e18a5484232ba8c48ddba0 Author: Stef Walter Date: 2011-04-19 gcr: Fix reference to test-data directory in frob-selector gcr/tests/frob-selector.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 744ebe93514f4c4dff4750cc27ed45662e719311 Author: Stef Walter Date: 2011-04-19 gcr: Fix remaining references to test-data directory gcr/tests/Makefile.am | 2 +- gcr/tests/frob-certificate.c | 2 +- gcr/tests/frob-key.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit de162118568692eeb8ff8fe95372be42cc0f24c2 Author: Stef Walter Date: 2011-04-19 gcr: Fix memory leak in GcrSelector dispose gcr/gcr-selector.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit cc48f9c1491082fc7dbf628d08a50129062c7cab Author: Stef Walter Date: 2011-04-19 gcr: In test-parser don't try to parse directories. gcr/tests/test-parser.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) commit c528eafa1535a4b475acb214feaffb594b180e24 Author: Stef Walter Date: 2011-04-18 gcr: Remove extraneous virtual function. Accidentally included during a broken rebase or merge. gcr/gcr-renderer.h | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit b0ae785e59ae3b2cdd7a2823acb398b407a125ae Merge: cbffb2b 7f0913d Author: Stef Walter Date: 2011-04-18 Merge branch 'gnome-3-0' Conflicts: docs/reference/gcr/gcr-sections.txt gcr/Makefile.am gcr/gcr-library.c commit cbffb2b3b862ccfa9c8506ce58ada2895ff3be49 Author: Stef Walter Date: 2011-04-15 gcr: Build a testable version with all functions exported. Build a testable version of the gcr library, which has all the functions exported including those with _gcr_ prefixes. gcr/Makefile.am | 55 +++++++++++++++++++++++++++++++++---------------- gcr/tests/Makefile.am | 4 +- 2 files changed, 39 insertions(+), 20 deletions(-) commit 7f0913d6000175cdcb772e04854a82588585f7c8 Author: Stef Walter Date: 2011-04-18 Use gpointer instead of guchar in several places. This makes for cleaner and simpler code. egg/egg-openssl.c | 8 ++++---- egg/egg-openssl.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) commit 04e9080a7410283525b440fb751ba874a7651eb7 Author: Stef Walter Date: 2011-04-13 gcr: Implement debug tracing * Instrument the certificate chain code. docs/reference/gcr/gcr-sections.txt | 4 +- gcr/Makefile.am | 3 +- gcr/gcr-certificate-chain.c | 46 ++++++++++++++- gcr/gcr-debug.c | 106 +++++++++++++++++++++++++++++++++++ gcr/gcr-debug.h | 86 ++++++++++++++++++++++++++++ gcr/gcr-library.c | 4 + gcr/tests/frob-certificate.c | 1 + gcr/tests/frob-key.c | 1 + gcr/tests/frob-unlock-options.c | 1 + gcr/tests/test-certificate-chain.c | 1 + gcr/tests/test-certificate.c | 1 + gcr/tests/test-parser.c | 1 + gcr/tests/test-pkcs11-certificate.c | 1 + gcr/tests/test-simple-certificate.c | 1 + gcr/tests/test-trust.c | 1 + 15 files changed, 254 insertions(+), 4 deletions(-) commit 22e4108e0ca804fa4ed639ff92af1b9247e129ef Merge: 250613e e62ba01 Author: Stef Walter Date: 2011-04-09 Merge branch 'gnome-3-0' commit e62ba019617790f3653ec4bd83b1454bca762e10 Author: Stef Walter Date: 2011-04-09 Remove accidentally committed file. gcr/tests/frob-selector | 148 ----------------------------------------------- 1 files changed, 0 insertions(+), 148 deletions(-) commit 250613e103cb712cb2089c081b42b10b20714fc5 Author: Stef Walter Date: 2011-04-06 gcr: Complete documentation for new components docs/reference/gcr/gcr-docs.sgml | 11 +++- docs/reference/gcr/gcr-sections.txt | 118 +++++++++++++++++++++++++++-- gcr/gcr-certificate-renderer.c | 24 ++++++- gcr/gcr-certificate-renderer.h | 2 - gcr/gcr-certificate.c | 34 ++++++++- gcr/gcr-certificate.h | 2 +- gcr/gcr-collection-model.c | 141 +++++++++++++++++++++++++++++++++-- gcr/gcr-collection-model.h | 9 +-- gcr/gcr-collection.c | 46 +++++++++++- gcr/gcr-collection.h | 1 + gcr/gcr-column.c | 58 ++++++++++++++ gcr/gcr-column.h | 6 +- gcr/gcr-comparable.c | 43 +++++++++++ gcr/gcr-importer.c | 2 +- gcr/gcr-importer.h | 2 +- gcr/gcr-key-renderer.c | 1 - gcr/gcr-parser.c | 2 +- gcr/gcr-renderer.c | 14 +++- gcr/gcr-renderer.h | 6 -- gcr/gcr-selector.c | 94 +++++++++++++++++++++++ gcr/gcr-selector.h | 12 +-- gcr/gcr-simple-collection.c | 55 ++++++++++++++ gcr/gcr-simple-collection.h | 2 + gcr/gcr-viewer.c | 1 + 24 files changed, 634 insertions(+), 52 deletions(-) commit 8349f25653056162d93d59e9ff0e84fa9a569abc Author: Stef Walter Date: 2011-04-08 gcr: Hide the widget class structs, until we finalize their super classes. Hide the following GcrCertificateWidget, GcrCertificateWidgetClass, GcrKeyWidget, GcrKeyWidgetClass, GcrUnlockOptionsWidget, GcrUnlockOptionsWidgetClass Currently these are derived from GtkAlignment, because we haven't yet figured out their implementation correctly. We want them to be derived from GtkWidget, or GtkBin (if it makes sense to have a child widget). gcr/gcr-certificate-widget.c | 13 ++++++++++++- gcr/gcr-certificate-widget.h | 15 ++++----------- gcr/gcr-key-widget.c | 13 ++++++++++++- gcr/gcr-key-widget.h | 15 ++++----------- gcr/gcr-unlock-options-widget.c | 13 +++++++++++-- gcr/gcr-unlock-options-widget.h | 14 ++++---------- 6 files changed, 47 insertions(+), 36 deletions(-) commit d099af531a1f644d882a2bcf0462962a573290c4 Author: Stef Walter Date: 2011-04-08 gcr: Hide the widget class structs, until we finalize their super classes. Hide the following GcrCertificateWidget, GcrCertificateWidgetClass, GcrKeyWidget, GcrKeyWidgetClass, GcrUnlockOptionsWidget, GcrUnlockOptionsWidgetClass Currently these are derived from GtkAlignment, because we haven't yet figured out their implementation correctly. We want them to be derived from GtkWidget, or GtkBin (if it makes sense to have a child widget). gcr/gcr-certificate-widget.c | 13 ++++++++++++- gcr/gcr-certificate-widget.h | 15 ++++----------- gcr/gcr-key-widget.c | 13 ++++++++++++- gcr/gcr-key-widget.h | 15 ++++----------- gcr/gcr-unlock-options-widget.c | 13 +++++++++++-- gcr/gcr-unlock-options-widget.h | 14 ++++---------- 6 files changed, 47 insertions(+), 36 deletions(-) commit 754dc2fb82903d2f45bebf1837784931bc43b609 Merge: 59744d5 523ad41 Author: Stef Walter Date: 2011-04-08 Merge branch 'gnome-3-0' Conflicts: .gitignore gcr/gcr-certificate-renderer.c gcr/gcr-parser.c gcr/tests/Makefile.am gcr/tests/frob-key.c gcr/tests/frob-selector.c gcr/tests/test-certificate-chain.c gcr/tests/ui-test-key.c commit 523ad417fbc175c5543f46c4ad0e4f42699af200 Author: Stef Walter Date: 2011-04-06 gcr: Complete documentation docs/reference/gcr/Makefile.am | 15 ++- docs/reference/gcr/gcr-docs.sgml | 10 +- docs/reference/gcr/gcr-sections.txt | 214 ++++++++++++++++++++------- gcr/gcr-certificate-chain.c | 32 ++++ gcr/gcr-certificate-chain.h | 2 + gcr/gcr-certificate-renderer.c | 65 ++++++++- gcr/gcr-certificate-renderer.h | 6 +- gcr/gcr-certificate-widget.c | 74 +++++++++- gcr/gcr-certificate-widget.h | 7 +- gcr/gcr-certificate.c | 12 ++ gcr/gcr-certificate.h | 1 + gcr/gcr-importer.c | 170 ++++++++++++++++++++- gcr/gcr-importer.h | 6 +- gcr/gcr-initializer.h | 85 ----------- gcr/gcr-key-renderer.c | 40 +++++ gcr/gcr-key-renderer.h | 2 + gcr/gcr-key-widget.c | 53 +++++++ gcr/gcr-key-widget.h | 3 + gcr/gcr-library.c | 16 +- gcr/gcr-parser.c | 284 +++++++++++++++++++++++++++++++---- gcr/gcr-parser.h | 21 ++-- gcr/gcr-pkcs11-certificate.c | 12 ++ gcr/gcr-pkcs11-certificate.h | 3 + gcr/gcr-renderer.c | 80 ++++++++++ gcr/gcr-renderer.h | 1 + gcr/gcr-simple-certificate.c | 13 ++ gcr/gcr-simple-certificate.h | 2 + gcr/gcr-trust.c | 2 +- gcr/gcr-types.h | 12 +- gcr/gcr-unlock-options-widget.c | 132 ++++++++++++++++ gcr/gcr-unlock-options-widget.h | 2 + gcr/gcr-viewer.c | 81 ++++++++++- gcr/gcr-viewer.h | 3 +- 33 files changed, 1245 insertions(+), 216 deletions(-) commit 8e22f1894020161d0761f57efe615fbe5a881ea1 Author: Stef Walter Date: 2011-04-06 gcr: Modernize tests. Use standard gtest type setup. gcr/gcr-parser.c | 2 +- gcr/gcr-parser.h | 2 +- gcr/tests/Makefile.am | 92 +- gcr/tests/files/RSA_Root_Certificate_1.pem | 19 + gcr/tests/files/RSA_Security_1024_v3.pem | 16 + gcr/tests/files/RSA_Security_2048_v3.pem | 22 + gcr/tests/files/Thawte_Personal_Basic_CA.pem | 20 + gcr/tests/files/Thawte_Personal_Freemail_CA.pem | 21 + gcr/tests/files/Thawte_Personal_Premium_CA.pem | 21 + gcr/tests/files/Thawte_Premium_Server_CA.pem | 21 + gcr/tests/files/Thawte_Server_CA.pem | 20 + gcr/tests/files/Thawte_Time_Stamping_CA.pem | 18 + gcr/tests/files/ca-certificates.crt | 2560 ++++++++++++++++++++ gcr/tests/files/cacert.org.pem | 41 + gcr/tests/files/collabora-ca.cer | Bin 0 -> 1536 bytes gcr/tests/files/der-certificate-dsa.cer | Bin 0 -> 1639 bytes gcr/tests/files/der-certificate.crt | Bin 0 -> 747 bytes gcr/tests/files/der-dsa-1024.key | Bin 0 -> 447 bytes gcr/tests/files/der-pkcs8-PBE-MD5-DES.key | Bin 0 -> 677 bytes gcr/tests/files/der-pkcs8-PBE-SHA1-3DES.key | Bin 0 -> 678 bytes gcr/tests/files/der-pkcs8-PBE-SHA1-DES.key | Bin 0 -> 677 bytes gcr/tests/files/der-pkcs8-PBE-SHA1-RC2-40.key | Bin 0 -> 678 bytes gcr/tests/files/der-pkcs8-PBE-SHA1-RC4-128.key | Bin 0 -> 673 bytes gcr/tests/files/der-pkcs8-dsa.key | Bin 0 -> 335 bytes gcr/tests/files/der-pkcs8-encrypted-pkcs5.key | Bin 0 -> 677 bytes gcr/tests/files/der-pkcs8-v2-des.key | Bin 0 -> 711 bytes gcr/tests/files/der-pkcs8-v2-des3.key | Bin 0 -> 714 bytes gcr/tests/files/der-pkcs8.key | Bin 0 -> 635 bytes gcr/tests/files/der-rsa-1024.key | Bin 0 -> 609 bytes gcr/tests/files/dhansak-collabora.cer | Bin 0 -> 1200 bytes gcr/tests/files/email.p12 | Bin 0 -> 2488 bytes gcr/tests/files/pem-dsa-1024.key | 12 + gcr/tests/files/pem-pkcs8.key | 17 + gcr/tests/files/pem-rsa-enc.key | 18 + gcr/tests/files/test-x509-swiss.p7b | Bin 0 -> 1002 bytes gcr/tests/files/unclient.p12 | Bin 0 -> 1476 bytes gcr/tests/frob-certificate.c | 111 + gcr/tests/frob-key.c | 109 + gcr/tests/frob-selector | 148 ++ gcr/tests/frob-unlock-options.c | 105 + gcr/tests/test-certificate-chain.c | 227 ++- gcr/tests/test-certificate.c | 197 +- gcr/tests/test-data/RSA_Root_Certificate_1.pem | 19 - gcr/tests/test-data/RSA_Security_1024_v3.pem | 16 - gcr/tests/test-data/RSA_Security_2048_v3.pem | 22 - gcr/tests/test-data/Thawte_Personal_Basic_CA.pem | 20 - .../test-data/Thawte_Personal_Freemail_CA.pem | 21 - gcr/tests/test-data/Thawte_Personal_Premium_CA.pem | 21 - gcr/tests/test-data/Thawte_Premium_Server_CA.pem | 21 - gcr/tests/test-data/Thawte_Server_CA.pem | 20 - gcr/tests/test-data/Thawte_Time_Stamping_CA.pem | 18 - gcr/tests/test-data/ca-certificates.crt | 2560 -------------------- gcr/tests/test-data/cacert.org.pem | 41 - gcr/tests/test-data/collabora-ca.cer | Bin 1536 -> 0 bytes gcr/tests/test-data/der-certificate-dsa.cer | Bin 1639 -> 0 bytes gcr/tests/test-data/der-certificate.crt | Bin 747 -> 0 bytes gcr/tests/test-data/der-dsa-1024.key | Bin 447 -> 0 bytes gcr/tests/test-data/der-pkcs8-PBE-MD5-DES.key | Bin 677 -> 0 bytes gcr/tests/test-data/der-pkcs8-PBE-SHA1-3DES.key | Bin 678 -> 0 bytes gcr/tests/test-data/der-pkcs8-PBE-SHA1-DES.key | Bin 677 -> 0 bytes gcr/tests/test-data/der-pkcs8-PBE-SHA1-RC2-40.key | Bin 678 -> 0 bytes gcr/tests/test-data/der-pkcs8-PBE-SHA1-RC4-128.key | Bin 673 -> 0 bytes gcr/tests/test-data/der-pkcs8-dsa.key | Bin 335 -> 0 bytes gcr/tests/test-data/der-pkcs8-encrypted-pkcs5.key | Bin 677 -> 0 bytes gcr/tests/test-data/der-pkcs8-v2-des.key | Bin 711 -> 0 bytes gcr/tests/test-data/der-pkcs8-v2-des3.key | Bin 714 -> 0 bytes gcr/tests/test-data/der-pkcs8.key | Bin 635 -> 0 bytes gcr/tests/test-data/der-rsa-1024.key | Bin 609 -> 0 bytes gcr/tests/test-data/dhansak-collabora.cer | Bin 1200 -> 0 bytes gcr/tests/test-data/email.p12 | Bin 2488 -> 0 bytes gcr/tests/test-data/pem-dsa-1024.key | 12 - gcr/tests/test-data/pem-pkcs8.key | 17 - gcr/tests/test-data/pem-rsa-enc.key | 18 - gcr/tests/test-data/test-x509-swiss.p7b | Bin 1002 -> 0 bytes gcr/tests/test-data/unclient.p12 | Bin 1476 -> 0 bytes gcr/tests/test-parser.c | 167 ++ gcr/tests/test-pkcs11-certificate.c | 130 +- gcr/tests/test-simple-certificate.c | 63 +- gcr/tests/test-trust.c | 150 +- gcr/tests/ui-test-certificate.c | 111 - gcr/tests/ui-test-key.c | 109 - gcr/tests/ui-test-unlock-options.c | 105 - gcr/tests/unit-test-parser.c | 142 -- 83 files changed, 4006 insertions(+), 3616 deletions(-) commit 004cfedede3b9f59acc803e825b15117b028c738 Author: Stef Walter Date: 2011-04-05 gck: Cleanup the documentation docs/reference/gck/Makefile.am | 14 +- docs/reference/gck/gck-docs.sgml | 6 +- docs/reference/gck/gck-pkcs11-links.xml | 25 +++ docs/reference/gck/gck-sections.txt | 137 +++++++++++-- docs/reference/gck/gck.types | 4 - gck/gck-attributes.c | 125 ++++++++----- gck/gck-dump.c | 12 ++ gck/gck-enumerator.c | 68 ++++++- gck/gck-misc.c | 34 +++- gck/gck-module.c | 47 +++-- gck/gck-modules.c | 123 ++++++++++-- gck/gck-object.c | 154 ++++++++------- gck/gck-session.c | 267 +++++++++++++------------ gck/gck-slot.c | 103 ++++------- gck/gck-uri.c | 23 ++- gck/gck.h | 331 +++++++------------------------ 16 files changed, 812 insertions(+), 661 deletions(-) commit 59744d50022b332cb0435eef1dc687987fff2acc Author: Stef Walter Date: 2011-04-06 gcr: Modernize tests. Use standard gtest type setup. gcr/gcr-parser.c | 2 +- gcr/gcr-parser.h | 2 +- gcr/tests/Makefile.am | 70 +- gcr/tests/files/RSA_Root_Certificate_1.pem | 19 + gcr/tests/files/RSA_Security_1024_v3.pem | 16 + gcr/tests/files/RSA_Security_2048_v3.pem | 22 + gcr/tests/files/Thawte_Personal_Basic_CA.pem | 20 + gcr/tests/files/Thawte_Personal_Freemail_CA.pem | 21 + gcr/tests/files/Thawte_Personal_Premium_CA.pem | 21 + gcr/tests/files/Thawte_Premium_Server_CA.pem | 21 + gcr/tests/files/Thawte_Server_CA.pem | 20 + gcr/tests/files/Thawte_Time_Stamping_CA.pem | 18 + gcr/tests/files/ca-certificates.crt | 2560 ++++++++++++++++++++ gcr/tests/files/cacert.org.pem | 41 + gcr/tests/files/collabora-ca.cer | Bin 0 -> 1536 bytes gcr/tests/files/der-certificate-dsa.cer | Bin 0 -> 1639 bytes gcr/tests/files/der-certificate.crt | Bin 0 -> 747 bytes gcr/tests/files/der-dsa-1024.key | Bin 0 -> 447 bytes gcr/tests/files/der-pkcs8-PBE-MD5-DES.key | Bin 0 -> 677 bytes gcr/tests/files/der-pkcs8-PBE-SHA1-3DES.key | Bin 0 -> 678 bytes gcr/tests/files/der-pkcs8-PBE-SHA1-DES.key | Bin 0 -> 677 bytes gcr/tests/files/der-pkcs8-PBE-SHA1-RC2-40.key | Bin 0 -> 678 bytes gcr/tests/files/der-pkcs8-PBE-SHA1-RC4-128.key | Bin 0 -> 673 bytes gcr/tests/files/der-pkcs8-dsa.key | Bin 0 -> 335 bytes gcr/tests/files/der-pkcs8-encrypted-pkcs5.key | Bin 0 -> 677 bytes gcr/tests/files/der-pkcs8-v2-des.key | Bin 0 -> 711 bytes gcr/tests/files/der-pkcs8-v2-des3.key | Bin 0 -> 714 bytes gcr/tests/files/der-pkcs8.key | Bin 0 -> 635 bytes gcr/tests/files/der-rsa-1024.key | Bin 0 -> 609 bytes gcr/tests/files/dhansak-collabora.cer | Bin 0 -> 1200 bytes gcr/tests/files/email.p12 | Bin 0 -> 2488 bytes gcr/tests/files/pem-dsa-1024.key | 12 + gcr/tests/files/pem-pkcs8.key | 17 + gcr/tests/files/pem-rsa-enc.key | 18 + gcr/tests/files/test-x509-swiss.p7b | Bin 0 -> 1002 bytes gcr/tests/files/unclient.p12 | Bin 0 -> 1476 bytes gcr/tests/frob-certificate.c | 114 + gcr/tests/frob-key.c | 109 + gcr/tests/frob-selector.c | 106 + gcr/tests/frob-unlock-options.c | 105 + gcr/tests/test-certificate-chain.c | 230 ++- gcr/tests/test-certificate.c | 197 +- gcr/tests/test-data/RSA_Root_Certificate_1.pem | 19 - gcr/tests/test-data/RSA_Security_1024_v3.pem | 16 - gcr/tests/test-data/RSA_Security_2048_v3.pem | 22 - gcr/tests/test-data/Thawte_Personal_Basic_CA.pem | 20 - .../test-data/Thawte_Personal_Freemail_CA.pem | 21 - gcr/tests/test-data/Thawte_Personal_Premium_CA.pem | 21 - gcr/tests/test-data/Thawte_Premium_Server_CA.pem | 21 - gcr/tests/test-data/Thawte_Server_CA.pem | 20 - gcr/tests/test-data/Thawte_Time_Stamping_CA.pem | 18 - gcr/tests/test-data/ca-certificates.crt | 2560 -------------------- gcr/tests/test-data/cacert.org.pem | 41 - gcr/tests/test-data/collabora-ca.cer | Bin 1536 -> 0 bytes gcr/tests/test-data/der-certificate-dsa.cer | Bin 1639 -> 0 bytes gcr/tests/test-data/der-certificate.crt | Bin 747 -> 0 bytes gcr/tests/test-data/der-dsa-1024.key | Bin 447 -> 0 bytes gcr/tests/test-data/der-pkcs8-PBE-MD5-DES.key | Bin 677 -> 0 bytes gcr/tests/test-data/der-pkcs8-PBE-SHA1-3DES.key | Bin 678 -> 0 bytes gcr/tests/test-data/der-pkcs8-PBE-SHA1-DES.key | Bin 677 -> 0 bytes gcr/tests/test-data/der-pkcs8-PBE-SHA1-RC2-40.key | Bin 678 -> 0 bytes gcr/tests/test-data/der-pkcs8-PBE-SHA1-RC4-128.key | Bin 673 -> 0 bytes gcr/tests/test-data/der-pkcs8-dsa.key | Bin 335 -> 0 bytes gcr/tests/test-data/der-pkcs8-encrypted-pkcs5.key | Bin 677 -> 0 bytes gcr/tests/test-data/der-pkcs8-v2-des.key | Bin 711 -> 0 bytes gcr/tests/test-data/der-pkcs8-v2-des3.key | Bin 714 -> 0 bytes gcr/tests/test-data/der-pkcs8.key | Bin 635 -> 0 bytes gcr/tests/test-data/der-rsa-1024.key | Bin 609 -> 0 bytes gcr/tests/test-data/dhansak-collabora.cer | Bin 1200 -> 0 bytes gcr/tests/test-data/email.p12 | Bin 2488 -> 0 bytes gcr/tests/test-data/pem-dsa-1024.key | 12 - gcr/tests/test-data/pem-pkcs8.key | 17 - gcr/tests/test-data/pem-rsa-enc.key | 18 - gcr/tests/test-data/test-x509-swiss.p7b | Bin 1002 -> 0 bytes gcr/tests/test-data/unclient.p12 | Bin 1476 -> 0 bytes gcr/tests/test-parser.c | 167 ++ gcr/tests/test-pkcs11-certificate.c | 130 +- gcr/tests/test-simple-certificate.c | 63 +- gcr/tests/test-trust.c | 150 +- gcr/tests/test-ui-selector.c | 106 - gcr/tests/ui-test-certificate.c | 114 - gcr/tests/ui-test-key.c | 109 - gcr/tests/ui-test-unlock-options.c | 105 - gcr/tests/unit-test-parser.c | 142 -- 84 files changed, 3973 insertions(+), 3700 deletions(-) commit 60619c8d189c289b67241979dcadc0774d7cc75b Author: Stef Walter Date: 2011-04-05 gck: Cleanup the documentation docs/reference/gck/Makefile.am | 14 +- docs/reference/gck/gck-docs.sgml | 6 +- docs/reference/gck/gck-pkcs11-links.xml | 25 +++ docs/reference/gck/gck-sections.txt | 137 +++++++++++-- docs/reference/gck/gck.types | 4 - gck/gck-attributes.c | 125 ++++++++----- gck/gck-dump.c | 12 ++ gck/gck-enumerator.c | 68 ++++++- gck/gck-misc.c | 34 +++- gck/gck-module.c | 47 +++-- gck/gck-modules.c | 123 ++++++++++-- gck/gck-object.c | 154 ++++++++------- gck/gck-session.c | 267 +++++++++++++------------ gck/gck-slot.c | 103 ++++------- gck/gck-uri.c | 23 ++- gck/gck.h | 331 +++++++------------------------ 16 files changed, 812 insertions(+), 661 deletions(-) commit 489df387400f8e1aff2ac211426f647128a08f4c Merge: 49f0b0e c14e6d5 Author: Stef Walter Date: 2011-04-05 Merge branch 'gnome-3-0' commit c14e6d53b08060758004724987e2facedcecd8e3 Author: Stef Walter Date: 2011-03-31 gcr: Fix invalid assertions when using gcr_parser_parse_stream_xxx() gcr/gcr-parser.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit cb7fce5a4cd56270af88f83fc9fa8277e650c44d Author: Stef Walter Date: 2011-03-30 gcr: Implement gcr_certificate_basics_xxx() stubs properly. gcr/gcr-certificate-basics-widget.c | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) commit 86bc123e3ad58142684a77f5cdabd774f0c9a4c0 Author: Stef Walter Date: 2011-03-25 Add correct version numbers to documentation. docs/reference/gck/gck-docs.sgml | 10 ++++++---- docs/reference/gck/version.xml.in | 1 + docs/reference/gcr/gcr-docs.sgml | 12 +++++++----- docs/reference/gcr/version.xml.in | 1 + 4 files changed, 15 insertions(+), 9 deletions(-) commit 7caf86542209172836281c6f36c267c42b644c99 Author: Stef Walter Date: 2011-03-23 Modernise the gck tests. egg/Makefile.am | 12 ++- gck/tests/Makefile.am | 51 +++--- gck/tests/test-gck-attributes.c | 148 ++++++++++++--- gck/tests/test-gck-crypto.c | 375 ++++++++++++++++++++++++--------------- gck/tests/test-gck-enumerator.c | 151 ++++++++++++----- gck/tests/test-gck-module.c | 169 ++++++++---------- gck/tests/test-gck-modules.c | 130 +++++++++++--- gck/tests/test-gck-object.c | 323 ++++++++++++++++++++-------------- gck/tests/test-gck-session.c | 230 ++++++++++++++++-------- gck/tests/test-gck-slot.c | 137 ++++++++++---- gck/tests/test-gck-uri.c | 148 ++++++++++++---- gck/tests/test-gck.h | 43 ----- 12 files changed, 1229 insertions(+), 688 deletions(-) commit 49f0b0ee0c08e23083053e4948c7b6f44d366f20 Author: Stef Walter Date: 2010-10-23 gcr: Sortable selector gcr/gcr-certificate.c | 41 +++-- gcr/gcr-collection-model.c | 409 +++++++++++++++++++++----------------------- gcr/gcr-collection-model.h | 8 +- gcr/gcr-column.h | 17 ++- gcr/gcr-selector.c | 146 +++++++++++++--- gcr/gcr-selector.h | 9 - 6 files changed, 363 insertions(+), 267 deletions(-) commit 1fc52f98cfd8e568f5b986d0b3aeca77bed7e712 Author: Stef Walter Date: 2010-10-20 [gcr] More implementation of selector widget. * Add a certificate base class to augment interface with default props. * All properties come from certificate rather than renderer. * Certificates are comparable. docs/reference/gcr/gcr-sections.txt | 4 + gcr/Makefile.am | 5 + gcr/gcr-certificate-renderer.c | 111 ++--------- gcr/gcr-certificate-renderer.h | 2 - gcr/gcr-certificate.c | 283 ++++++++++++++++++++++++++- gcr/gcr-certificate.h | 37 +++- gcr/gcr-collection-model.c | 106 +++++++++- gcr/gcr-collection-model.h | 16 ++- gcr/gcr-column.h | 5 +- gcr/gcr-comparable.c | 103 ++++++++++ gcr/gcr-comparable.h | 54 +++++ gcr/gcr-library.c | 6 +- gcr/gcr-pkcs11-certificate.c | 13 +- gcr/gcr-renderer.c | 33 --- gcr/gcr-renderer.h | 5 - gcr/gcr-selector.c | 364 +++++++++++++++++++++++++++++++++++ gcr/gcr-selector.h | 82 ++++++++ gcr/gcr-simple-certificate.c | 26 ++- gcr/gcr.h | 1 + gcr/tests/test-ui-selector.c | 82 +------- 20 files changed, 1091 insertions(+), 247 deletions(-) commit 4add6a335818a7c6ad7f238703cb0ed7d7307535 Author: Stef Walter Date: 2010-10-17 [gcr] Partial implementation of data for tree columns. gcr/gcr-certificate-renderer.c | 42 ++++++++++++++++++++-- gcr/gcr-certificate-renderer.h | 5 +++ gcr/gcr-collection-model.c | 24 ++++++++----- gcr/gcr-collection-model.h | 13 ++----- gcr/gcr-column.h | 40 +++++++++++++++++++++ gcr/gcr-renderer.c | 21 +++++++++++ gcr/gcr-renderer.h | 34 ++++++++--------- gcr/tests/test-ui-selector.c | 77 +++++++++++++++++++++++++++++++-------- 8 files changed, 200 insertions(+), 56 deletions(-) commit a2fbc3ebd401dd76ecf90ef0e0c899dfe4c67744 Author: Stef Walter Date: 2010-10-15 [gcr] Add functionality for renderers to populate tree models. * Add markup, icon and description properties to renderers. * Add GcrSimpleCollection which implements collections. * Use GIcon instead of stock ids. * Rough example test certificate selector. gcr/Makefile.am | 2 + gcr/gcr-certificate-renderer.c | 69 +++++++++++++++---- gcr/gcr-collection-model.c | 4 +- gcr/gcr-display-view.c | 42 +++++++++--- gcr/gcr-display-view.h | 4 +- gcr/gcr-key-renderer.c | 12 +++- gcr/gcr-library.c | 8 ++- gcr/gcr-renderer.c | 18 ++++- gcr/gcr-renderer.h | 21 +++++- gcr/gcr-simple-collection.c | 143 ++++++++++++++++++++++++++++++++++++++++ gcr/gcr-simple-collection.h | 67 +++++++++++++++++++ gcr/gcr.h | 3 + gcr/tests/Makefile.am | 43 ++---------- gcr/tests/test-ui-selector.c | 129 ++++++++++++++++++++++++++++++++++++ 14 files changed, 491 insertions(+), 74 deletions(-) commit 262c70253cdded24d4692c37cac59732ff4d70d1 Author: Stef Walter Date: 2010-10-12 [gcr] GcrCertificateRenderer takes either attrs or cert. Take either attributes or a GcrCertificate. That way when using renderer in the (future) selector, we won't have lots of extra objects. gcr/gcr-certificate-renderer.c | 133 ++++++++++++++++++++++++--------------- gcr/gcr-certificate-renderer.h | 3 + 2 files changed, 85 insertions(+), 51 deletions(-) commit b7162290408e0323a98abeddd33595dfc6f4c6bf Author: Stef Walter Date: 2010-10-06 [gcr] Add collection iface for objects lists and GtkTreeModel Will be used in various selectors to provide a list of things to select from. gcr/Makefile.am | 6 +- gcr/gcr-collection-model.c | 643 ++++++++++++++++++++++++++++++++++++++++++++ gcr/gcr-collection-model.h | 76 ++++++ gcr/gcr-collection.c | 128 +++++++++ gcr/gcr-collection.h | 75 +++++ 5 files changed, 927 insertions(+), 1 deletions(-) commit 75f0366f1fe6a8f8cd9fdaab877f17c13a297637 Author: Stef Walter Date: 2011-04-04 Release version 3.0.0 docs/reference/gck/Makefile.am | 2 +- docs/reference/gcr/Makefile.am | 2 +- egg/egg-asn1x.c | 5 ++++- gcr/gcr-display-view.c | 2 +- gcr/gcr-parser.c | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) commit f911264b165c83b0ba508cc06188605d9007e160 Author: Stef Walter Date: 2011-03-31 gcr: Fix invalid assertions when using gcr_parser_parse_stream_xxx() gcr/gcr-parser.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 13e874f54ddb94cc0bcfefde887a04abf19bbf59 Author: Stef Walter Date: 2011-03-30 gcr: Mark strings as translatable. gcr/gcr-certificate-renderer.c | 2 +- gcr/gcr-display-view.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) commit 91b22cda89a394338a997ed8aa01055628df0b74 Author: Stef Walter Date: 2011-03-30 gcr: Implement gcr_certificate_basics_xxx() stubs properly. gcr/gcr-certificate-basics-widget.c | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) commit 757396c97b91b334279e7f6918fea29448fc9d06 Author: Stef Walter Date: 2011-03-25 Add correct version numbers to documentation. docs/reference/gck/gck-docs.sgml | 10 ++++++---- docs/reference/gck/version.xml.in | 1 + docs/reference/gcr/gcr-docs.sgml | 12 +++++++----- docs/reference/gcr/version.xml.in | 1 + 4 files changed, 15 insertions(+), 9 deletions(-) commit 39e8f37b2b6cbbcc60230e0b8e48efd2f05d1d51 Author: Stef Walter Date: 2011-03-23 Modernise the gck tests. egg/Makefile.am | 12 ++- gck/tests/Makefile.am | 51 +++--- gck/tests/test-gck-attributes.c | 148 ++++++++++++--- gck/tests/test-gck-crypto.c | 375 ++++++++++++++++++++++++--------------- gck/tests/test-gck-enumerator.c | 151 ++++++++++++----- gck/tests/test-gck-module.c | 169 ++++++++---------- gck/tests/test-gck-modules.c | 130 +++++++++++--- gck/tests/test-gck-object.c | 323 ++++++++++++++++++++-------------- gck/tests/test-gck-session.c | 230 ++++++++++++++++-------- gck/tests/test-gck-slot.c | 137 ++++++++++---- gck/tests/test-gck-uri.c | 148 ++++++++++++---- gck/tests/test-gck.h | 43 ----- 12 files changed, 1229 insertions(+), 688 deletions(-) commit 1423c3ee0e455cf72174d1ad807fd2e0e9ff8135 Merge: 94caa61 d407dcd Author: Stef Walter Date: 2011-03-19 Merge branch 'gnome-3-0' commit d407dcdbca70586a6515462aa2a93e546f2f2956 Author: Stef Walter Date: 2011-03-18 [gcr] Add deprecated functions for symbols lost since 2.32.x * gcr_certificate_basics_xxx * gcr_certificate_details_xxx * gcr_importer_xxx_parser gcr/Makefile.am | 2 + gcr/gcr-certificate-basics-widget.c | 54 +++++++++++++++++++++++++++++ gcr/gcr-certificate-basics-widget.h | 62 ++++++++++++++++++++++++++++++++++ gcr/gcr-certificate-details-widget.c | 54 +++++++++++++++++++++++++++++ gcr/gcr-certificate-details-widget.h | 61 +++++++++++++++++++++++++++++++++ gcr/gcr-importer.c | 19 ++++++++++ gcr/gcr-importer.h | 9 +++++ gcr/gcr.h | 7 ++++ 8 files changed, 268 insertions(+), 0 deletions(-) commit 94caa6117e7bf86b59aa0762008d3f69a204d634 Author: Lucian Adrian Grijincu Date: 2011-03-14 Fix gck_uri_parse error message Signed-off-by: Lucian Adrian Grijincu gck/gck-uri.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit db8e50dc11225719aab922430b3f87eaa51dc5c9 Author: Stef Walter Date: 2011-03-08 [gcr] Add 'Export Certificate' right click in cert widget. Users can right click on the certificate widget, and export the certificate to DER or PEM format. gcr/Makefile.am | 1 + gcr/gcr-certificate-exporter.c | 566 +++++++++++++++++++++++++++++++++++++++ gcr/gcr-certificate-exporter.h | 73 +++++ gcr/gcr-certificate-renderer.c | 79 ++++++- gcr/gcr-display-view.c | 68 +++++ gcr/gcr-renderer.c | 9 + gcr/gcr-renderer.h | 6 + gcr/tests/ui-test-certificate.c | 23 +- 8 files changed, 813 insertions(+), 12 deletions(-) commit a94dc7475e91ea11ef3a526367027fa1058fbeb2 Merge: 810500a a595e68 Author: Stef Walter Date: 2011-03-09 Merge branch 'with-hkdf' commit 810500a36fa44305cb36fa8b4862473b5c1f38f4 Author: Stef Walter Date: 2011-03-08 [egg] Complete implementation of openssl sytle PEM writing The openssl PEM parser is particularly fragile, so write some stringent tests to check. egg/egg-openssl.c | 34 +++++++++++++++++++++++----------- egg/tests/test-openssl.c | 29 +++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 11 deletions(-) commit d5f70e1ea7f646d89f2859c11adf800ad0f1003e Author: Stef Walter Date: 2011-03-07 [gck] Fix uri library-manufacturer test. gck/tests/test-gck-uri.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit aa74d123db46035f1866b405dfd18d8a2acc0d6a Author: Stef Walter Date: 2011-03-04 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 gcr/gcr-display-view.c | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) commit 06a22db0a23b353082d8b9f9412c558a3054db0e Author: Stef Walter Date: 2011-03-04 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 gcr/Makefile.am | 1 + gcr/gcr-certificate-widget.c | 13 +--- gcr/gcr-display-scrolled.c | 172 +++++++++++++++++++++++++++++++++++++++ gcr/gcr-display-scrolled.h | 56 +++++++++++++ gcr/gcr-display-view.c | 105 ++++++++++++++++++++++++ gcr/gcr-viewer.c | 7 ++ gcr/gcr-viewer.h | 2 + gcr/tests/ui-test-certificate.c | 1 - 8 files changed, 346 insertions(+), 11 deletions(-) commit 2d1569b8504479827925b2746ff60a2ef332ec7e Author: Stef Walter Date: 2011-03-02 Make the library-manufacturer in the trust uris actually match. https://bugzilla.gnome.org/show_bug.cgi?id=641121 gcr/gcr-library.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit a099fdca63d5892a101285a227c72f08eb208f77 Author: Stef Walter Date: 2011-03-01 [gck] Support 'library-manufacturer' in PKCS#11 URIs properly. https://bugzilla.gnome.org/show_bug.cgi?id=643574 gck/gck-uri.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 1522bda8694d3353459d73dfc0c644ba712fe72b Merge: e66aa0e b61f589 Author: Stef Walter Date: 2011-03-01 Merge branch 'secret-content-type' commit e66aa0e950deaa75f15671e34716b80ff2746d8f Merge: b61f589 dcb0875 Author: Stef Walter Date: 2011-03-01 Merge branch 'hard-code-config' commit dcb087524cd121f6979f7a1a7c50d4d86ac2c03e Author: Stef Walter Date: 2011-02-28 [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. gcr/Makefile.am | 9 ------- gcr/gcr-library.c | 44 ++++++++--------------------------- gcr/pkcs11-options.defaults | 13 ---------- gcr/tests/Makefile.am | 1 - gcr/tests/test-certificate-chain.c | 3 -- gcr/tests/test-certificate.c | 3 -- gcr/tests/test-pkcs11-certificate.c | 3 -- gcr/tests/test-simple-certificate.c | 3 -- gcr/tests/test-trust.c | 3 -- gcr/tests/unit-test-parser.c | 3 -- 10 files changed, 10 insertions(+), 75 deletions(-) commit b61f58938605a6a930e0ae6d545b8f8b59e248cf Author: Stef Walter Date: 2011-02-23 Use more modern gtest style for egg tests. egg/Makefile.am | 1 + egg/egg-hkdf.h | 39 ++ egg/egg-testing.c | 178 +++++++++ egg/egg-testing.h | 54 +++ egg/tests/Makefile.am | 71 ++-- egg/tests/files/dh-params.pem | 5 + egg/tests/files/echo-script.sh | 12 + egg/tests/files/pem-rsa-enc.key | 18 + egg/tests/files/test-certificate-1.der | Bin 0 -> 813 bytes egg/tests/files/test-personalname-1.der | 1 + egg/tests/files/test-pkcs12-1.der | Bin 0 -> 2824 bytes egg/tests/files/test-pkcs7-1.der | Bin 0 -> 1002 bytes egg/tests/files/test-pkcs7-2.der | Bin 0 -> 1002 bytes egg/tests/files/test-pkcs8-1.der | Bin 0 -> 335 bytes egg/tests/files/test-rsakey-1.der | Bin 0 -> 609 bytes egg/tests/test-asn1.c | 539 +++++++++++++++++++++++++-- egg/tests/test-asn1x.c | 53 ++- egg/tests/test-data/dh-params.pem | 5 - egg/tests/test-data/echo-script.sh | 12 - egg/tests/test-data/pem-rsa-enc.key | 18 - egg/tests/test-data/test-certificate-1.der | Bin 813 -> 0 bytes egg/tests/test-data/test-personalname-1.der | 1 - egg/tests/test-data/test-pkcs12-1.der | Bin 2824 -> 0 bytes egg/tests/test-data/test-pkcs7-1.der | Bin 1002 -> 0 bytes egg/tests/test-data/test-pkcs7-2.der | Bin 1002 -> 0 bytes egg/tests/test-data/test-pkcs8-1.der | Bin 335 -> 0 bytes egg/tests/test-data/test-rsakey-1.der | Bin 609 -> 0 bytes egg/tests/test-dh.c | 204 ++++++++++ egg/tests/test-dn.c | 70 +++-- egg/tests/test-hex.c | 118 ++++++ egg/tests/test-oid.c | 54 +++ egg/tests/test-openssl.c | 181 +++++++++ egg/tests/test-padding.c | 134 +++++--- egg/tests/test-secmem.c | 265 +++++++++++++ egg/tests/test-symkey.c | 238 ++++++++++++ egg/tests/unit-test-asn1.c | 427 --------------------- egg/tests/unit-test-dh.c | 172 --------- egg/tests/unit-test-hex.c | 101 ----- egg/tests/unit-test-oid.c | 46 --- egg/tests/unit-test-openssl.c | 137 ------- egg/tests/unit-test-secmem.c | 237 ------------ egg/tests/unit-test-spawn.c | 270 -------------- egg/tests/unit-test-symkey.c | 228 ----------- 43 files changed, 2087 insertions(+), 1802 deletions(-) commit a595e68a0b324cfbf8489beaec7402f4c91dac98 Author: Stef Walter Date: 2011-02-24 Implement HKDF for transport encryption security. This is to hash the results of the DH key agreement, since the generated key size rarely matches the size of our bulk encryption key size. * Add PKCS#11 algorithm CKM_G_HKDF_SHA256_DERIVE * Change DH code so it always generates keys of prime size. * Change CKM_DH_PKCS11_DERIVE mechanism to support truncating or expanding keys on its own (without help from underlying implementation) in accordance with PKCS#11. Although we no longer use this. * Add support for CKK_GENERIC_SECRET keys. * Update prompt code to use HKDF in key negotiation. * Add secret service dh-ietf1024-sha256-aes128-cbc-pkcs7 algo which replaces the previous. egg/Makefile.am | 2 + egg/egg-dh.c | 16 +-- egg/egg-dh.h | 2 +- egg/egg-hkdf.c | 109 ++++++++++++++++ egg/tests/test-dh.c | 70 +++++----- egg/tests/test-hkdf.c | 345 +++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 497 insertions(+), 47 deletions(-) commit 4904406338f0f49fd55f6f3443a967b9988a7d5d Author: Stef Walter Date: 2011-02-23 Use more modern gtest style for egg tests. egg/Makefile.am | 1 + egg/egg-hkdf.h | 39 ++ egg/egg-testing.c | 178 +++++++++ egg/egg-testing.h | 54 +++ egg/tests/Makefile.am | 71 ++-- egg/tests/files/dh-params.pem | 5 + egg/tests/files/echo-script.sh | 12 + egg/tests/files/pem-rsa-enc.key | 18 + egg/tests/files/test-certificate-1.der | Bin 0 -> 813 bytes egg/tests/files/test-personalname-1.der | 1 + egg/tests/files/test-pkcs12-1.der | Bin 0 -> 2824 bytes egg/tests/files/test-pkcs7-1.der | Bin 0 -> 1002 bytes egg/tests/files/test-pkcs7-2.der | Bin 0 -> 1002 bytes egg/tests/files/test-pkcs8-1.der | Bin 0 -> 335 bytes egg/tests/files/test-rsakey-1.der | Bin 0 -> 609 bytes egg/tests/test-asn1.c | 539 +++++++++++++++++++++++++-- egg/tests/test-asn1x.c | 53 ++- egg/tests/test-data/dh-params.pem | 5 - egg/tests/test-data/echo-script.sh | 12 - egg/tests/test-data/pem-rsa-enc.key | 18 - egg/tests/test-data/test-certificate-1.der | Bin 813 -> 0 bytes egg/tests/test-data/test-personalname-1.der | 1 - egg/tests/test-data/test-pkcs12-1.der | Bin 2824 -> 0 bytes egg/tests/test-data/test-pkcs7-1.der | Bin 1002 -> 0 bytes egg/tests/test-data/test-pkcs7-2.der | Bin 1002 -> 0 bytes egg/tests/test-data/test-pkcs8-1.der | Bin 335 -> 0 bytes egg/tests/test-data/test-rsakey-1.der | Bin 609 -> 0 bytes egg/tests/test-dh.c | 204 ++++++++++ egg/tests/test-dn.c | 70 +++-- egg/tests/test-hex.c | 118 ++++++ egg/tests/test-oid.c | 54 +++ egg/tests/test-openssl.c | 181 +++++++++ egg/tests/test-padding.c | 134 +++++--- egg/tests/test-secmem.c | 265 +++++++++++++ egg/tests/test-symkey.c | 238 ++++++++++++ egg/tests/unit-test-asn1.c | 427 --------------------- egg/tests/unit-test-dh.c | 172 --------- egg/tests/unit-test-hex.c | 101 ----- egg/tests/unit-test-oid.c | 46 --- egg/tests/unit-test-openssl.c | 137 ------- egg/tests/unit-test-secmem.c | 237 ------------ egg/tests/unit-test-spawn.c | 270 -------------- egg/tests/unit-test-symkey.c | 228 ----------- 43 files changed, 2087 insertions(+), 1802 deletions(-) commit ef1b112812c974b625c3841c6706bdb26cee8b29 Author: Claude Paroz Date: 2011-02-09 Add translator comment about 'pinned certificate' gcr/gcr-trust.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 29f9c4cf4aa5d9c254f9ed41adc915439d46fcc8 Author: Ryan Stonecipher Date: 2011-01-24 Fix undefined type in egg-asn1x.c Mac OSX doesn't have a ulong type https://bugzilla.gnome.org/show_bug.cgi?id=640362 egg/egg-asn1x.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 531deb3893cc5dcec940799271fc304cf6eb1c96 Author: Stef Walter Date: 2011-01-19 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. gck/Makefile.am | 5 ++++- gck/tests/Makefile.am | 2 +- gck/tests/test-gck-crypto.c | 2 ++ gck/tests/test-gck-enumerator.c | 1 + gck/tests/test-gck-module.c | 1 + gck/tests/test-gck-modules.c | 1 + gck/tests/test-gck-object.c | 1 + gck/tests/test-gck-session.c | 1 + gck/tests/test-gck-slot.c | 1 + gcr/Makefile.am | 26 +++++++++++++++----------- 10 files changed, 28 insertions(+), 13 deletions(-) commit 18af8f0e68282a5648916ce89c45ce48eada2065 Author: Stef Walter Date: 2011-01-19 Issue new test certificates. testing/ca-example/certs/client-future.crt | 18 +++++++++++++++ testing/ca-example/certs/client-past.crt | 18 +++++++++++++++ testing/ca-example/certs/client.crt | 33 +++++++++++++-------------- testing/ca-example/certs/server-self.crt | 11 +++++++++ testing/ca-example/certs/server.crt | 14 +++++++++++ testing/ca-example/commands.txt | 3 ++ testing/ca-example/keys/server.key | 9 +++++++ testing/ca-example/requests/server.req | 8 ++++++ testing/ca-example/serial.txt | 2 +- 9 files changed, 98 insertions(+), 18 deletions(-) commit da9b26fa8522e855e7e6803e321b7444d8ba0d06 Author: Stef Walter Date: 2011-01-04 [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. gcr/Makefile.am | 4 ++-- gcr/gcr-library.c | 4 ++-- gcr/pkcs11-options.defaults | 13 +++++++++++++ gcr/pkcs11.conf.defaults | 13 ------------- 4 files changed, 17 insertions(+), 17 deletions(-) commit 877f01db2b7d74acfdbd4fe373d7cd37d9f6104e Author: Stef Walter Date: 2010-12-31 [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. docs/reference/gck/gck-docs.sgml | 1 + docs/reference/gck/gck-sections.txt | 9 + gck/gck-enumerator.c | 49 +++-- gck/gck-misc.c | 39 ++++ gck/gck-modules.c | 63 ++++-- gck/gck-private.h | 12 +- gck/gck-slot.c | 36 +--- gck/gck-uri.c | 217 +++++++++++++++---- gck/gck.h | 29 ++- gck/tests/gck-test.h | 19 -- gck/tests/test-gck-enumerator.c | 47 +++-- gck/tests/test-gck-uri.c | 405 ++++++++++++++++++++++++++++------ gck/tests/test-gck.h | 43 ++++ 13 files changed, 738 insertions(+), 231 deletions(-) commit 4fdced65884387b7e6db9314659d30b558822a26 Author: Marek Černocký Date: 2011-01-15 I18N fix - using ngettext gcr/gcr-key-renderer.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit ef20b5080b7a9789a8d5c7c2b9907cfd24d16281 Author: Emilio Pozuelo Monfort Date: 2010-12-28 libgcr.so: Only export symbols that begin with gcr_ Bug #638216 gcr/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 51b5aeca83dd71c157ca6555d2b8c4cd4c4d0e13 Author: Emilio Pozuelo Monfort Date: 2010-12-28 libgck.so: Only export symbols that begin with gck_ Bug #638216 gck/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 40d1ac4bb6b573767b451b6bcbcb237b114fc7bf Author: Stef Walter Date: 2010-12-22 [gcr] More fixes for GTK+ 2.91.7 * gtk_widget_render_icon() * gdk_cursor_unref() gcr/gcr-display-view.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) commit ae47240369ed4793025af747584ee603a0568f11 Author: Stef Walter Date: 2010-12-22 [gcr] Make tests use pkcs11.conf.defaults from srcdir. So that make distcheck passes, and tests run without a prior 'make install' gcr/Makefile.am | 8 ++------ gcr/gcr-internal.h | 4 ++++ gcr/gcr-library.c | 29 ++++++++++++++++++----------- gcr/tests/Makefile.am | 1 + gcr/tests/test-certificate-chain.c | 4 ++++ gcr/tests/test-certificate.c | 4 ++++ gcr/tests/test-pkcs11-certificate.c | 4 ++++ gcr/tests/test-simple-certificate.c | 3 +++ gcr/tests/test-trust.c | 4 ++++ gcr/tests/unit-test-parser.c | 4 ++++ 10 files changed, 48 insertions(+), 17 deletions(-) commit 0df3d4aaa1b665889fe5d43d524cf77f093de9c0 Merge: bae8a84 012ac21 Author: Stef Walter Date: 2010-12-22 Merge branch 'trust-store' commit 012ac2156d86705648c59453442299cadf885239 Author: Stef Walter Date: 2010-12-22 [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. gcr/Makefile.am | 17 +++++++++++++++-- gcr/gcr-library.c | 35 ++++++++++++++++------------------- gcr/pkcs11.conf.defaults | 13 +++++++++++++ 3 files changed, 44 insertions(+), 21 deletions(-) commit f95bf7c618416347633f60065788a9ea1a4ef07b Author: Stef Walter Date: 2010-12-22 [egg] Don't try to encode optional sequences if empty. egg/egg-asn1x.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 132d95b4196a376b74c037d0b583b1e04f3d06a9 Author: Stef Walter Date: 2010-12-22 [egg] Remove non-deterministic checks in spawn tests. These complete in a different thread, and the check is vulnerable to a race condition. egg/tests/unit-test-spawn.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) commit c3c628f387cca2f73812a5551222335b6f61ce9a Author: Stef Walter Date: 2010-12-22 [egg] Fix uninitialized list pointers. egg/egg-asn1x.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 70ec4f6ec15210591212e5e49c09cbcd29e2e76f Author: Stef Walter Date: 2010-12-22 Add missing files to distribution. egg/tests/Makefile.am | 8 ++++---- gck/tests/Makefile.am | 6 +++--- gcr/tests/Makefile.am | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) commit 663b7078c0ad8aac67f2599b2fda4bc84557b1c1 Author: Stef Walter Date: 2010-12-18 [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 docs/reference/gcr/gcr-sections.txt | 4 +- gcr/Makefile.am | 2 +- gcr/gcr-library.c | 137 +++++++++++++++++++++++++++-------- gcr/gcr-library.h | 8 ++- gcr/gcr-trust.c | 66 ++++++----------- gcr/tests/test-certificate-chain.c | 6 ++- gcr/tests/test-trust.c | 5 ++ 7 files changed, 152 insertions(+), 76 deletions(-) commit f70667fbf2e5adc465522d12147fc51694f21944 Author: Stef Walter Date: 2010-12-18 [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. docs/reference/gck/gck-sections.txt | 1 + gck/gck-enumerator.c | 116 ++++++++++++++++------------------- gck/gck-modules.c | 2 +- gck/gck-slot.c | 19 ++++++ gck/gck.h | 4 + gck/tests/test-gck-enumerator.c | 38 +++++++++++- 6 files changed, 113 insertions(+), 67 deletions(-) commit 38401bd068f67f5d66aaf90f141968be22a6849d Author: Stef Walter Date: 2010-12-14 [gcr] Add distrusted GcrCertificateChainStatus However no implementation yet. gcr/gcr-certificate-chain.c | 68 +++++++++++++++++++++++------------------- gcr/gcr-certificate-chain.h | 1 + 2 files changed, 38 insertions(+), 31 deletions(-) commit d7ab8843f9af39b028fb4fd1bba0d35dc9c8f5d4 Author: Stef Walter Date: 2010-12-13 [gcr] Fix memory leaks in trust lookup tests. gcr/tests/test-trust.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit afec88907600a42b6805a4db1d34df30dce2572c Author: Stef Walter Date: 2010-12-13 [gcr] Fix memory leaks in async functions. g_async_result_get_source_object() refs its result. gcr/gcr-pkcs11-certificate.c | 6 ++++-- gcr/gcr-trust.c | 12 ++++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) commit 1f4b72288fd7898843e123347ac7bb49cfc638bd Author: Stef Walter Date: 2010-12-13 [gcr] Fix memory leaks in certificate chain code. gcr/gcr-certificate-chain.c | 10 ++++++---- gcr/tests/test-certificate-chain.c | 5 ++++- 2 files changed, 10 insertions(+), 5 deletions(-) commit 8de6a97ebb06217dd1f7e76de897298ae12fb51f Merge: 14526f5 bae8a84 Author: Stef Walter Date: 2010-12-13 Merge branch 'master' into trust-store commit bae8a84bedd067dc04dadab53cc9eed63244dab8 Author: Stef Walter Date: 2010-12-13 [gcr] Fix memory leaks in gcr test code. gcr/tests/unit-test-parser.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit b94d196fb85ecd3d111038c45e9364b5bae877cb Author: Stef Walter Date: 2010-12-13 [egg] Fix memory leaks in ASN.1 code. egg/egg-asn1x.c | 25 ++++++++++++++----------- 1 files changed, 14 insertions(+), 11 deletions(-) commit 437e8b3b3d304ffc4864daf82e506ae6f450e98c Author: Stef Walter Date: 2010-12-09 [gcr] Fix Gtk+ version check. 2.91.6 has the new style-context code, not 2.91.5 gcr/gcr-display-view.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 14526f568cb9acb177366792465bf8adcaf68956 Author: Stef Walter Date: 2010-12-13 Use term 'distrust' instead of 'untrust' Suggested by Yaron Sheffer and describes the concept much more aptly. gck/gck-dump.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 70d20dfa4502df7581b9e5f89e26a3e6bc644e02 Author: Stef Walter Date: 2010-12-11 [gcr] Documentation fixes for GcrCertificateChain gcr/gcr-certificate-chain.c | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) commit e6a42ba58e703d44f9272dfa53faad2eca2cdd08 Author: Stef Walter Date: 2010-12-11 [gcr] Certificate chain has a 'status' not a 'type' This makes things clearer. Also add enum and flags types for certificate chain stuff. docs/reference/gcr/gcr-sections.txt | 4 +- gcr/gcr-certificate-chain.c | 122 +++++++++++++++++++++++------------ gcr/gcr-certificate-chain.h | 27 ++++++-- gcr/gcr-trust.c | 2 +- gcr/tests/test-certificate-chain.c | 36 +++++----- 5 files changed, 122 insertions(+), 69 deletions(-) commit 03d5d5c022e398e5dc4c5e0f22cc5d7d55943482 Author: Stef Walter Date: 2010-12-11 [gcr] Fix problem where issuer was returned instead of subject. gcr/gcr-certificate.c | 2 +- gcr/tests/test-certificate.c | 44 +++++++++++++++++++++++++++++++++++------ 2 files changed, 38 insertions(+), 8 deletions(-) commit b3eca4c02fd0b5ba25f46dba0b9c038b21da9e11 Author: Stef Walter Date: 2010-12-10 [gcr] Fix memory leak in certificate chain building. gcr/gcr-certificate-chain.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 8b789f99bbff8f7059964e92baeeccb2c7075e9c Author: Stef Walter Date: 2010-12-10 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. gck/gck-dump.c | 27 ++++++++++++++------------- gcr/gcr-trust.c | 31 ++++++++++++++++--------------- gcr/tests/test-certificate-chain.c | 21 ++++++++++++--------- gcr/tests/test-trust.c | 10 ++++++---- 4 files changed, 48 insertions(+), 41 deletions(-) commit cd6eeb3fd4fe5b458c26f58f49ed9120b6ce19b2 Author: Stef Walter Date: 2010-12-10 Change terminology to 'pinned certificate' from 'exception'. The matching terminology of 'anchored certificate' and 'pinned certificate' makes things consistent and understandable. docs/reference/gcr/gcr-sections.txt | 24 ++-- gck/gck-dump.c | 6 +- gcr/gcr-certificate-chain.c | 8 +- gcr/gcr-trust.c | 262 +++++++++++++++++------------------ gcr/gcr-trust.h | 24 ++-- gcr/tests/test-certificate-chain.c | 8 +- gcr/tests/test-trust.c | 74 +++++----- 7 files changed, 201 insertions(+), 205 deletions(-) commit d8bbb8818a9a5aebb32d25e7d447f544fab5d512 Author: Stef Walter Date: 2010-12-10 [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. docs/reference/gcr/gcr-docs.sgml | 1 + docs/reference/gcr/gcr-sections.txt | 28 ++ docs/reference/gcr/gcr.types | 3 +- gcr/Makefile.am | 2 + gcr/gcr-certificate-chain.c | 735 +++++++++++++++++++++++++++++ gcr/gcr-certificate-chain.h | 113 +++++ gcr/gcr.h | 1 + gcr/tests/Makefile.am | 1 + gcr/tests/test-certificate-chain.c | 580 +++++++++++++++++++++++ gcr/tests/test-data/collabora-ca.cer | Bin 0 -> 1536 bytes gcr/tests/test-data/dhansak-collabora.cer | Bin 0 -> 1200 bytes 11 files changed, 1463 insertions(+), 1 deletions(-) commit 5dd722a4c8b9bea851ae45d26f4317a6bedf79b3 Author: Stef Walter Date: 2010-12-10 [gcr] Fix type check macros for certificate implementations. The type check macros for GcrSimpleCertificate and GcrPkcs11Certificate were wrong. gcr/gcr-pkcs11-certificate.h | 10 +++++----- gcr/gcr-simple-certificate.h | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) commit 0339e4817e36be54b25a774d6ab8ba7ee18b1b43 Author: Stef Walter Date: 2010-12-10 [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. gcr/gcr.pc.in | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 628b69f463e782aa41723d29b878775d1645d343 Author: Stef Walter Date: 2010-12-10 [gcr] Fix leak in gcr_pkcs11_certificate_lookup_issuer() gcr/gcr-pkcs11-certificate.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) commit 74731793ec7c4080bb1798e2fef6cd4f5242bad1 Author: Stef Walter Date: 2010-12-10 [gcr] Add function to load module from file. Add gcr_pkcs11_add_module_from_file() docs/reference/gcr/gcr-sections.txt | 1 + gcr/gcr-library.c | 36 ++++++++++++++++++++++++++++++++++- gcr/gcr-library.h | 4 +++ 3 files changed, 40 insertions(+), 1 deletions(-) commit 9da17aec70599ab3cea5b0fc0e62e87aed8dc0e9 Author: Stef Walter Date: 2010-12-10 [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() docs/reference/gcr/gcr-docs.sgml | 4 + docs/reference/gcr/gcr-sections.txt | 11 +++ gcr/Makefile.am | 3 +- gcr/gcr-import-dialog.c | 5 +- gcr/gcr-internal.h | 41 +++++---- gcr/gcr-library.c | 163 +++++++++++++++++++++++++++++++---- gcr/gcr-library.h | 49 +++++++++++ gcr/gcr-parser.c | 1 + gcr/gcr-pkcs11-certificate.c | 4 +- gcr/gcr-trust.c | 74 ++++++++++++++-- gcr/gcr.h | 1 + gcr/tests/test-pkcs11-certificate.c | 10 +-- gcr/tests/test-trust.c | 13 +-- 13 files changed, 317 insertions(+), 62 deletions(-) commit ebd97349604f58863c08bb5fc4f0b3bc0687aa07 Author: Stef Walter Date: 2010-12-09 [gcr] Fix Gtk+ version check. 2.91.6 has the new style-context code, not 2.91.5 gcr/gcr-display-view.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 1589aeaa30ec641c63f1b1525eb566f3a780bf51 Author: Stef Walter Date: 2010-12-07 [gcr] Complete documentation for various certificate types. docs/reference/gcr/gcr-docs.sgml | 41 ++++++++------ docs/reference/gcr/gcr-sections.txt | 24 ++++++++- docs/reference/gcr/gcr.types | 1 + gcr/gcr-certificate.c | 51 +++++++++++++++-- gcr/gcr-pkcs11-certificate.c | 102 ++++++++++++++++++++++++++++++---- gcr/gcr-pkcs11-certificate.h | 10 ++-- gcr/gcr-simple-certificate.c | 34 ++++++++++++ gcr/gcr-trust.c | 2 +- 8 files changed, 221 insertions(+), 44 deletions(-) commit 12622e94f4c2ab2acec53610bb26899204ea9aeb Author: Stef Walter Date: 2010-12-07 [gcr] Document trust storage and lookup functions. docs/reference/gcr/gcr-docs.sgml | 5 +- docs/reference/gcr/gcr-sections.txt | 87 ++------ gcr/gcr-trust.c | 427 ++++++++++++++++++++++++++++------- gcr/gcr-trust.h | 40 ++-- 4 files changed, 388 insertions(+), 171 deletions(-) commit cab8dc88179e9e38afab0cf3162dacabbe43cf8f Author: Stef Walter Date: 2010-12-07 [gcr] More build fixes. gcr/tests/test-certificate.c | 3 +-- gcr/tests/unit-test-parser.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) commit 2c56258d82130b729525ea3254e06954e7af53a8 Author: Stef Walter Date: 2010-12-06 [gcr] Implement GcrPkcs11Certificate which loads certs from PKCS#11 In particular we can lookup certs by issuer from the PKCS#11 store. gck/gck-mock.c | 7 + gck/gck-mock.h | 5 + gcr/gcr-pkcs11-certificate.c | 334 +++++++++++++++++++++++++++++++++++ gcr/gcr-pkcs11-certificate.h | 76 ++++++++ gcr/tests/Makefile.am | 1 + gcr/tests/test-pkcs11-certificate.c | 255 ++++++++++++++++++++++++++ 6 files changed, 678 insertions(+), 0 deletions(-) commit beeb8d6a3f13503d67ce15ee15359fc683ffa8d3 Author: Stef Walter Date: 2010-12-06 [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. gcr/Makefile.am | 2 ++ gcr/gcr-certificate-renderer.h | 4 ++-- gcr/gcr-certificate-widget.h | 4 ++-- gcr/gcr-importer.h | 10 +++++----- gcr/gcr-initializer.h | 4 ++-- gcr/gcr-key-renderer.h | 6 +++--- gcr/gcr-key-widget.h | 6 +++--- gcr/gcr-parser.h | 2 +- gcr/gcr-renderer.h | 4 ++-- gcr/gcr-types.h | 16 +++++++++++----- gcr/gcr.h | 3 ++- 11 files changed, 35 insertions(+), 26 deletions(-) commit 167075657e5cb87983f877942e7b052765f66ac6 Author: Stef Walter Date: 2010-12-06 [gcr] Move to a single header model. Similar to gtk, where you can only include to prevent future API breaks because of headers. gcr/Makefile.am | 1 + gcr/gcr-certificate-renderer.h | 4 ++++ gcr/gcr-certificate-widget.h | 4 ++++ gcr/gcr-certificate.h | 4 ++++ gcr/gcr-importer.h | 4 ++++ gcr/gcr-key-renderer.h | 4 ++++ gcr/gcr-key-widget.h | 4 ++++ gcr/gcr-parser.h | 4 ++++ gcr/gcr-simple-certificate.h | 4 ++++ gcr/gcr-trust.h | 4 ++++ gcr/gcr-types.h | 31 +++++++++++++++++++++++++++---- gcr/gcr-unlock-options-widget.h | 4 ++++ gcr/gcr.h | 19 ++++++++++++++++++- gcr/tests/ui-test-certificate.c | 25 +++++++++++++++++++++++-- gcr/tests/ui-test-key.c | 25 +++++++++++++++++++++++-- gcr/tests/ui-test-unlock-options.c | 24 +++++++++++++++++++++++- 16 files changed, 155 insertions(+), 10 deletions(-) commit d3b11cbaf14481432ef807c6de9587e1e7eb6d19 Author: Stef Walter Date: 2010-12-06 [gcr] Use void pointers instead of unsigned char for data. Use void pointers to make like simpler and clearer. gcr/gcr-certificate-renderer.c | 2 +- gcr/gcr-certificate.c | 14 +++++++------- gcr/gcr-certificate.h | 4 ++-- gcr/gcr-simple-certificate.c | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) commit 463fa78333200c369b05956040407f17665b76ad Author: Stef Walter Date: 2010-12-06 [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. gcr/gcr-certificate.c | 58 ++++++++-- gcr/gcr-certificate.h | 3 + gcr/tests/Makefile.am | 2 +- gcr/tests/test-certificate.c | 181 +++++++++++++++++++++++++++ gcr/tests/test-data/der-certificate-dsa.cer | Bin 0 -> 1639 bytes gcr/tests/unit-test-certificate.c | 157 ----------------------- 6 files changed, 235 insertions(+), 166 deletions(-) commit dd3d82878576fadd3cd861bda1e8ce71ebd503d3 Author: Stef Walter Date: 2010-12-06 [gcr] GcrSimpleCertificate tests. gcr/gcr-simple-certificate.c | 2 - gcr/tests/Makefile.am | 1 + gcr/tests/test-simple-certificate.c | 84 +++++++++++++++++++++++++++++++++++ 3 files changed, 85 insertions(+), 2 deletions(-) commit 3073a32c5c6f9fa81efa3a3b210142e05c40b042 Merge: 3e82d4a eb4ce26 Author: Stef Walter Date: 2010-12-06 Merge branch 'master' into trust-store commit eb4ce2617284ed0c94ce5be47d8daa1065017d53 Author: Stef Walter Date: 2010-12-06 [gck] Don't load *.la files as PKCS#11 modules. grumble, grumble, libtool, grumble. gck/gck-modules.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 3e82d4a2e004ec566701589410dfbe67ef617ad0 Merge: 4310383 46dffd5 Author: Stef Walter Date: 2010-12-06 Merge branch 'master' into trust-store commit 46dffd50d152b429e8bf82b269aa11d79749adcf Author: Stef Walter Date: 2010-12-06 [gcr] Fix build for GTK+3 style-context changes. Use new gtk_widget_override_background_color() function. gcr/gcr-display-view.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit 43103837cd963047826941ccdda8c7286ef7b4a2 Author: Stef Walter Date: 2010-12-02 [gcr] Make GcrSimpleCertificate constructor accept simple pointer. Make it easier to deal with data whether unsigned or signed, gint8 or char, etc. gcr/gcr-simple-certificate.c | 2 +- gcr/gcr-simple-certificate.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit c74278f525ab829cefbf8f2198ada648b8e669c9 Author: Stef Walter Date: 2010-11-29 [gcr] Complete tests of gcr_trust_xxx functionality. gck/gck-mock.c | 16 ++++++++ gck/gck-mock.h | 10 +++++ gcr/gcr-trust.c | 39 ++++++++++--------- gcr/gcr-trust.h | 12 +++--- gcr/tests/test-trust.c | 98 ++++++++++++++++++++++++++++++++++++------------ 5 files changed, 126 insertions(+), 49 deletions(-) commit f78a2a1bf8b36b012186f935afc72722a63e2ec1 Author: Stef Walter Date: 2010-11-29 [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. gck/gck-enumerator.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) commit 4cb8515c07723612b649f35b3eec8844536c9ff3 Author: Stef Walter Date: 2010-11-29 [gck] Add functionality for dumping PKCS#11 attributes. gck_attribute_dump() and gck_attributes_dump() gck/Makefile.am | 1 + gck/gck-dump.c | 348 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ gck/gck.h | 3 + 3 files changed, 352 insertions(+), 0 deletions(-) commit aee15f46d356bb249583fa703c3d183e5d3c4e9a Author: Stef Walter Date: 2010-11-24 [pkcs11] Rename CKA_G_REMOTE to CKA_G_PEER (better terminology) * Also update various locations where we used 'remote' to 'peer' gcr/gcr-trust.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 87e3b57f67bb30d6acb061b92cb406d58b059b83 Author: Stef Walter Date: 2010-11-24 [testing] Preprocess test files before searching for tests. * Allows tests to be commented out or ifdefed. * Faster building of tests. * Other cleanup of tests. egg/tests/Makefile.am | 6 ++- egg/tests/test-asn1.c | 46 +++++++++++++++--------------- egg/tests/test-dn.c | 12 ++++---- egg/tests/test-padding.c | 30 ++++++++++---------- egg/tests/unit-test-asn1.c | 34 +++++++++++----------- egg/tests/unit-test-dh.c | 20 ++++++------ egg/tests/unit-test-hex.c | 8 ++-- egg/tests/unit-test-oid.c | 2 +- egg/tests/unit-test-openssl.c | 6 ++-- egg/tests/unit-test-secmem.c | 14 ++++---- egg/tests/unit-test-spawn.c | 10 +++--- egg/tests/unit-test-symkey.c | 12 ++++---- gck/tests/test-gck-attributes.c | 56 ++++++++++++++++++------------------ gck/tests/test-gck-crypto.c | 22 +++++++------- gck/tests/test-gck-enumerator.c | 18 ++++++------ gck/tests/test-gck-module.c | 14 ++++---- gck/tests/test-gck-modules.c | 22 +++++++------- gck/tests/test-gck-object.c | 20 ++++++------ gck/tests/test-gck-session.c | 16 +++++----- gck/tests/test-gck-slot.c | 18 ++++++------ gck/tests/test-gck-uri.c | 30 ++++++++++---------- gcr/tests/test-trust.c | 18 ++++++------ gcr/tests/unit-test-certificate.c | 30 ++++++++++---------- gcr/tests/unit-test-parser.c | 6 ++-- 24 files changed, 236 insertions(+), 234 deletions(-) commit f87d1c43bda33e1abc85661c51f1cb2652d10e1e Author: Stef Walter Date: 2010-11-23 [egg] Add utilities so GByteArray can be used in GHashTable. Update xdg pkcs11 module to use these new utils. egg/Makefile.am | 1 + egg/egg-byte-array.c | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++ egg/egg-byte-array.h | 33 +++++++++++++++++++++++++ 3 files changed, 99 insertions(+), 0 deletions(-) commit caeef7ee0997035903ce6808e6da281a6ec83859 Author: Stef Walter Date: 2010-11-23 [egg] Encode empty SET OF and SEQUENCE OF properly. Make choices based on whether they contain any other real valid elements inside. egg/egg-asn1x.c | 44 +++++++++++++++++++++++++++++++------------- 1 files changed, 31 insertions(+), 13 deletions(-) commit d5a9593db3efd28c72dbe7fcc1f2dde894b93337 Author: Stef Walter Date: 2010-11-23 [egg] Add functions testing ASN.1 and printing out messages. egg/egg-asn1x.h | 11 +++++++++++ egg/tests/unit-test-asn1.c | 5 ++++- 2 files changed, 15 insertions(+), 1 deletions(-) commit 0b499bf7da1ee16b3454d1138f8b88bdd9a96f23 Author: Stef Walter Date: 2010-11-23 [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. egg/egg-asn1x.c | 151 +++++++++++++++++++++++++++++++------------------ egg/egg-asn1x.h | 3 + egg/tests/test-asn1.c | 56 ++++++++++++++++++ 3 files changed, 154 insertions(+), 56 deletions(-) commit c3a35aec3b446c13707d51029cade3c835d11b22 Author: Stef Walter Date: 2010-11-22 [egg] Implement egg_asn1x_set_raw_element() for explicitly tagged types. Also fix encoding of explicitly tagged choice elements. egg/egg-asn1x.c | 98 +++++++++++++++++++++++++++++++++---------------- egg/tests/test-asn1.c | 90 +++++++++++++++++++++++++++++++++++++++++++++ egg/tests/test.asn | 9 ++++ 3 files changed, 165 insertions(+), 32 deletions(-) commit 7abafa2697a165e0eda7c52689c0a8aea9a2bdb5 Author: Stef Walter Date: 2010-11-21 [egg] Produce proper messages for mismatched tags in DER parsing. egg/egg-asn1x.c | 34 +++++++++++++++++++++------------- 1 files changed, 21 insertions(+), 13 deletions(-) commit 819a315ea232da8cb4fdea8d86315b3487ec93ae Author: Stef Walter Date: 2010-11-19 Fix up gcr library to support trust assertions. gcr/gcr-trust.c | 446 ++++++++++++++++++++++++++---------------------- gcr/gcr-trust.h | 127 +++++++------- gcr/tests/test-trust.c | 75 ++++----- 3 files changed, 345 insertions(+), 303 deletions(-) commit f4bd99b7e894759f195a3709b587e5c4a68fdef3 Author: Stef Walter Date: 2010-11-19 Better ASN.1 test coverage and fixes. egg/egg-asn1x.c | 14 +++++++- egg/tests/test-asn1.c | 78 ++++++++++++++++++++++++++++++++++++++++--- egg/tests/test.asn | 2 + egg/tests/unit-test-asn1.c | 15 ++++++++ 4 files changed, 101 insertions(+), 8 deletions(-) commit dda1e45061a4a8e02a2bf26be0850431be210f03 Merge: c71b154 b5b421b Author: Stef Walter Date: 2010-11-11 Merge branch 'master' into trust-store commit b5b421b9fd578fe1d56e47fe664a1d8ade0e555e Author: Danielle Madeley Date: 2010-10-14 [gcr] Replace gp11-0 with gck in pkgconfig file gcr/gcr.pc.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit ebef3a7c6f415e604e5de34c79f18e4fe7e07825 Author: Stef Walter Date: 2010-10-11 [gcr] Fix broken dispose of GcrCertificateWidget Dispose and finalize of the gcr widgets was broken. https://bugzilla.gnome.org/show_bug.cgi?id=631840 gcr/gcr-display-view.c | 10 +++++----- gcr/tests/ui-test-certificate.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) commit e0da78438727ea41f49035b005e1f2a010d94fb2 Author: Stef Walter Date: 2010-10-08 [gp11] Remove gp11 library. Remove gp11 library now that seahorse has migrated to libgck. libgck is the replacement for gp11 gp11/Makefile.am | 66 - gp11/gp11-attributes.c | 1467 ---------------- gp11/gp11-call.c | 541 ------ gp11/gp11-marshal.list | 3 - gp11/gp11-misc.c | 437 ----- gp11/gp11-module.c | 1234 -------------- gp11/gp11-object.c | 1621 ------------------ gp11/gp11-private.h | 162 -- gp11/gp11-session.c | 2893 -------------------------------- gp11/gp11-slot.c | 1067 ------------ gp11/gp11.h | 1528 ----------------- gp11/gp11.pc.in | 14 - gp11/pkcs11.h | 30 - gp11/tests/Makefile.am | 43 - gp11/tests/gp11-test-module.c | 1702 ------------------- gp11/tests/gp11-test.h | 46 - gp11/tests/test-gp11-mechanism.c | 60 - gp11/tests/unit-test-gp11-attributes.c | 528 ------ gp11/tests/unit-test-gp11-crypto.c | 595 ------- gp11/tests/unit-test-gp11-module.c | 159 -- gp11/tests/unit-test-gp11-object.c | 463 ----- gp11/tests/unit-test-gp11-session.c | 323 ---- gp11/tests/unit-test-gp11-slot.c | 148 -- 23 files changed, 0 insertions(+), 15130 deletions(-) commit f944e5d0721904adeedf51cc46926d7207ba0663 Author: Stef Walter Date: 2010-10-08 Release version 2.91.1 gcr/gcr-key-renderer.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 168d4aba8037391db46a3dea0cd62014cb7cb606 Author: Stef Walter Date: 2010-10-06 [gcr] Fixes for building with GTK+ 2.91.0 Mostly related to no more expose_event and only having draw signal. docs/reference/gcr/Makefile.am | 4 +- gcr/gcr-display-view.c | 113 ++++++++++++++++++++++++++------------- gcr/tests/Makefile.am | 11 +++-- 3 files changed, 85 insertions(+), 43 deletions(-) commit 662167ac9213191750f13881a042d7b2bd620c9e Author: Stef Walter Date: 2010-10-06 [gck] Fix wrong library name in pkgconfig file pkgconfig file still contained gp11 gck/gck.pc.in | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit da76686766140f97b99828c8f6d0eaaf53556c49 Merge: ed45fcd 6fda035 Author: Stef Walter Date: 2010-10-05 Merge branch 'ui-widgets' commit ed45fcd66034328d7fad447a69c09578e8be6b6c Merge: 524f829 a92df97 Author: Stef Walter Date: 2010-10-05 Merge branch 'gnome-2-32' commit 524f829b065b25e8c07fdf60c20d9fa2eeba968a Author: William Jon McCann Date: 2010-10-02 Fix typo to fix the build gck/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 924db905b4876ec40f65f1604f416acde62bfaf4 Author: Philip Withnall Date: 2010-10-01 Miscellaneous string fixes Small grammar and punctuation fixes. egg/egg-oid.c | 2 +- gck/gck-misc.c | 6 +++--- gcr/gcr-import-dialog.ui | 7 +++++-- gcr/gcr-unlock-options-widget.ui | 2 +- 4 files changed, 10 insertions(+), 7 deletions(-) commit 1ab342c9d58551064930540bf458273ae8d5194d Merge: a92df97 5c90c21 Author: Stef Walter Date: 2010-10-01 Merge branch 'gck-work' commit 5c90c21822e87d50680abb5391ac413552ea0c1a Author: Stef Walter Date: 2010-10-01 [gck] Build libgck docs and remove gp11 docs. Replace the gp11 docs with gck ones docs/reference/Makefile.am | 2 +- docs/reference/gck/Makefile.am | 98 ++++++++++++++++ docs/reference/gck/gck-docs.sgml | 25 ++++ docs/reference/gck/gck-overrides.txt | 2 + docs/reference/gck/gck-sections.txt | 195 ++++++++++++++++++++++++++++++++ docs/reference/gck/gck.types | 4 + docs/reference/gp11/Makefile.am | 99 ---------------- docs/reference/gp11/gp11-docs.sgml | 25 ---- docs/reference/gp11/gp11-overrides.txt | 2 - docs/reference/gp11/gp11-sections.txt | 195 -------------------------------- docs/reference/gp11/gp11.types | 4 - 11 files changed, 325 insertions(+), 326 deletions(-) commit ac8271cbb7e618e33d4ca0f414689d902260aaf2 Author: Stef Walter Date: 2010-10-01 [gck] Mark the gck API as unstable with a define. Use -DGCK_API_SUBJECT_TO_CHANGE in order to compile. gck/Makefile.am | 1 + gck/gck.h | 11 ++++++++++- gck/tests/Makefile.am | 6 ++++-- gcr/Makefile.am | 1 + gcr/tests/Makefile.am | 4 +++- 5 files changed, 19 insertions(+), 4 deletions(-) commit 56d3d108bee91cbaf6b8eee6c5dc69834475e875 Author: Stef Walter Date: 2010-09-28 [gck] GckAttribute with const value pointer. We want to reinforce the fact that attributes are not modifiable once they're setup. gck/gck-attributes.c | 6 +++--- gck/gck.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) commit 5ec0ffd4638178857abef8d8175efffd55aaba52 Author: Stef Walter Date: 2010-09-28 [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. gck/gck-misc.c | 83 ------------------------------- gck/gck-private.h | 2 + gck/gck-session.c | 106 ++++++++++++++++++++++++++++------------ gck/gck.h | 12 +---- gck/tests/Makefile.am | 1 - gck/tests/test-gck-crypto.c | 105 ++++++++++++++++------------------------ gck/tests/test-gck-mechanism.c | 60 ---------------------- 7 files changed, 120 insertions(+), 249 deletions(-) commit 01c69521390d93ae4a80b2c8db71e5eab0f02464 Author: Stef Walter Date: 2010-09-27 [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. gck/gck-object.c | 138 +++++++++++++----------------------- gck/gck-session.c | 164 +++++++++++++++++------------------------- gck/gck-slot.c | 4 +- gck/gck.h | 76 ++++++++++---------- gck/tests/test-gck-crypto.c | 52 ++++---------- gck/tests/test-gck-object.c | 43 +++++------- gck/tests/test-gck-session.c | 25 +++---- 7 files changed, 194 insertions(+), 308 deletions(-) commit dd5368d83e0f57dda1a5078b144b4d12256802fa Author: Stef Walter Date: 2010-09-27 [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. gck/gck-enumerator.c | 25 ++++++++++++----- gck/gck-mock.c | 4 +-- gck/gck-module.c | 49 ++++------------------------------ gck/gck-modules.c | 18 ++++++------ gck/gck-private.h | 2 +- gck/gck-session.c | 53 ++++++++++++++++++++++++++++++------ gck/gck-slot.c | 60 +++++++++++++++++++++++------------------- gck/gck.h | 46 +++++++++++++++++++------------ gck/tests/test-gck-crypto.c | 19 ++++++++----- gck/tests/test-gck-session.c | 29 +++++-------------- gcr/gcr-importer.c | 8 +++--- gcr/gcr-library.c | 2 +- 12 files changed, 165 insertions(+), 150 deletions(-) commit c71b15445b3f2b1d742969b6ea95bdfea1d729fe Author: Stef Walter Date: 2010-09-20 [egg] Add accessor functions for enumerated ASN.1 values. Add getter and setter for ENUMERATED ASN.1 values, and DER encoder. egg/egg-asn1x.c | 99 +++++++++++++++++++++++++++++++++++++++++++++---- egg/egg-asn1x.h | 5 ++ egg/tests/test-asn1.c | 33 ++++++++++++++++ egg/tests/test.asn | 7 +++ 4 files changed, 136 insertions(+), 8 deletions(-) commit 54d28efac4427b69fa6bffbaddd5086bcac2b255 Author: Stef Walter Date: 2010-09-19 [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. gcr/gcr-trust.c | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) commit 446bbff692d093cbf90c89e75d39e082059a6196 Author: Stef Walter Date: 2010-09-18 [gcr] Use gpointer instead guchar for GSimpleCertificate Fix up for consistency. gcr/gcr-simple-certificate.c | 2 +- gcr/gcr-simple-certificate.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 7017bb01721566ab524a9326eedd617bc93ffc9d Author: Stef Walter Date: 2010-09-18 [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. gcr/Makefile.am | 2 + gcr/gcr-internal.h | 12 + gcr/gcr-library.c | 55 +++++ gcr/gcr-trust.c | 579 ++++++++++++++++++++++++++++++++++++++++++++++++ gcr/gcr-trust.h | 93 ++++++++ gcr/gcr-types.h | 4 + gcr/gcr.h | 2 + gcr/tests/Makefile.am | 1 + gcr/tests/test-trust.c | 238 ++++++++++++++++++++ 9 files changed, 986 insertions(+), 0 deletions(-) commit 940843d773e60c6941b3ccef60ec9ee8263fae11 Author: Stef Walter Date: 2010-09-18 [gcr] Functions for access GcrCertificate subject and issuer raw DER Add the gcr_certificate_get_issuer_raw() and gcr_certificate_get_subject_raw() functions for accessing raw DER of issuer and certificate respectively. Also use correct function for accessing raw serial number. gcr/gcr-certificate.c | 36 +++++++++++++++++++++++++++++++++--- gcr/gcr-certificate.h | 6 ++++++ gcr/tests/unit-test-certificate.c | 22 ++++++++++++++++++++++ 3 files changed, 61 insertions(+), 3 deletions(-) commit 268933c0cef04980c76ec5fc341fbf7fcb2988c0 Author: Stef Walter Date: 2010-09-15 [egg] Add egg_asn1x_append() for adding to SEQ OF or SET OF To add a value to a SEQUENCE OF or SET OF, added the function egg_asn1x_append(). egg/egg-asn1x.c | 25 +++++++++++++++++++++++++ egg/egg-asn1x.h | 2 ++ egg/tests/test-asn1.c | 33 +++++++++++++++++++++++++++++++++ egg/tests/test.asn | 2 ++ 4 files changed, 62 insertions(+), 0 deletions(-) commit bf3a54ae2ff4d62cbed08e2d0e1b83143b6d476e Author: Stef Walter Date: 2010-09-18 [gck] Add gck_attributes_add_all() for copying GckAttributes New function allows deep copying of a GckAttributes array. gck/gck-attributes.c | 16 ++++++++++++++++ gck/gck.h | 3 +++ gck/tests/test-gck-attributes.c | 23 +++++++++++++++++++++++ 3 files changed, 42 insertions(+), 0 deletions(-) commit cf62709ec638cfc144e3832f080defa39d99fc06 Author: Stef Walter Date: 2010-09-18 [gck] Rework testing and make mock module. Make mock Pkcs#11 module better modularized, and available to other tests of other modules. Add more test helpers. gck/Makefile.am | 22 +- gck/gck-mock.c | 1787 +++++++++++++++++++++++++++++++++++++++ gck/gck-mock.h | 409 +++++++++ gck/gck-test.c | 165 ++++ gck/gck-test.h | 68 ++ gck/tests/Makefile.am | 14 +- gck/tests/gck-test-module.c | 1693 ------------------------------------- gck/tests/gck-test.h | 38 +- gck/tests/mock-test-module.c | 10 + gck/tests/test-gck-crypto.c | 48 +- gck/tests/test-gck-enumerator.c | 2 +- gck/tests/test-gck-module.c | 4 +- gck/tests/test-gck-modules.c | 2 +- gck/tests/test-gck-object.c | 4 +- gck/tests/test-gck-session.c | 2 +- gck/tests/test-gck-slot.c | 2 +- 16 files changed, 2492 insertions(+), 1778 deletions(-) commit b336c055d3f25dea8f3484556c25c07dd51a0e7a Author: Stef Walter Date: 2010-09-18 [gck] Expose CK_BBOOL and CK_ULONG casting helpers. Add gck_value_to_ulong() and gck_value_to_boolean() to check and cast CK_BBOOL and CK_ULONG. gck/gck-attributes.c | 16 ++++++++----- gck/gck-misc.c | 20 +++++++++++++++++ gck/gck.h | 8 +++++++ gck/tests/test-gck-attributes.c | 44 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 82 insertions(+), 6 deletions(-) commit 6fda03583c36ef30d6eee4e76ae8eef462056054 Merge: 83efa30 f21cbd3 Author: Stef Walter Date: 2010-09-13 Merge branch 'gck-work' into ui-widgets commit f21cbd38054463f5c1511684865333448deb2033 Merge: b67d504 a92df97 Author: Stef Walter Date: 2010-09-12 Merge branch 'master' into gck-work commit a92df974c17f83c5a47fa69b26a702dfe7f88c15 Author: Stef Walter Date: 2010-09-12 Release version 2.31.92 egg/tests/test-data/echo-script.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit eabe5d4b5a10cddf005af2f59ab7237a58b65b94 Merge: 65b89ad 89da98e Author: Stef Walter Date: 2010-09-12 Merge branch 'pam-client-no-max-path' commit 65b89ada7cee1c82aa932f37318c917eb534b310 Author: Stef Walter Date: 2010-09-11 [egg] Fix secure memory assertion. Fix assertion that occurs when searching for pool to free memory from. https://bugzilla.gnome.org/show_bug.cgi?id=616175 egg/egg-secure-memory.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 89da98e38368af271cc492f78801baa423c99cdd Merge: 8dc82b5 25cb3fb Author: Stef Walter Date: 2010-09-11 Merge branch 'gsettings-migration' commit b67d504b69c6539378e243fb1600623c959cf492 Author: Stef Walter Date: 2010-09-10 [gck] Fix double free with copied attributes. Copied attributes would result in a double free if length was zero. gck/gck-attributes.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 8dc82b53ebf4e28e3881614deff81a871127cd63 Author: Stef Walter Date: 2010-09-10 [gp11] Fix double free with copied attributes. Copied attributes would result in a double free if length was zero. gp11/gp11-attributes.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 821353f5ab4b6f4c6652c840c7992c5c3ac61ed7 Merge: 76ada80 ddd22da Author: Stef Walter Date: 2010-09-08 Merge remote branch 'pwith/628910-header-dir' commit 25cb3fb1536327f3ff2abc05fd69a5dc8ea3c671 Author: Stef Walter Date: 2010-09-08 [schema] Add in org.gnome.crypto.pgp gsettings schema. https://bugzilla.gnome.org/show_bug.cgi?id=622401 schema/Makefile.am | 6 ++++-- schema/org.gnome.crypto.pgp.convert | 6 ++++++ schema/org.gnome.crypto.pgp.gschema.xml | 29 +++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 2 deletions(-) commit 16a444d9c1cfd6605bed82d92a41a5f626fc5ad3 Author: Stef Walter Date: 2010-09-07 [gpg-agent] Add gsettings to store passphrase preferences. Depends on new glib 2.25.0 and later. schema/Makefile.am | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) commit ddd22da57980fffcde115a54d27627e25ae7479f Author: Philip Withnall Date: 2010-09-07 Fix the header installation directory for libgcr Applications using libgcr expect to be able to #include , so we need to install the headers in a gcr/ subdirectory of the major-versioned gcr-$MAJOR/ directory. Closes: bgo#628910 gcr/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 76ada80267886babb03bb94a330b2ff935e11425 Author: Stef Walter Date: 2010-09-05 [gcr, ui] Rework how unlock options are loaded and handled. * Rework GcrUnlockOptionsWidget API. * Prepare for migration to gsettings. gcr/Makefile.am | 2 + gcr/gcr-unlock-options-widget.c | 240 ++++++++++++++++++++++++------------ gcr/gcr-unlock-options-widget.h | 29 +++-- gcr/gcr-unlock-options-widget.ui | 36 ++++-- gcr/gcr-unlock-options.h | 32 +++++ gcr/tests/Makefile.am | 15 ++- gcr/tests/ui-test-unlock-options.c | 83 +++++++++++++ 7 files changed, 337 insertions(+), 100 deletions(-) commit 3306e60e694a02b90614f91924cb0b6fc3560f79 Merge: 3659b73 ff5ce4a Author: Stef Walter Date: 2010-09-01 Merge branch '624570-gtk3-option' commit ff5ce4a0e3adbfdbd64411c460140135991121db Author: Philip Withnall Date: 2010-08-25 Port to GTK+ 3 Add a --with-gtk=[2.0|3.0] option to configure to allow building against GTK+ 2 or GTK+ 3. Closes: bgo#624570 docs/reference/gcr/Makefile.am | 5 ++--- gcr/Makefile.am | 14 +++++++------- gcr/gcr.pc.in | 8 ++++---- gcr/tests/Makefile.am | 2 +- 4 files changed, 14 insertions(+), 15 deletions(-) commit 83efa30cf2d98a364d89f240a2abe29273b4d73a Author: Stef Walter Date: 2010-08-30 [gcr] Don't delete entire content when one renderer redraws. gcr/gcr-display-view.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) commit 32256bfc21417e940e06a28e1476886217dd39d7 Author: Stef Walter Date: 2010-08-30 [gcr] Fix problems with expanding details not showing scrollbar. * The invisible attribute of tags in GtkTextView is buggy. So rerender instead when expanding. gcr/gcr-display-view.c | 37 +++++++++++++++++++++++++++++-------- 1 files changed, 29 insertions(+), 8 deletions(-) commit 4286f38491656e46eebbe2412ceceb91a4b70d3a Author: Stef Walter Date: 2010-08-30 [gcr] Rework the architecture of viewers. * GcrRenderer renders data like a certificate. * GcrViewer is what the renderers render to. * GcrXxxWidget are helper classes for quick instatiation. gcr/Makefile.am | 12 +- gcr/gcr-certificate-renderer.c | 540 ++++++++++++++++++++++++++++++++++++ gcr/gcr-certificate-renderer.h | 67 +++++ gcr/gcr-certificate-widget.c | 395 +++------------------------ gcr/gcr-certificate-widget.h | 9 +- gcr/gcr-display-view.c | 585 ++++++++++++++++++++++++++++----------- gcr/gcr-display-view.h | 13 +- gcr/gcr-key-renderer.c | 342 +++++++++++++++++++++++ gcr/gcr-key-renderer.h | 62 ++++ gcr/gcr-key-widget.c | 239 +++-------------- gcr/gcr-key-widget.h | 6 +- gcr/gcr-renderer.c | 169 +++++++++++ gcr/gcr-renderer.h | 73 +++++ gcr/gcr-view.c | 144 ---------- gcr/gcr-view.h | 53 ---- gcr/gcr-viewer.c | 99 +++++++ gcr/gcr-viewer.h | 73 +++++ gcr/tests/ui-test-certificate.c | 1 - gcr/tests/ui-test-key.c | 3 +- 19 files changed, 1962 insertions(+), 923 deletions(-) commit 80a484f7bceb0b6cebbd8bf5a219fa1c18c882fe Author: Stef Walter Date: 2010-08-29 [gcr] Remove the old style certificate widgets. This is replaced by the unified certificate widget with both basics and details. docs/reference/gcr/gcr.types | 2 - gcr/Makefile.am | 4 - gcr/gcr-certificate-basics-widget.c | 306 ------------------- gcr/gcr-certificate-basics-widget.h | 62 ---- gcr/gcr-certificate-details-widget.c | 549 ---------------------------------- gcr/gcr-certificate-details-widget.h | 62 ---- gcr/gcr.h | 3 +- 7 files changed, 1 insertions(+), 987 deletions(-) commit 3659b73047186b6dcc2ff55f0b6aaf4ded286346 Author: Philip Withnall Date: 2010-08-25 Add missing default cases in switch statements gp11/gp11-module.c | 6 ++++++ gp11/gp11-object.c | 6 ++++++ gp11/gp11-session.c | 6 ++++++ gp11/gp11-slot.c | 6 ++++++ 4 files changed, 24 insertions(+), 0 deletions(-) commit 2e021a5073139ab5c8c7230aa64f241bff074912 Author: Philip Withnall Date: 2010-08-25 Fix shadowing of a glibc function to fix a gcc warning gp11/gp11-attributes.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit c3a9272752c3dbbd9abaf33f3cfa432293f60b2d Author: Philip Withnall Date: 2010-08-25 Use #ifdef instead of #if to fix gcc warnings gp11/gp11-slot.c | 2 +- gp11/gp11.h | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) commit 1d849a4f170b20f2e5f7d041ab2d8729a4e814b8 Author: Philip Withnall Date: 2010-08-28 Use "different from" rather than "different than" in a translatable string gp11/gp11-misc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit d5f926dde07a84fbed1e5ee2a4c0946653feed30 Author: Stef Walter Date: 2010-08-27 [gpg-agent] Change the agent prompt strings to not talk about keyrings. * Added way to change strings in GcrUnlockOptionsWidget * GkuPrompt now has a way to transfer these strings to gnome-keyring-prompt gcr/gcr-unlock-options-widget.c | 51 +++++++++++++++++++++++++++++++++++++++ gcr/gcr-unlock-options-widget.h | 13 ++++++++++ 2 files changed, 64 insertions(+), 0 deletions(-) commit 4390b2a872ee5d86248e5db0a3b8324cb2fe22f2 Merge: c4a5791 18c11c0 Author: Stef Walter Date: 2010-08-28 Merge branch 'gck-work' into ui-widgets commit c4a57919bef7446688e99b7aa8fcb5ab7326dd8b Author: Stef Walter Date: 2010-08-28 [gcr] Use cairo instead of old GDK draw stuff. Remove use of gdk_draw_pixbuf(). gcr/gcr-display-view.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) commit 2a0562837d7c2ccd69ae57618e2a89cf0534d88e Author: Stef Walter Date: 2010-08-27 [gcr] Install the gcr-simple-certificate.h header properly. gcr/Makefile.am | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 18c11c0c269ac13b51abc86fa4af82e185024793 Author: Stef Walter Date: 2010-08-25 Port gnome-keyring to new gck library. egg/Makefile.am | 12 ++++++- gck/Makefile.am | 2 +- gck/gck-enumerator.c | 60 ++++++++++++++++++++++++++++-------- gck/gck-modules.c | 21 +++++++++++-- gck/gck-session.c | 28 +++++++++++++++++ gck/gck.h | 2 + gck/pkcs11.h | 4 +- gcr/Makefile.am | 2 +- gcr/gcr-import-dialog.c | 26 ++++++++-------- gcr/gcr-import-dialog.h | 6 ++-- gcr/gcr-importer.c | 70 +++++++++++++++++++++--------------------- gcr/gcr-importer.h | 6 ++-- gcr/gcr-initializer.h | 4 +- gcr/gcr-internal.h | 2 - gcr/gcr-library.c | 17 ++-------- gcr/gcr-parser.c | 28 ++++++++-------- gcr/gcr-parser.h | 2 +- gcr/gcr-types.h | 8 ++-- gcr/tests/unit-test-parser.c | 4 +- 19 files changed, 190 insertions(+), 114 deletions(-) commit 6de786291040d4f4498c13ed8f16270d6386e943 Author: Stef Walter Date: 2010-08-09 [gck] Implement PkCS#11 URI's and enumeration * PKCS#11 URI spec is not completely finalized yet. * Removed old callback style enumeration and replaced with gio style. gck/Makefile.am | 3 + gck/gck-call.c | 18 +- gck/gck-enumerator.c | 689 +++++++++++++++++++++++++++++++++++++++ gck/gck-misc.c | 2 +- gck/gck-modules.c | 166 +++++----- gck/gck-private.h | 13 +- gck/gck-slot.c | 27 ++ gck/gck-uri.c | 350 ++++++++++++++++++++ gck/gck.h | 113 ++++++- gck/tests/Makefile.am | 5 +- gck/tests/test-gck-enumerator.c | 170 ++++++++++ gck/tests/test-gck-module.c | 4 + gck/tests/test-gck-modules.c | 145 ++++++++ gck/tests/test-gck-slot.c | 56 ++++ gck/tests/test-gck-uri.c | 229 +++++++++++++ 15 files changed, 1878 insertions(+), 112 deletions(-) commit 89b8c0432063d0706e6925f421d73dbcdb3c4368 Author: Stef Walter Date: 2010-08-09 [egg] Make the hex decoder more robust egg/egg-hex.c | 52 ++++++++++++++++++++++++++++++++++---------- egg/egg-hex.h | 12 +++++++-- egg/tests/unit-test-hex.c | 30 +++++++++++++++++++------ 3 files changed, 72 insertions(+), 22 deletions(-) commit 5c074df2bc3aced9ae794b149214b29f46a6b3a2 Author: Stef Walter Date: 2010-08-09 [gck] Fix up tests problems after recent commits. gck/tests/test-gck-crypto.c | 12 ++++++------ gck/tests/test-gck-object.c | 5 +++-- gck/tests/test-gck-session.c | 4 ++-- 3 files changed, 11 insertions(+), 10 deletions(-) commit 4a16baf45b8a236d5596574624eccd3d065b4a16 Merge: 31ad926 d7da077 Author: Stef Walter Date: 2010-08-08 Merge branch 'master' into gck-work commit 31ad926b70b87654052a0d1af284fd992b85afd9 Author: Stef Walter Date: 2010-08-01 [gck] Add methods for listing and initializing registered modules. * We use the concept of a PKCS #11 registry as outlined here: http://wiki.cacert.org/Pkcs11TaskForce gck/Makefile.am | 3 +- gck/gck-modules.c | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++ gck/gck.h | 4 +++ 3 files changed, 71 insertions(+), 1 deletions(-) commit 0813c5ac6710daa2f5f1518bc53c221e8f1866da Author: Stef Walter Date: 2010-08-01 [gck] Make various objects pretty much immutable. * Except for certain flags used during destruction, which we use atomically internally. gck/gck-module.c | 221 +++++++++++------------------------------- gck/gck-object.c | 150 ++++++++++++---------------- gck/gck-session.c | 146 ++++++++-------------------- gck/gck-slot.c | 81 ++++++++------- gck/gck.h | 23 +++-- gck/tests/test-gck-crypto.c | 27 +++-- gck/tests/test-gck-module.c | 8 +- gck/tests/test-gck-object.c | 2 +- gck/tests/test-gck-session.c | 37 ++++--- gck/tests/test-gck-slot.c | 4 +- 10 files changed, 265 insertions(+), 434 deletions(-) commit edcaa16713a12ab158580a20cc792655663984c7 Author: Stef Walter Date: 2010-07-31 [gck] Remove most complex var args functions. * These functions could not be bound through gobject introspection. * They were hard to get right even in C, because the varargs were triples. gck/gck-attributes.c | 136 ------------------------ gck/gck-modules.c | 76 +------------ gck/gck-object.c | 56 +---------- gck/gck-session.c | 223 ++------------------------------------- gck/gck.h | 49 --------- gck/tests/gck-test-module.c | 70 ++++++------ gck/tests/test-gck-attributes.c | 78 +------------- gck/tests/test-gck-crypto.c | 42 +++---- gck/tests/test-gck-module.c | 9 +- gck/tests/test-gck-object.c | 127 ++++++++--------------- gck/tests/test-gck-session.c | 12 +- 11 files changed, 129 insertions(+), 749 deletions(-) commit 5cf32eec12b589231a12ef27020d21cd55086ea9 Author: Stef Walter Date: 2010-07-30 [gck] Remove session pooling, and add concept of module list. * Session pooling no langer necessary now that we track sessions properly in GckObject. This was of dubious value anyway. * Added concept of a module list. gck/Makefile.am | 1 + gck/gck-module.c | 477 +++--------------------------------------- gck/gck-modules.c | 221 +++++++++++++++++++ gck/gck-private.h | 8 - gck/gck-session.c | 2 +- gck/gck-slot.c | 44 ++--- gck/gck.h | 26 ++- gck/tests/test-gck-crypto.c | 4 +- gck/tests/test-gck-module.c | 9 +- gck/tests/test-gck-session.c | 72 +------ 10 files changed, 295 insertions(+), 569 deletions(-) commit 6e73d2e57c0dc53046f63b46d7460fb03217f98a Author: Stef Walter Date: 2010-07-30 [gck] Fix some indentation gck/gck.h | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) commit 00ff493bc34aa7e222fb0702a073b5b9ee15e4e6 Author: Stef Walter Date: 2010-07-30 [gck] More header cleanups. gck/gck.h | 56 +------------------------------------------------------- 1 files changed, 1 insertions(+), 55 deletions(-) commit c7912327c46b296e6df633856f6a30c2093d501f Merge: 43e8e77 d7da077 Author: Stef Walter Date: 2010-07-30 Merge branch 'master' into gck-work commit 43e8e77c2ad14e5b2c149a8ffa8f0541b52f1350 Author: Stef Walter Date: 2010-07-30 [gck] Remove debug line. gck/tests/test-gck-crypto.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 179be364f1483f7bbb8f58fe91e14e752c0127d6 Author: Stef Walter Date: 2010-07-30 [gck] Objects keep reference to sessions not slots. * This better models the way that PKCS#11 actually works. gck/gck-module.c | 7 +- gck/gck-object.c | 335 +++++++++---------------------------------- gck/gck-session.c | 31 ++--- gck/gck.h | 10 +- gck/tests/gck-test-module.c | 31 ++--- gck/tests/gck-test.h | 9 ++ gck/tests/test-gck-crypto.c | 2 - gck/tests/test-gck-object.c | 77 ++-------- 8 files changed, 122 insertions(+), 380 deletions(-) commit 102ced8f53dcccd2c42c8a89abea87b91f56e297 Author: Stef Walter Date: 2010-07-29 [gck] In preparation for public release, rename library. * Next steps will include cleaning up the API making it ready for gobject introspection etc.. gck/Makefile.am | 66 + gck/gck-attributes.c | 1428 +++++++++++++++++++ gck/gck-call.c | 541 ++++++++ gck/gck-marshal.list | 3 + gck/gck-misc.c | 437 ++++++ gck/gck-module.c | 1228 +++++++++++++++++ gck/gck-object.c | 1615 ++++++++++++++++++++++ gck/gck-private.h | 162 +++ gck/gck-session.c | 2886 +++++++++++++++++++++++++++++++++++++++ gck/gck-slot.c | 1061 ++++++++++++++ gck/gck.h | 1297 ++++++++++++++++++ gck/gck.pc.in | 14 + gck/pkcs11.h | 30 + gck/tests/Makefile.am | 42 + gck/tests/gck-test-module.c | 1702 +++++++++++++++++++++++ gck/tests/gck-test.h | 46 + gck/tests/test-gck-attributes.c | 528 +++++++ gck/tests/test-gck-crypto.c | 595 ++++++++ gck/tests/test-gck-mechanism.c | 60 + gck/tests/test-gck-module.c | 159 +++ gck/tests/test-gck-object.c | 463 +++++++ gck/tests/test-gck-session.c | 323 +++++ gck/tests/test-gck-slot.c | 147 ++ 23 files changed, 14833 insertions(+), 0 deletions(-) commit d7da07727afd570c5b655ba08471fa417f2bba64 Author: Stef Walter Date: 2010-07-28 [egg] Fix asn.1 parsing into GDate. * We used g_date_set_time_val which converted using local time. * Changed to set GDate fields independently. egg/egg-asn1x.c | 48 ++++++++++++++++++++++++++++++++++-------------- 1 files changed, 34 insertions(+), 14 deletions(-) commit 7c3f81a2845ca9440d3531f274324a4c4ce180ac Author: Stef Walter Date: 2010-07-27 [gcr] Get ready for screenshots in GUADEC presentation gcr/gcr-certificate-widget.c | 6 +++++ gcr/gcr-display-view.c | 4 +- gcr/gcr-key-widget.c | 12 ++++++++++ gcr/tests/ui-test-certificate.c | 44 +++++++++++++++++++++++++------------- gcr/tests/ui-test-key.c | 3 +- 5 files changed, 51 insertions(+), 18 deletions(-) commit a87beb16b1b482b1fb9484789e07ca52078ac7f4 Author: Stef Walter Date: 2010-07-21 [egg] Fix problems building on 32-bit. Make encoding of unsigned longs adapt to long size. egg/egg-asn1x.c | 26 +++++++++++--------------- 1 files changed, 11 insertions(+), 15 deletions(-) commit 6a3015afac2674b27e03da038822081f791feba3 Author: Stef Walter Date: 2010-07-13 [gcr] Implement rudimentary key view. gcr/Makefile.am | 2 + gcr/gcr-certificate-widget.c | 1 - gcr/gcr-key-widget.c | 325 +++++++++++++++++++++++++++++++++++++++ gcr/gcr-key-widget.h | 57 +++++++ gcr/tests/Makefile.am | 27 +++- gcr/tests/ui-test-certificate.c | 78 ++++++++++ gcr/tests/ui-test-details.c | 78 ---------- gcr/tests/ui-test-key.c | 88 +++++++++++ 8 files changed, 570 insertions(+), 86 deletions(-) commit ad49c427bb00998a31ed6da038278ce1e0924848 Author: Stef Walter Date: 2010-06-21 [gcr] Create new view interface and implement for certificates. gcr/Makefile.am | 4 +- gcr/gcr-certificate-widget.c | 198 +++++++++++++++++++++++++++++------------ gcr/gcr-simple-certificate.c | 65 ++++++-------- gcr/gcr-simple-certificate.h | 3 + gcr/gcr-view.c | 144 ++++++++++++++++++++++++++++++ gcr/gcr-view.h | 53 +++++++++++ gp11/gp11-attributes.c | 39 ++++++++ gp11/gp11.h | 7 ++- 8 files changed, 416 insertions(+), 97 deletions(-) commit 2dbeb616c37d7f80163923cf69c4a7665102da24 Author: Stef Walter Date: 2010-06-20 [gcr] Fine tune the details expander. gcr/gcr-display-view.c | 22 ++++++++++------------ gcr/tests/ui-test-details.c | 2 +- 2 files changed, 11 insertions(+), 13 deletions(-) commit 4793e095f8bec2295fd7eb54939f3260528290da Author: Stef Walter Date: 2010-06-20 [gcr] Display proper certificate icon. gcr/Makefile.am | 1 + gcr/gcr-certificate-widget.c | 15 ++----- gcr/gcr-display-view.c | 2 - gcr/gcr-icons.c | 85 ++++++++++++++++++++++++++++++++++++++++++ gcr/gcr-icons.h | 36 ++++++++++++++++++ 5 files changed, 127 insertions(+), 12 deletions(-) commit 4a903dcb66a5b429ef60e00cfe2175cc94018921 Author: Stef Walter Date: 2010-06-20 [gcr] Rework how the certificate widget works. * Base class so we can use for other widgets. * Details are part of an expander. gcr/Makefile.am | 3 + gcr/gcr-certificate-widget.c | 435 ++++++++++++++++++++++++++++++++++++++++ gcr/gcr-certificate-widget.h | 62 ++++++ gcr/gcr-display-view.c | 456 ++++++++++++++++++++++++++++++++++++++++++ gcr/gcr-display-view.h | 85 ++++++++ gcr/tests/ui-test-details.c | 6 +- 6 files changed, 1044 insertions(+), 3 deletions(-) commit c3a9bfd816f80e637ac918cd01fa5d381422177e Author: Stef Walter Date: 2010-06-20 Rework how the importer and parser work together. * Parser becomes a general source for objects. gcr/gcr-importer.c | 398 +++++++++++++++++--------------------------------- gcr/gcr-importer.h | 16 +- gcr/gcr-marshal.list | 1 + gcr/gcr-parser.c | 302 ++++++++++++++++++++++++++++++++++++++ gcr/gcr-parser.h | 16 ++ 5 files changed, 458 insertions(+), 275 deletions(-) commit 77efa526ade3e5e1d0375432db1eab2839b24648 Author: Stef Walter Date: 2010-07-11 [daemon] Fix uninitialized PKCS#11 function pointer. gp11/gp11-module.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 619923025be6f40e56514673203aa07184c18339 Author: Stef Walter Date: 2010-07-11 [gp11] Open readonly sessions when enumerating objects. * This is an interim measure. When GP11 is redone the API should allow the caller to specify this. gp11/gp11-module.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) commit 03353303045f37311abcf2ccca09a57635caae68 Author: Stef Walter Date: 2010-07-11 [gp11] Don't keep authenticating if protected auth path. * With protected auth path, it CKR_PIN_INCORRECT means the user cancelled or gave up. gp11/gp11-session.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 69845283add69f292b5247e13ed0c7bbda981e82 Author: Stef Walter Date: 2010-07-11 Remove run time dependency on libtasn1. * Required for build when we actually parse ASN.1 files. egg/egg-asn1x.c | 187 +++++++++++++++++++++++++++++++++++++++--- egg/egg-openssl.c | 1 - gcr/Makefile.am | 1 - gcr/gcr-parser.c | 1 - gcr/tests/Makefile.am | 3 +- gcr/tests/unit-test-parser.c | 1 - 6 files changed, 176 insertions(+), 18 deletions(-) commit 8afbf1bfed30f436fad0c23fcce5dd51348363b0 Author: Stef Walter Date: 2010-07-09 Use new DER decoding and encoding routines. * Benefits are less copies of sensitive data in memory. * More insightful parsing and API. egg/Makefile.am | 15 +- egg/egg-asn1-defs.h | 32 ++ egg/egg-asn1.c | 817 ------------------------------ egg/egg-asn1.h | 80 --- egg/egg-asn1x.c | 921 +++++++++++++++++++++++++++++++--- egg/egg-asn1x.h | 79 +++- egg/egg-dn.c | 179 +++---- egg/egg-dn.h | 29 +- egg/egg-symkey.c | 122 +++--- egg/tests/Makefile.am | 13 +- egg/tests/test-asn1.c | 229 ++++++++- egg/tests/test-asn1x.c | 6 +- egg/tests/test-data/test-pkcs7-2.der | Bin 0 -> 1002 bytes egg/tests/test-dn.c | 45 +- egg/tests/test.asn | 29 +- egg/tests/tests.asn | 19 - egg/tests/unit-test-asn1.c | 275 ++++++----- gcr/gcr-certificate-details-widget.c | 76 ++-- gcr/gcr-certificate.c | 63 ++-- gcr/gcr-parser.c | 278 +++++------ gcr/gcr-simple-certificate.c | 1 - 21 files changed, 1728 insertions(+), 1580 deletions(-) commit 4153de2637ccc8431962541944040de2194a9b44 Merge: 2eaf67b 931b37c Author: Stef Walter Date: 2010-06-28 Merge branch 'gpg-agent' commit 2eaf67b94666e9b23270264cd951f092031c1d51 Merge: f6a7ad6 274cc26 Author: Stef Walter Date: 2010-06-28 Merge branch 'asn1-work' commit 274cc26eaf822c137c38a715739c2e9bd61cdd25 Author: Stef Walter Date: 2009-12-31 [egg] Implement some new asn1 tests, and fix problems. egg/Makefile.am | 1 + egg/egg-asn1x.c | 23 ++++-- egg/tests/Makefile.am | 8 ++- egg/tests/test-asn1.c | 202 +++++++++++++++++++++++++++++++++++++++++++++++++ egg/tests/tests.asn | 19 +++++ 5 files changed, 245 insertions(+), 8 deletions(-) commit cc5f8732e9a486f35a9d451dd7271816c46a55b9 Author: Stef Walter Date: 2009-12-30 [egg] Move the DN functionality into its own file. egg/Makefile.am | 1 + egg/egg-asn1.c | 297 ------------------------------ egg/egg-asn1.h | 14 -- egg/egg-asn1x.c | 2 +- egg/egg-dn.c | 336 ++++++++++++++++++++++++++++++++++ egg/egg-dn.h | 43 +++++ egg/tests/Makefile.am | 1 + egg/tests/test-dn.c | 167 +++++++++++++++++ egg/tests/unit-test-asn1.c | 100 ---------- gcr/gcr-certificate-details-widget.c | 7 +- gcr/gcr-certificate.c | 9 +- gcr/gcr-parser.c | 3 +- 12 files changed, 560 insertions(+), 420 deletions(-) commit d877e513ff1116df7b982f2a5364635bb6499320 Author: Stef Walter Date: 2009-12-29 [egg] Implement asn.1 encoding. egg/egg-asn1x.c | 939 +++++++++++++++++++++++++++++++++++++++++++----- egg/egg-asn1x.h | 33 ++- egg/tests/test-asn1x.c | 15 +- 3 files changed, 900 insertions(+), 87 deletions(-) commit d55646acfd01457e628571906b8c780cdfa12df8 Author: Stef Walter Date: 2009-12-26 [egg] Separate real ASN nodes in the tree from options. egg/egg-asn1x.c | 324 ++++++++++++++++++++++++++++++------------------------- 1 files changed, 179 insertions(+), 145 deletions(-) commit 50bdd9c5c905049111f407c6ddf1a204fcfe79a4 Author: Stef Walter Date: 2009-12-25 [egg] Implement a bunch of value reading functionality. egg/egg-asn1x.c | 327 ++++++++++++++++++++++++++++++++++++++++++++++++------- egg/egg-asn1x.h | 51 +++++++-- 2 files changed, 324 insertions(+), 54 deletions(-) commit ba038c971212bda2258dcd0ee6f42daedf9a1b62 Author: Stef Walter Date: 2009-12-25 [egg] Tracking of failure messages during decoding and validation. egg/egg-asn1x.c | 129 ++++++++++++++++++++++++++++++++---------------- egg/egg-asn1x.h | 2 + egg/tests/test-asn1x.c | 2 +- 3 files changed, 90 insertions(+), 43 deletions(-) commit 70abaaee79202531035a40c3e1061f503d28074f Author: Stef Walter Date: 2009-12-25 [egg] Implement asn validation, and some read functions. egg/egg-asn1x.c | 888 ++++++++++++++++++++++++++++++++++++++++++++++++++++--- egg/egg-asn1x.h | 2 + 2 files changed, 843 insertions(+), 47 deletions(-) commit 8557a06e575218e10da38a8ec9a87714c268e3dc Author: Stef Walter Date: 2009-12-25 [egg] Add asn functionality for clearing a tree. egg/egg-asn1x.c | 65 +++++++++++++++++++++++++++++++++++++++++++---- egg/egg-asn1x.h | 2 + egg/tests/test-asn1x.c | 64 ++++++++++++++--------------------------------- 3 files changed, 80 insertions(+), 51 deletions(-) commit a53221476d646dad2c63c2f13c0b1814a8430eaf Author: Stef Walter Date: 2009-12-24 [egg] Rework asn1 decoding, add set support, much more robust. egg/egg-asn1x.c | 913 ++++++++++++++------------- egg/tests/test-asn1x.c | 57 ++- egg/tests/test-data/test-personalname-1.der | 1 + 3 files changed, 527 insertions(+), 444 deletions(-) commit 379cb6dfc263e05c9631fd6cf1c56349215b172b Author: Stef Walter Date: 2009-12-23 [egg] A few more parsing tests. egg/tests/test-asn1x.c | 25 +++++++++++++++++++++++++ egg/tests/test-data/test-pkcs7-1.der | Bin 0 -> 1002 bytes egg/tests/test-data/test-pkcs8-1.der | Bin 0 -> 335 bytes egg/tests/test-data/test-rsakey-1.der | Bin 0 -> 609 bytes 4 files changed, 25 insertions(+), 0 deletions(-) commit f01619015f87bdb0d9b2d5de18b55448b5874cf0 Author: Stef Walter Date: 2009-12-23 [egg] Some more minor fixes for parsing certificates. egg/egg-asn1x.c | 5 ++--- egg/tests/test-asn1x.c | 8 ++++---- 2 files changed, 6 insertions(+), 7 deletions(-) commit 44db3a67673420e6006ec717b007eed40f96b027 Author: Stef Walter Date: 2009-12-23 [egg] Handle identifier joins that are more than one level deep. egg/egg-asn1x.c | 33 +++++++++++++++++++++------------ 1 files changed, 21 insertions(+), 12 deletions(-) commit 395c78ff5ba9091e954e2bf40a47245e60656d6e Author: Stef Walter Date: 2009-12-23 [egg] Work on indefinite length encodings. egg/egg-asn1x.c | 369 ++++++++++++++++++++++++++++----- egg/tests/test-asn1x.c | 11 +- egg/tests/test-data/test-pkcs12-1.der | Bin 0 -> 2824 bytes 3 files changed, 324 insertions(+), 56 deletions(-) commit ad956e90e0f42613f6c60729fc988ea5152fd442 Author: Stef Walter Date: 2009-12-22 [egg] Implement DER parsing of a certificate. egg/egg-asn1x.c | 497 ++++++++++++++++++++++++++++++++++--------------------- 1 files changed, 305 insertions(+), 192 deletions(-) commit d175839add9021078d8bb8f8873c98e1d21a75d1 Author: Stef Walter Date: 2009-12-22 [egg] Rework how asn nodes are accessed. egg/egg-asn1x.c | 221 +++++++++++++++---------------------------------------- 1 files changed, 60 insertions(+), 161 deletions(-) commit 9e0d7a35adbbc4ffadb4957769aa01018bf83792 Author: Stef Walter Date: 2009-12-22 [egg] Implement better dumping of asn1 tree. egg/egg-asn1x.c | 38 +++++++++++++++++++++++++++++++++++++- 1 files changed, 37 insertions(+), 1 deletions(-) commit 7b6e6d2cf0d0ef8c55e0a077fd6b72eb243077e6 Author: Stef Walter Date: 2009-12-21 [egg] Initial asn1 parser work. egg/Makefile.am | 8 + egg/egg-asn1x.c | 617 ++++++++++++++++++++++++++++++++++++++++++++++++ egg/egg-asn1x.h | 52 ++++ egg/tests/Makefile.am | 12 + egg/tests/test-asn1x.c | 30 +++ 5 files changed, 719 insertions(+), 0 deletions(-) commit 931b37c753824fc09d3515bddeeccdafb3b3ed65 Merge: e167f9b f6a7ad6 Author: Stef Walter Date: 2010-06-13 Merge branch 'master' into gpg-agent commit e167f9b89c58616c7416899f4f43a2c38a51ddd3 Merge: 700da1b f6a7ad6 Author: Stef Walter Date: 2010-06-12 Merge branch 'master' into gpg-agent commit 700da1be635fdef02adf9589cf7f5069a1e7ef05 Merge: 5c742ed f6a7ad6 Author: Stef Walter Date: 2010-06-12 Merge branch 'master' into gpg-agent commit f6a7ad6643832428f1f30b6aaa67f7439a27a331 Author: Stef Walter Date: 2010-06-08 Cleaner naming in testing suite. egg/tests/test-padding.c | 2 +- egg/tests/unit-test-asn1.c | 2 +- egg/tests/unit-test-dh.c | 2 +- egg/tests/unit-test-hex.c | 2 +- egg/tests/unit-test-oid.c | 2 +- egg/tests/unit-test-openssl.c | 2 +- egg/tests/unit-test-secmem.c | 2 +- egg/tests/unit-test-spawn.c | 2 +- egg/tests/unit-test-symkey.c | 2 +- gcr/tests/unit-test-certificate.c | 2 +- gcr/tests/unit-test-parser.c | 2 +- gp11/tests/test-gp11-mechanism.c | 2 +- gp11/tests/unit-test-gp11-attributes.c | 2 +- gp11/tests/unit-test-gp11-crypto.c | 2 +- gp11/tests/unit-test-gp11-module.c | 2 +- gp11/tests/unit-test-gp11-object.c | 2 +- gp11/tests/unit-test-gp11-session.c | 2 +- gp11/tests/unit-test-gp11-slot.c | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) commit 46bbb1b1693b8fb13c6bcb3b22f0f67a3ff75737 Author: Stef Walter Date: 2010-06-08 Implement coverage of tests using gcov and lcov. testing/Makefile.am | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit ca1efbdc7aa667191af620a7d79efdb05fefe34b Author: Stef Walter Date: 2010-06-08 Cleanup naming and whitespace for testing stuff. * Rip off bandaid (painful) whitespace cleanup. * At the same time cleanup naming, and remove old cruft. docs/reference/gcr/gcr-sections.txt | 4 --- egg/tests/Makefile.am | 6 ++-- egg/tests/test-padding.c | 2 +- egg/tests/unit-test-asn1.c | 4 +- egg/tests/unit-test-dh.c | 2 +- egg/tests/unit-test-hex.c | 2 +- egg/tests/unit-test-oid.c | 2 +- egg/tests/unit-test-openssl.c | 4 +- egg/tests/unit-test-secmem.c | 2 +- egg/tests/unit-test-spawn.c | 18 +++++++------- egg/tests/unit-test-symkey.c | 2 +- gcr/tests/Makefile.am | 8 +++--- gcr/tests/unit-test-certificate.c | 4 +- gcr/tests/unit-test-parser.c | 6 ++-- gp11/tests/Makefile.am | 8 +++--- gp11/tests/test-gp11-mechanism.c | 2 +- gp11/tests/unit-test-gp11-attributes.c | 2 +- gp11/tests/unit-test-gp11-crypto.c | 30 ++++++++++++------------ gp11/tests/unit-test-gp11-module.c | 2 +- gp11/tests/unit-test-gp11-object.c | 18 +++++++------- gp11/tests/unit-test-gp11-session.c | 20 ++++++++-------- gp11/tests/unit-test-gp11-slot.c | 2 +- testing/Makefile.am | 19 ++++++++++++++++ testing/ca-example/certs/ca.crt | 23 +++++++++++++++++++ testing/ca-example/certs/client.crt | 19 ++++++++++++++++ testing/ca-example/certs/email.crt | 19 ++++++++++++++++ testing/ca-example/certs/generic-dsa.crt | 22 ++++++++++++++++++ testing/ca-example/keys/ca.key | 15 ++++++++++++ testing/ca-example/keys/client.key | 27 ++++++++++++++++++++++ testing/ca-example/keys/dsa.params | 9 +++++++ testing/ca-example/keys/email.key | 27 ++++++++++++++++++++++ testing/ca-example/keys/generic-dsa.key | 12 ++++++++++ testing/ca-example/profiles/ca.conf | 32 +++++++++++++++++++++++++++ testing/ca-example/profiles/extensions.conf | 16 +++++++++++++ testing/ca-example/profiles/request.conf | 18 +++++++++++++++ testing/ca-example/requests/client.req | 17 ++++++++++++++ testing/ca-example/requests/email.req | 17 ++++++++++++++ testing/ca-example/requests/generic-dsa.req | 16 +++++++++++++ testing/ca-example/serial.txt | 1 + 39 files changed, 382 insertions(+), 77 deletions(-) commit 9c19928e402690be5633262ebee91b156142cfe0 Author: Stef Walter Date: 2010-06-08 No more prompt tests. * These were an old concept of tests that didn't run automatically. * Also remove PAM tests, as they were completely broken, and prompt style. gp11/tests/Makefile.am | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit d7f82c7be7e68051e1cbcf7e6ec4cacccaa78631 Author: Stef Walter Date: 2010-06-08 Run tests in a second thread, and run mainloop. Run mainloop on main thread, and tests in a second thread. egg/tests/unit-test-spawn.c | 6 +++--- gp11/tests/gp11-test.h | 4 ---- gp11/tests/unit-test-gp11-crypto.c | 27 ++++++++++++++------------- gp11/tests/unit-test-gp11-object.c | 15 ++++++++------- gp11/tests/unit-test-gp11-session.c | 17 +++++++++-------- 5 files changed, 34 insertions(+), 35 deletions(-) commit 05f53ed1b36d6791242595a3a6cbdeb44323bc55 Author: Stef Walter Date: 2010-06-08 Fix possible threading race condition in gp11. We weren't waking up the main loop when we were ready to process a response from an async operation in certain cases. gp11/gp11-call.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit cb151cbe09ec2de05607ede63eefd8aa619c23eb Author: Stef Walter Date: 2010-06-08 Simpler way to define secure memory callbacks. * Also define locking on the daemon. egg/egg-secure-memory.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) commit 85cc38f135c98b11953be2752ec480140307bc76 Author: Stef Walter Date: 2010-06-06 Fix bugs preventing wrap layer propmting from working. * Standard way to get object path from GkdSecretDispatch * Lots of minor little tweaks and bugs. gp11/gp11-attributes.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 5c742ed54591b74a27e84e4626759d5094b69e1d Author: Stef Walter Date: 2010-04-26 More fixes for -DGSEAL_ENABLE Fixes bug #612475 gcr/tests/ui-test-details.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 3e9afad9114a31e2c551a8d6c04e5bf2cdc30d30 Author: Andre Klapper Date: 2010-04-13 Compile with -DGSEAL_ENABLE. Fixes bug 612475. gcr/gcr-import-dialog.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit dcb0c668345fff7f74ea41b239639d576c20e0ef Author: Stef Walter Date: 2010-04-08 Make buildable with GTK+ 2.20 without deprecated symbols. Now requires GTK+ 2.20. gcr/gcr-import-dialog.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 5ee73353ddb9c625cccf1a3b96dd1719b115d28b Author: Vincent Untz Date: 2010-03-30 Fix make dist (ship egg/egg-error.h) egg/Makefile.am | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 5df04434f7c75d7d2045c4d0563fe769a42b5c57 Author: Stef Walter Date: 2010-03-19 More robust error display and handling. Handle all cases where a function may return a failure with a NULL GError, such as preconditions and warnings. Also use proper function for checking error codes. egg/egg-error.h | 34 ++++++++++++++++++++++++++++++++++ gcr/gcr-library.c | 3 ++- gcr/tests/unit-test-parser.c | 3 ++- gp11/gp11-module.c | 2 +- 4 files changed, 39 insertions(+), 3 deletions(-) commit 298f439a4e1d889b11dcc7f57df3b3da264c0449 Merge: e36bd8f 2a4d847 Author: Vincent Untz Date: 2010-03-10 Merge branch 'releasing-2.29.92' commit e36bd8f6c06dff60272588a3cf81ac60af7540b6 Author: Vincent Untz Date: 2010-03-10 Fix make dist We need the *-overrides.txt files for the API references. docs/reference/gcr/gcr-overrides.txt | 2 ++ docs/reference/gp11/gp11-overrides.txt | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) commit 2a4d84762d2dcdc274e2f1dde247aaf7c95eb3f0 Author: Vincent Untz Date: 2010-03-10 Fix make dist We need the *-overrides.txt files for the API references. docs/reference/gcr/gcr-overrides.txt | 2 ++ docs/reference/gp11/gp11-overrides.txt | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) commit e8d8dc38a7d1fa87c9cc8c8197f1fa327d79acc9 Author: Stef Walter Date: 2010-02-07 Fix some translation strings. Remove dot from end of options, unmark string as translatable. gcr/gcr-unlock-options-widget.ui | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 3cc926177e4eba5b0e24b16a417d3fb13d953b3e Author: Stef Walter Date: 2010-02-07 Use 'log in to' rather than 'log into' Fixed after heads up from the gnome-doc folks. gp11/gp11-session.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit cc81d297b3fae45de09659df971856343ccdcede Author: Stef Walter Date: 2010-02-01 [gcr] Move the 'always unlock' option out of the unlock options widget. gcr/gcr-unlock-options-widget.c | 52 ++----------- gcr/gcr-unlock-options-widget.ui | 157 ++++++++++++++++---------------------- 2 files changed, 75 insertions(+), 134 deletions(-) commit 37c35070904cba23620b07d7f2fdec5519c810e9 Author: Stef Walter Date: 2010-02-01 Remove incomplete unlock per application/session support. gcr/gcr-unlock-options-widget.c | 18 ------------------ gcr/gcr-unlock-options-widget.ui | 12 ------------ 2 files changed, 0 insertions(+), 30 deletions(-) commit b973007cb78f3d3d96899d4ca6e921d52d7e9c93 Author: Stef Walter Date: 2010-02-01 [gcr] Add commun gcr unlock functionality. gcr/Makefile.am | 7 +- gcr/gcr-unlock-options-widget.c | 299 ++++++++++++++++++++++++++++++++++++++ gcr/gcr-unlock-options-widget.h | 56 +++++++ gcr/gcr-unlock-options-widget.ui | 136 +++++++++++++++++ 4 files changed, 496 insertions(+), 2 deletions(-) commit 7edc0364456ad6fbe8cf2ae6ff17d3656edb671a Author: Stef Walter Date: 2010-02-01 [gp11] Bug fixes to set and get template functionality. gp11/gp11-object.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) commit e21a1a4b9c8af781c58344fb7d24727c831fe6eb Author: Stef Walter Date: 2009-12-20 [gp11] Support for getting and setting object template style attrs. These are attributes like CKA_WRAP_TEMPLATE etc... gp11/gp11-object.c | 360 +++++++++++++++++++++++++++++++++++++++++++++++++++- gp11/gp11.h | 40 ++++++ 2 files changed, 397 insertions(+), 3 deletions(-) commit f69277d2a531086d8fd8ce05c28b13a5400fe02e Author: Stef Walter Date: 2009-12-19 [gcr] Link tests to the right egg library file. gcr/tests/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 17fa2269587102149148bea3ea859fea91415370 Author: Stef Walter Date: 2009-12-19 [daemon] Large refactoring of prompting for pkcs11 logins. * Remove old ask code. * Remove old async code, location code daemon util code. * Move our custom GtkEntryBuffer into egg. * Remove old EggSecureEntry stuff. * Rework how threading works in pkcs11 daemon auth and prompting. * Use new prompting stuff for pkcs11 logins. * Make several fixes to the daemon/login code. egg/Makefile.am | 10 +- egg/egg-entry-buffer.c | 198 ++++ egg/egg-entry-buffer.h | 59 + egg/egg-secure-entry.c | 2754 ----------------------------------------------- egg/egg-secure-entry.h | 187 ---- gcr/Makefile.am | 2 +- gcr/gcr-certificate.c | 2 +- gcr/gcr-import-dialog.c | 13 +- 8 files changed, 272 insertions(+), 2953 deletions(-) commit eab98c612084be6bfb2e7bb011e87879cc10940f Author: Stef Walter Date: 2009-12-17 [doc] Fix up documentation errors and warnings. gcr/gcr-certificate.c | 18 +++++++++--------- gp11/gp11-attributes.c | 40 +++++++++++++++++++++++++--------------- gp11/gp11-misc.c | 12 ++++++------ gp11/gp11-module.c | 17 +++++++---------- gp11/gp11-object.c | 6 +++--- gp11/gp11-session.c | 4 ++-- gp11/gp11-slot.c | 1 + gp11/gp11.h | 43 ++++++++++++++++++------------------------- 8 files changed, 71 insertions(+), 70 deletions(-) commit b8792e947cad50218d5e54b05c7f637843c0e2fc Author: Stef Walter Date: 2009-12-17 Remove old keyring socket, library and code support. After this commit, all callers must use the libgnome-keyring module to access secrets. The old socket method and included library no longer work. docs/reference/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit a39f723ee74f1a031e802dae35d70f1cc1534d3f Author: Stef Walter Date: 2009-12-16 [gp11] gp11_object_get_data null terminates. Make gp11_object_get_data null terminate the data it returns for convenience and efficiency. This is especially nice when using a custom allocator such as secure memory. gp11/gp11-object.c | 27 ++++++++++++++++++--------- 1 files changed, 18 insertions(+), 9 deletions(-) commit 93ff39a0adeb4e2cffe344d2fd3ed5be74476f48 Author: Stef Walter Date: 2009-12-16 [gp11] Implement C_InitPIN and C_SetPIN in gp11 library. gp11/gp11-session.c | 240 ++++++++++++++++++++++++++++++++++- gp11/gp11.h | 20 +++- gp11/tests/gp11-test-module.c | 31 ++++- gp11/tests/unit-test-gp11-session.c | 34 +++++ 4 files changed, 317 insertions(+), 8 deletions(-) commit b9f4ff74fe80c8bda551e6e8fb33e467db74a726 Merge: bfb0344 6c3dbdf Author: Stef Walter Date: 2009-12-14 Merge branch 'dbus-api' commit 6c3dbdff0e3efa9e49831fda461168f0b87afa85 Author: Stef Walter Date: 2009-12-13 [egg] Move padding functionality into egg So other components can use it. egg/Makefile.am | 2 + egg/egg-asn1.h | 3 + egg/egg-padding.c | 302 ++++++++++++++++++++++++++++++++++++++++++++++ egg/egg-padding.h | 88 ++++++++++++++ egg/tests/Makefile.am | 1 + egg/tests/test-padding.c | 182 ++++++++++++++++++++++++++++ 6 files changed, 578 insertions(+), 0 deletions(-) commit 1cf5f7d8ca78f040f7f5f319e7268733540e7e4d Author: Stef Walter Date: 2009-12-12 [pkcs11] Fix bugs in DH key generation. The public and private keys were accidentally interchanged. egg/egg-dh.c | 41 +++++++++++++++++++++-------------------- 1 files changed, 21 insertions(+), 20 deletions(-) commit 7475c3447d99ac271966f6bc80ad36bfcb234474 Author: Stef Walter Date: 2009-12-12 Simplify creation of secret from DH negotiation. PKCS#11 says to use the low order bytes, and that's what we do here. This bears more research to make sure we're doing this in a standard way. egg/egg-dh.c | 150 ++++++++++++++++++---------------------------- egg/egg-dh.h | 19 ++++-- egg/tests/unit-test-dh.c | 54 ++++------------- 3 files changed, 84 insertions(+), 139 deletions(-) commit d04b105217b1fb5a0a135171abfaa30e6416bbdf Author: Stef Walter Date: 2009-12-11 [gp11] Support same attrs passed for public/private to generate_key. Recognize that the same attribute set could be passed to public and private atribute arguments for gp11_session_generate_key_xxx(). gp11/gp11-session.c | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) commit bfb0344ede07aa05f14a1d38c82d806b8fc1af29 Author: Stef Walter Date: 2009-12-03 Add license to reference documentation. Add a license to the reference documentation. Using the license from Glib. docs/reference/COPYING | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) commit 9d3381e2625da2b42c33c927eb0154da6dd09bdd Merge: f196f4b b0534f6 Author: Stef Walter Date: 2009-11-24 Merge branch 'master' into dbus-api commit f196f4b6c4addf453c5ea171d1c2991b14b59a62 Author: Stef Walter Date: 2009-11-24 Remove old secrets stuff, which is now in a freedesktop project. docs/reference/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit f08fd8d8cfa3e15f31eeaf6d70f4aacbe7d6dabf Author: Stef Walter Date: 2009-11-23 [egg] Store DH groups in binary. We store them in binary so that we can access them directly in memory when a raw value is needed. egg/egg-dh.c | 302 +++++++++++++++++++++++++++------------------- egg/egg-dh.h | 6 + egg/tests/unit-test-dh.c | 22 +++- 3 files changed, 203 insertions(+), 127 deletions(-) commit 128d31659892cce4b9538295712c871b6df8f9df Author: Stef Walter Date: 2009-11-20 [gp11] Implement support for generate, wrap, unwrap, derive. Implement gp11_session_generate_key_pair...(), gp11_session_wrap_key...(), gp11_session_unwrap_key...(), and gp11_session_derive_key...(). gp11/gp11-misc.c | 83 ++++ gp11/gp11-session.c | 840 +++++++++++++++++++++++++++++++++--- gp11/gp11.h | 158 ++++--- gp11/tests/Makefile.am | 1 + gp11/tests/gp11-test-module.c | 251 ++++++++++- gp11/tests/gp11-test.h | 13 + gp11/tests/test-gp11-mechanism.c | 60 +++ gp11/tests/unit-test-gp11-crypto.c | 349 ++++++++++++++-- 8 files changed, 1564 insertions(+), 191 deletions(-) commit d60a7d946cc8eca75e764ff328179dc5b3a83938 Author: Stef Walter Date: 2009-11-16 [pkcs11] Implement DH key pair generation. Also rework how the DH stuff works in the egg component. egg/egg-dh.c | 32 ++++++++++++++++++++++---------- egg/egg-dh.h | 4 ++-- egg/tests/unit-test-dh.c | 30 ++++++++++++++++++++++++++---- 3 files changed, 50 insertions(+), 16 deletions(-) commit 27f2da1e8f4c6376673893b91011e8a46ea0f499 Merge: 2695ec2 b0534f6 Author: Stefan Walter Date: 2009-11-15 Merge branch 'master' into dbus-api commit 2695ec262290aababbcf5bd2f4c0949140f17dd9 Author: Stef Walter Date: 2009-11-12 [egg] Add IETF DH groups. These are the standard DH groups specified in RFC2409 and RFC3526 egg/egg-dh.c | 173 +++++++++++++++++++++++++++++++++++++++++++-- egg/egg-dh.h | 2 +- egg/tests/unit-test-dh.c | 52 +++++++++++++- 3 files changed, 215 insertions(+), 12 deletions(-) commit 2b22098088910b152a131c586907eef42a5880bb Merge: 55bed6d b0534f6 Author: Stef Walter Date: 2009-11-09 Merge branch 'master' into dbus-api commit 55bed6d2eda2019ab9419c8f951ed8c0a96e6a36 Merge: 94de7bd b0534f6 Author: Stef Walter Date: 2009-11-09 Merge branch 'master' into dbus-api commit 94de7bd6374ffbddfcd5ad992d2af1e58fe35a3f Author: Stef Walter Date: 2009-11-08 Refactor test directory function calls. Make test_data_*() and test_scratch_*() function calls. egg/tests/unit-test-asn1.c | 2 +- egg/tests/unit-test-dh.c | 4 ++-- egg/tests/unit-test-openssl.c | 2 +- egg/tests/unit-test-spawn.c | 12 ++++++------ gcr/tests/unit-test-certificate.c | 2 +- gcr/tests/unit-test-parser.c | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) commit 0815c9ea342d33544cddbeaa1345d24d626a139e Author: Stef Walter Date: 2009-11-08 [egg] Move mkdtemp() code into its own file. Move mkdtemp code into egg-mkdtemp.c so it can be used from other places. egg/Makefile.am | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 416aa6492dfb353a28ef287a429401b96765aaf0 Author: Stef Walter Date: 2009-11-03 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. egg/Makefile.am | 16 ++++++++++++++++ egg/egg-dh.c | 4 ++++ egg/egg-dh.h | 2 ++ 3 files changed, 22 insertions(+), 0 deletions(-) commit f7e6d07d6e1309997edec56b1346bafe7054e4c5 Merge: 7cae87b b0534f6 Author: Stef Walter Date: 2009-10-24 Merge branch 'master' into dbus-api commit b0534f6ba7a2c2394c0c20158b391ed074576ea0 Author: Eric Sesterhenn Date: 2009-10-21 [gp11] Fix memory leak in gp11_slot_get_token_info() Signed-off-by: Stef Walter gp11/gp11-slot.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 7cae87b24741eb3fed20a91c53bb9e436be7586a Author: Stef Walter Date: 2009-10-11 [egg] Build in default DH parameters. Since generating DH parameters is costly, we build in default parameters which can be loaded quickly. egg/egg-dh.c | 23 +++++++++++++++++++++++ egg/egg-dh.h | 8 +++++--- egg/tests/unit-test-dh.c | 23 +++++++++++++++++++++++ 3 files changed, 51 insertions(+), 3 deletions(-) commit 9344ebcfc31a9d409edbbfb828d12fa83cf997ca Author: Stef Walter Date: 2009-10-11 [egg] Add spawn with callback functionality. Allows executing an application and getting callbacks when stdin, stdout, or stderr need servicing. egg/Makefile.am | 1 + egg/tests/Makefile.am | 3 +- egg/tests/test-data/echo-script.sh | 11 ++ egg/tests/unit-test-spawn.c | 274 ++++++++++++++++++++++++++++++++++++ 4 files changed, 288 insertions(+), 1 deletions(-) commit b9168f4cb5c52cc160d6ef7e68ebc987d0f92452 Merge: a1e8b83 8a14f59 Author: Stef Walter Date: 2009-10-10 Merge branch 'master' into dbus-api commit a1e8b839a9487bac03d25ed5257e5334fb2027de Author: Stef Walter Date: 2009-10-04 [egg] Add DH functions for use by IPC. egg/Makefile.am | 1 + egg/egg-dh.c | 144 +++++++++++++++++++++++++++++++++++++ egg/egg-dh.h | 35 +++++++++ egg/tests/Makefile.am | 1 + egg/tests/test-data/dh-params.pem | 5 ++ egg/tests/unit-test-dh.c | 89 +++++++++++++++++++++++ 6 files changed, 275 insertions(+), 0 deletions(-) commit c286a2003c6e3d874eb720e9d9bc59ea62d8bdbf Merge: 6d35d96 8a14f59 Author: Stef Walter Date: 2009-10-04 Merge branch 'master' into dbus-api commit 6d35d961607c02a6cec43dd69b28e5b87d12c10f Merge: c103554 8a14f59 Author: Stef Walter Date: 2009-09-30 Merge branch 'master' into dbus-api commit 8a14f5930839daa7d21b42774c4b2ab068dbc919 Author: Stef Walter Date: 2009-09-30 [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. egg/egg-secure-memory.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit c103554f20afe85fcf68b8b0d567823544957b78 Merge: 27e9b4a 3d0d8ef Author: Stef Walter Date: 2009-09-26 Merge branch 'master' into dbus-api commit 27e9b4a7c12bf5e01a8e2cff14c8d53a5da7f056 Author: Stef Walter Date: 2009-09-26 [gp11] Return added attr from gp11_attributes_add_* Return the added GP11Attribute struct from the gp11_attributes_add_xxx() set of functions. gp11/gp11-attributes.c | 74 +++++++++++++++++++++++++++++++---------------- gp11/gp11.h | 16 +++++----- 2 files changed, 57 insertions(+), 33 deletions(-) commit 3d0d8ef14fa345b2cb25312c2ac76b31ac9d6033 Author: Diego Elio 'Flameeyes' Pettenò Date: 2009-09-13 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 egg/tests/Makefile.am | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) commit 23b37bf7c7ddb57f0f4a598ba16a274d94721352 Merge: 68ad3e5 1b6f7f4 Author: Stef Walter Date: 2009-08-30 Merge branch 'master' into dbus-api commit 1b6f7f416d3cc55df809daa9b2afd7f9d90f4d30 Author: Stef Walter Date: 2009-08-30 [egg] Remove unneeded signal handling code. egg/Makefile.am | 1 - egg/tests/Makefile.am | 1 - 2 files changed, 0 insertions(+), 2 deletions(-) commit 68ad3e5a99699b3ebb5abaed15b9d2c9b18fc3db Author: Stef Walter Date: 2009-08-23 [gp11] Don't fail when allocating zero length value. When copying a zero length value, don't fail. gp11/gp11-object.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b1c54fe9af3012bc6d0964f3d0a1f79b7455c3cf Author: Stef Walter Date: 2009-08-22 [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. gcr/gcr-importer.c | 4 ++-- gp11/gp11-object.c | 3 ++- gp11/gp11-slot.c | 20 ++++++++++++++++---- gp11/gp11.h | 4 ++++ gp11/tests/unit-test-gp11-session.c | 8 ++++---- 5 files changed, 28 insertions(+), 11 deletions(-) commit ed3e9624db1a2aaf7137b18e4689661038da37e0 Merge: b06511b 5a17dab Author: Stef Walter Date: 2009-08-15 Merge branch 'master' into dbus-api commit b06511b0c784981293ba4462c6cfe630548b7803 Author: Stef Walter Date: 2009-08-14 [egg] Fix unit test. egg/tests/unit-test-secmem.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 0f139554f735211bacac319dc9e71bc3a598f5f5 Author: Stef Walter Date: 2009-08-14 [egg] Add missing definition of egg_buffer_uninit_steal() egg/egg-buffer.c | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) commit 443a056955fcf68352c204869279b60c06dccd0b Author: Stefan Walter Date: 2009-08-08 [egg] Function for clearing secure memory. Added egg_secure_clear() and fine tuned egg_secure_strclear(). egg/egg-secure-memory.c | 26 ++++++++++++++++---------- egg/egg-secure-memory.h | 2 ++ egg/tests/unit-test-secmem.c | 31 +++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+), 10 deletions(-) commit 5a17dab90d2e57b60e715ccdbb8c0e8fad38b2af Author: Stefan Walter Date: 2009-08-02 [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. egg/egg-asn1.c | 98 +++++++++++++++++++++++---------- egg/egg-asn1.h | 4 +- egg/tests/unit-test-asn1.c | 4 +- gcr/gcr-certificate-details-widget.c | 18 ++----- gcr/gcr-certificate.c | 3 +- 5 files changed, 79 insertions(+), 48 deletions(-) commit c86f85b6e1ba7153e62d392af2af3c608b017f29 Author: Stef Walter Date: 2009-07-26 [secrets] Port over some parts of the keyring parsing. The code compiles, but does not run, and is not tested. egg/egg-buffer.c | 4 ++-- egg/egg-buffer.h | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) commit be93e06f4b819ccc4389a2edbc3af6292aebc83f Merge: 29ce091 95aec98 Author: Stef Walter Date: 2009-07-23 Merge branch 'master' into dbus-api Conflicts: pkcs11/gck/gck-module.c pkcs11/pkcs11g.h commit 29ce091a4f6f16bcc67ad1a577e4759bb6e9cacc Author: Stef Walter Date: 2009-07-18 Use .ui files directly now that they're supported by glade. Remove old glade files, and the conversion rules from Makefile.am. gcr/Makefile.am | 14 +- gcr/gcr-certificate-basics-widget.glade | 512 ------------------------------- gcr/gcr-certificate-basics-widget.ui | 504 ++++++++++++++++++++++++++++++ gcr/gcr-import-dialog.glade | 130 -------- gcr/gcr-import-dialog.ui | 125 ++++++++ 5 files changed, 633 insertions(+), 652 deletions(-) commit c9f1237772b9acbc142df0605be8d66204385bff Author: Stef Walter Date: 2009-07-13 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' gcr/gcr-library.c | 2 +- gcr/tests/unit-test-certificate.c | 11 +++-------- gcr/tests/unit-test-parser.c | 2 +- 3 files changed, 5 insertions(+), 10 deletions(-) commit 0694d191359f337847e0e777bedbfa0363436e61 Author: Stef Walter Date: 2009-07-13 Parse, but don't use non-utf8 secrets in keyrings. This is a change for future backwards compatibility. egg/egg-buffer.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 95aec98286c7a45196badb0e79dd81c860f1f8a5 Author: Stef Walter Date: 2009-07-18 Use .ui files directly now that they're supported by glade. Remove old glade files, and the conversion rules from Makefile.am. gcr/Makefile.am | 14 +- gcr/gcr-certificate-basics-widget.glade | 512 ------------------------------- gcr/gcr-certificate-basics-widget.ui | 504 ++++++++++++++++++++++++++++++ gcr/gcr-import-dialog.glade | 130 -------- gcr/gcr-import-dialog.ui | 125 ++++++++ 5 files changed, 633 insertions(+), 652 deletions(-) commit 9c0d52add96a0a5231f39fac81839ae599bd5959 Author: Stef Walter Date: 2009-07-13 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' gcr/gcr-library.c | 2 +- gcr/tests/unit-test-certificate.c | 11 +++-------- gcr/tests/unit-test-parser.c | 2 +- 3 files changed, 5 insertions(+), 10 deletions(-) commit 97fd461678e4be30ae504049e02628eb7268dfd6 Merge: a1bbce7 80e1146 Author: Stef Walter Date: 2009-07-13 Merge branch 'gnome-2-26' commit a1bbce7448757c7703e59009805116ceaef7abed Author: Stef Walter Date: 2009-07-13 Parse, but don't use non-utf8 secrets in keyrings. This is a change for future backwards compatibility. egg/egg-buffer.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 8b9293d26624517dc66c70c32462184957652949 Merge: 921110a f62c011 Author: Stef Walter Date: 2009-06-27 Merge branch 'master' into dbus-api commit f62c011930cec03c662a71d56c6fa4ffb0f92fc3 Merge: b1c9ec5 80e1146 Author: Stef Walter Date: 2009-06-26 Merge branch 'gnome-2-26' commit 921110af3f86b0146269af98230add0eb02e759e Author: Stef Walter Date: 2009-06-20 Build docs for the secrets API. docs/reference/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit b1c9ec59cfb578653770132032248d5deab9246f Author: Stef Walter Date: 2009-05-10 Move gkr_cleanup code into egg component. Update tests to new style as well. egg/Makefile.am | 1 + egg/tests/Makefile.am | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) commit 5b7d3c793dfc90953e846e96d879b9b511b32c38 Author: Stef Walter Date: 2009-05-10 Cleanup gkr_unix_signal and move to egg component Also update tests to new style. egg/Makefile.am | 1 + egg/tests/Makefile.am | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) commit 078f23a0ca057ca2734228d470e71877b629bdf9 Merge: 507f878 80e1146 Author: Stefan Walter Date: 2009-05-03 Merge branch 'gnome-2-26' Conflicts: ChangeLog po/ca@valencia.po po/uk.po commit 80e1146fc93ddabb4e579d3d666c4a1eb5a94d36 Author: stefw Date: 2009-04-12 Release 2.26.1 svn path=/branches/gnome-2-26/; revision=1722 docs/reference/gcr/Makefile.am | 2 +- docs/reference/gp11/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 61a3d9cbd730068071a3e4f976e1c8f936f6f3a3 Author: stefw Date: 2009-04-12 Fill in some API documentation. svn path=/branches/gnome-2-26/; revision=1721 gcr/gcr-certificate.c | 185 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 185 insertions(+), 0 deletions(-) commit 5db8750134ce5e8bf0cb6f2a4c3267be55323a06 Author: stefw Date: 2009-04-10 Fix problem with integer overflow in memory allocator. svn path=/branches/gnome-2-26/; revision=1717 egg/egg-secure-memory.c | 2 +- egg/tests/unit-test-secmem.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) commit 507f878de243baa061184534859b526288c5d82b Author: stefw Date: 2009-04-02 Distribute test data. Fixes bug #577397 svn path=/trunk/; revision=1712 gcr/tests/Makefile.am | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit a90ba44d20c1685dc9bc1bfbd6227d7a6cf144a9 Author: stefw Date: 2009-04-02 Make function definitions match declarations for egg_asn1 time functions. Fixes bug #576762 svn path=/trunk/; revision=1711 egg/egg-asn1.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 814946eaec9cf0012809e355a0a22bc903a69e35 Author: stefw Date: 2009-04-02 Put in a semi-random test excercising 1000 iterations of allocation, reallocation, freeing. Validates between each step. svn path=/trunk/; revision=1709 egg/egg-secure-memory.c | 33 +++++++++++--------- egg/tests/unit-test-secmem.c | 69 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+), 15 deletions(-) commit 4af2a8dc9ee69f9c810e64888580dd44d17a6880 Author: stefw Date: 2009-04-02 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 egg/egg-secure-memory.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit dd5f6760bb07c147239e63825ceaa97d65a4ba68 Author: stefw Date: 2009-04-02 Add validator which walks the secure memory heap and checks for inconsistencies. svn path=/trunk/; revision=1707 egg/egg-secure-memory.c | 57 +++++++++++++++++++++++++++++++++++++++++++++++ egg/egg-secure-memory.h | 2 + 2 files changed, 59 insertions(+), 0 deletions(-) commit 174fa3d4d3ee8e83a54572269cb26e43f3bbb0d0 Author: stefw Date: 2009-04-02 Fix assertion that occurs when shrinking block of secure memory and then expanding again. svn path=/trunk/; revision=1706 egg/egg-secure-memory.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) commit d001b888a18b63906ab6073d9c2504eaa919a62f Author: Stefan Walter Date: 2009-03-17 Merge branch 'docs-reorganize' svn path=/trunk/; revision=1690 docs/reference/Makefile.am | 2 + docs/reference/gcr/Makefile.am | 99 + docs/reference/gcr/gcr-docs.sgml | 27 + docs/reference/gcr/gcr-sections.txt | 204 ++ docs/reference/gcr/gcr.types | 6 + docs/reference/gp11/Makefile.am | 99 + docs/reference/gp11/gp11-docs.sgml | 25 + docs/reference/gp11/gp11-sections.txt | 195 ++ docs/reference/gp11/gp11.types | 4 + gp11/Makefile.am | 1 - gp11/gp11-attributes.c | 76 + gp11/gp11-misc.c | 118 +- gp11/gp11-module.c | 106 + gp11/gp11-object.c | 42 + gp11/gp11-session.c | 301 +++- gp11/gp11-slot.c | 131 ++ gp11/gp11.h | 6 +- gp11/reference/Makefile.am | 96 - gp11/reference/gp11-docs.sgml | 21 - gp11/reference/gp11-sections.txt | 888 -------- gp11/reference/gp11-undeclared.txt | 606 ------ gp11/reference/gp11.types | 4 - gp11/reference/tmpl/gp11-unused.sgml | 3788 --------------------------------- gp11/reference/tmpl/gp11.sgml | 2626 ----------------------- 24 files changed, 1391 insertions(+), 8080 deletions(-) commit 353a2aad0d4fd53a996a2b772488e90af49836be Author: Stefan Walter Date: 2009-03-14 Release version 2.26.0 svn path=/trunk/; revision=1673 gp11/tests/unit-test-gp11-session.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit c1db1336f5a1ae0d70f684302cb3fee1688defc6 Author: Stefan Walter Date: 2009-03-11 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 egg/egg-secure-memory.c | 184 +++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 161 insertions(+), 23 deletions(-) commit 706781d1d4235095be170f3d02f2370641d2e185 Author: Stefan Walter Date: 2009-03-05 Check for asn1Parser tool in configure. Patch by Alberto Ruiz. Fixes bug #566731 svn path=/trunk/; revision=1660 egg/Makefile.am | 4 ++-- egg/tests/Makefile.am | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) commit fa2da5b88a91a201799ef3b1ca0024e052b20269 Author: Stefan Walter Date: 2009-03-03 Allow specifying auto-authenticate property on a more fine grained level. svn path=/trunk/; revision=1657 gp11/gp11-module.c | 20 ++++++++++++-------- gp11/gp11-session.c | 2 +- gp11/gp11-slot.c | 4 ++-- gp11/gp11.h | 9 +++++++-- 4 files changed, 22 insertions(+), 13 deletions(-) commit 3e632fa643965f7ee0ef4d7b9abce5caaf68ed10 Author: Stefan Walter Date: 2009-03-03 Fix "gnome-keyring-ask needs to disable input method in password" bug #561331 Patch by Takao Fujiwara svn path=/trunk/; revision=1654 egg/egg-secure-entry.c | 23 ++++++++++++++++++++++- 1 files changed, 22 insertions(+), 1 deletions(-) commit b87be07760412fa0fb720a45f5b991c9d7a57205 Author: Stefan Walter Date: 2009-02-28 Fix compiler warnings on 32-bit. svn path=/trunk/; revision=1638 egg/egg-secure-memory.c | 19 ++++++++++++------- 1 files changed, 12 insertions(+), 7 deletions(-) commit e7877565e94057f132cee924f9fc9777b1c6a673 Author: Stefan Walter Date: 2009-02-28 Some changes to the import dialog. svn path=/trunk/; revision=1636 gcr/gcr-import-dialog.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) commit c1e3ac2e2ba1d5d06548cdd780b7a445eb53de2d Author: Stefan Walter Date: 2009-02-28 Fix problem with looking up pin initialized flag in the wrong structure. svn path=/trunk/; revision=1632 gcr/gcr-importer.c | 10 ++++-- gcr/gcr-initializer.h | 85 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+), 3 deletions(-) commit 623208df3f4565d15fd51313aa011999dc14ed57 Author: Stefan Walter Date: 2009-02-28 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 gcr/gcr-importer.c | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 74 insertions(+), 2 deletions(-) commit be28399348e36f88dd21bf190511a9962cc87376 Author: Stefan Walter Date: 2009-02-27 When enumerating objects in a module, skip tokens that fail from not being initialized. svn path=/trunk/; revision=1623 gp11/gp11-module.c | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) commit 74956778f8012593c3e9ea7647f685cb38dff28e Author: Jeff Cai Date: 2009-02-19 Use union instead of struct. Fixes bug #571951 2009-02-19 Jeff Cai * egg/egg-secure-memory.c: Use union instead of struct. Fixes bug #571951 svn path=/trunk/; revision=1606 egg/egg-secure-memory.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) commit e2006ffbfde79ba050b39f3b9ca16911a83bf370 Author: Stefan Walter Date: 2009-02-14 Release version 2.25.91 svn path=/trunk/; revision=1589 gcr/tests/unit-test-certificate.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit e6966aa405a0a2f1d51a73cf2863748e8560e89d Author: Stefan Walter Date: 2009-02-14 Don't show horizontal scrollbar. svn path=/trunk/; revision=1578 gcr/gcr-certificate-details-widget.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit b1a83b254f555662ed4981a604cce6fa326ec6da Author: Stefan Walter Date: 2009-02-14 Show extensions as in hex form. No parsing of extensions yet. svn path=/trunk/; revision=1577 gcr/gcr-certificate-details-widget.c | 73 +++++++++++++++++++++++++++++++++- 1 files changed, 71 insertions(+), 2 deletions(-) commit 37237ac3ade4315a4114309f347dce30451ba4a9 Author: Stefan Walter Date: 2009-02-14 Allow loading any DER certificate file. svn path=/trunk/; revision=1576 gcr/tests/ui-test-details.c | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) commit 4b25cc9321ea024e88fd15681c399cbc4d3a99a5 Author: Stefan Walter Date: 2009-02-14 Fill in the OID descriptions for RSA and DSA stuff. svn path=/trunk/; revision=1575 egg/egg-oid.c | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) commit e8eed4dfd334f1727c74bf1aa95dc0a60924d806 Author: Stefan Walter Date: 2009-02-14 Fill in the key size field. svn path=/trunk/; revision=1574 gcr/gcr-certificate-details-widget.c | 9 +- gcr/gcr-certificate.c | 232 +++++++++++++++++++++++++--------- gcr/gcr-certificate.h | 2 + 3 files changed, 180 insertions(+), 63 deletions(-) commit a5dcc5d84f639d8a1040d1a473fd3bc00e8833d1 Author: Stefan Walter Date: 2009-02-14 Fill in key and signature algorithms and parameters. svn path=/trunk/; revision=1573 gcr/gcr-certificate-details-widget.c | 30 ++++++++++++++++++++++++++---- 1 files changed, 26 insertions(+), 4 deletions(-) commit 366f32f01feb645875c8a1f60f2cbbc7910eb6de Author: Stefan Walter Date: 2009-02-14 Change to right directory so we can easily find test certificates. svn path=/trunk/; revision=1572 gcr/tests/ui-test-details.c | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) commit a9a94b489886d1f44f28f9d2958adc829d577e77 Author: Stefan Walter Date: 2009-02-14 Pull out OID information functionality into it's own file. svn path=/trunk/; revision=1571 egg/Makefile.am | 1 + egg/egg-asn1.c | 147 ++++-------------------------- egg/egg-asn1.h | 4 - egg/egg-oid.c | 164 ++++++++++++++++++++++++++++++++++ egg/egg-oid.h | 39 ++++++++ egg/tests/Makefile.am | 1 + egg/tests/unit-test-asn1.c | 17 +--- egg/tests/unit-test-oid.c | 46 ++++++++++ gcr/gcr-certificate-details-widget.c | 5 +- 9 files changed, 276 insertions(+), 148 deletions(-) commit 4613089789b654558882b7ce659eb049566ddbb6 Author: Stefan Walter Date: 2009-02-13 Use more readable upper case space delemited hex encoding for the fingerprint. svn path=/trunk/; revision=1569 gcr/gcr-certificate.c | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) commit d23265b70646fda6c60795b3a8b320203c99e6a2 Author: Stefan Walter Date: 2009-02-13 Allow specifying the delemiter and case of hex encodings. svn path=/trunk/; revision=1568 egg/egg-hex.c | 21 +++++++++++++-------- egg/egg-hex.h | 2 ++ egg/tests/unit-test-hex.c | 6 +++--- gcr/gcr-certificate-details-widget.c | 8 ++++---- 4 files changed, 22 insertions(+), 15 deletions(-) commit 3e141b8b2a9924786e25cdb39617d9814b64fc0c Author: Stefan Walter Date: 2009-02-13 Show the correct MD5 hash in certificate basics dialog. Fixes bug #567769 svn path=/trunk/; revision=1567 gcr/gcr-certificate-basics-widget.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit ac07438e6ab5233156c57c8b5ef6874b9c7e8700 Author: Stefan Walter Date: 2009-02-13 Don't try and allocate 0 bytes when changing allocator on an empty buffer. svn path=/trunk/; revision=1565 egg/egg-buffer.c | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) commit 1735c0d2f57f19636ee1491c0892c59fca2d1df9 Author: Stefan Walter Date: 2009-02-13 Don't allow allocating zero bytes. svn path=/trunk/; revision=1564 egg/egg-secure-memory.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 68e6f1607006b816fb63fd173bcc986111fe5607 Author: Stefan Walter Date: 2009-02-13 Use size_t and gsize for memory sizes rather than unsigned long. Fixes bug #571615 svn path=/trunk/; revision=1563 egg/egg-buffer.h | 2 +- egg/egg-secure-memory.c | 10 +++++----- egg/egg-secure-memory.h | 12 +++++++----- gcr/gcr-library.c | 2 +- 4 files changed, 14 insertions(+), 12 deletions(-) commit d68e4ec0ec2bb2f291b2776a77a075b7a5283bfc Author: Stefan Walter Date: 2009-02-13 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 egg/egg-secure-memory.c | 966 +++++++++++++++++++++++++++++------------------ 1 files changed, 603 insertions(+), 363 deletions(-) commit 9f70e6cd8d5bc1bba4fdf8bef1962f7251a62fa2 Author: Stefan Walter Date: 2009-02-13 Be much stricter about checking pointers and sizes being passed around. svn path=/trunk/; revision=1561 egg/egg-secure-memory.c | 78 ++++++++++++++++++---------------------------- 1 files changed, 31 insertions(+), 47 deletions(-) commit 787326a0a54e4487fd647d44a3f767f30ee4a2ed Author: Stefan Walter Date: 2009-02-13 Remove unused field. svn path=/trunk/; revision=1560 egg/egg-secure-memory.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 70363241720081d05611c2fe4b5e641068665814 Author: Stefan Walter Date: 2009-02-13 Calculate memory header size at compile time. svn path=/trunk/; revision=1559 egg/egg-secure-memory.c | 18 ++++++++---------- 1 files changed, 8 insertions(+), 10 deletions(-) commit 38c19a157d3c16cef61da8f17fcebe40d0b8b302 Author: Stefan Walter Date: 2009-02-13 Remove FORCE_MALLOC_MEMORY define. It seems we can accomplish the identical goal with FORCE_FALLBACK_MEMORY. svn path=/trunk/; revision=1558 egg/egg-secure-memory.c | 14 ++------------ 1 files changed, 2 insertions(+), 12 deletions(-) commit fc6f1ecb9c05de4c49d02ae029dc84045d25473d Author: Stefan Walter Date: 2009-02-13 Remove non-useful mincell structure element from sub allocator. svn path=/trunk/; revision=1557 egg/egg-secure-memory.c | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) commit 4b9c52f093e71e5aac97e281518a05bb328eebea Author: Stefan Walter Date: 2009-02-11 Add G_BEGIN_DECLS/G_END_DECLS to gcr headers. svn path=/trunk/; revision=1555 gcr/gcr-certificate-basics-widget.h | 4 ++++ gcr/gcr-certificate-details-widget.h | 4 ++++ gcr/gcr-certificate.h | 4 ++++ gcr/gcr-import-dialog.h | 4 ++++ gcr/gcr-importer.h | 4 ++++ gcr/gcr-parser.h | 4 ++++ gcr/gcr-simple-certificate.h | 4 ++++ gcr/gcr-types.h | 4 ++++ 8 files changed, 32 insertions(+), 0 deletions(-) commit a93feb23d32741470241b7754114a030c5f65cfb Author: Stefan Walter Date: 2009-02-11 Correct pkg-config for the gp11 dependency. svn path=/trunk/; revision=1552 gcr/gcr.pc.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 4e9921eb15fa17bb7d6008cc62d03db532271b24 Author: Stefan Walter Date: 2009-02-08 Add translator comments. Fixes bug #570529 svn path=/trunk/; revision=1538 gcr/gcr-importer.c | 20 ++++++++++++++------ 1 files changed, 14 insertions(+), 6 deletions(-) commit 5f0970d9b8b267a7ce7bb9d6c25c4b97370e94b6 Author: Stefan Walter Date: 2009-02-08 Setup automatically log into token, and pool sessions. svn path=/trunk/; revision=1530 gcr/gcr-library.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) commit d236346a8fd1abdef1e404e3a4454cb7c684c096 Author: Stefan Walter Date: 2009-02-08 CKA_TOKEN is a CK_BBOOL not a CK_ULONG svn path=/trunk/; revision=1529 gcr/gcr-importer.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 38dd123e977d59471d938e5f0414644b2749c0a9 Author: Stefan Walter Date: 2009-02-08 Fix problem with not distributing pkcs11.h svn path=/trunk/; revision=1527 gp11/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 1afa129ffe0770a19cbd4d51903b06a1e0d31e24 Author: Stefan Walter Date: 2009-02-08 Move the general dbus code into our egg folder. svn path=/trunk/; revision=1524 egg/Makefile.am | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) commit 03561fc175e45d6375759f0cbca5566ca26a3250 Author: Stefan Walter Date: 2009-02-07 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 egg/Makefile.am | 1 + egg/egg-libgcrypt.c | 118 ++++++++++++++++++++++++++++++++++++++++++ egg/egg-libgcrypt.h | 30 +++++++++++ egg/tests/unit-test-symkey.c | 8 +-- gcr/gcr-library.c | 86 ++----------------------------- 5 files changed, 155 insertions(+), 88 deletions(-) commit 8df7b50a2fa81d5d9032fc55e0d78d2ae5bc968a Author: Stefan Walter Date: 2009-02-07 We should only have one pkcs11.h header. svn path=/trunk/; revision=1517 gp11/Makefile.am | 3 +- gp11/pkcs11.h | 1373 +----------------------------------------------------- 2 files changed, 24 insertions(+), 1352 deletions(-) commit 464d584d28ce2123b6b33e3288c85fe5680ee1e7 Author: Stefan Walter Date: 2009-02-07 Add GTK library dependency in libgcr. See bug #570393 svn path=/trunk/; revision=1509 gcr/Makefile.am | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit e1ad684c1b193c09457ac1b96f5b3172b799277a Author: Stefan Walter Date: 2009-02-07 Use varargs properly. svn path=/trunk/; revision=1508 gp11/tests/unit-test-gp11-object.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit def19c5e48231ef0702dd3df20f686637363b3a4 Author: Stefan Walter Date: 2009-02-07 Use properly sized variable to store handle in the test. svn path=/trunk/; revision=1507 gp11/tests/unit-test-gp11-session.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 5f72a20dd9318d4ac38042d80b76d15eca96fd8a Author: Stefan Walter Date: 2009-02-07 Don't use freed memory in test. svn path=/trunk/; revision=1506 gp11/tests/unit-test-gp11-slot.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit d27032412a6997f349185539f5e973bb66cc9984 Author: Stefan Walter Date: 2009-02-07 Fix problem not specifying size correctly when using varargs in tests. svn path=/trunk/; revision=1505 gp11/tests/unit-test-gp11-attributes.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 2d1cd6269c89e5417809bce63dfc85a0e2e4cef9 Author: Stefan Walter Date: 2009-02-07 Use more portable construct for signifying invalid memory in a test. svn path=/trunk/; revision=1502 egg/tests/unit-test-secmem.c | 18 ++++++++---------- 1 files changed, 8 insertions(+), 10 deletions(-) commit 5ea2a8051e87bb1ca55b9bb1e0cbe7b628f8a7f3 Author: Stefan Walter Date: 2009-02-07 Fix problems with clearing out entire memory block when allocating memory, and then reallocating it. svn path=/trunk/; revision=1501 egg/egg-secure-memory.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit a636ca0696147a229ebf0e57532c6784ab46c2de Author: Thomas Hindoe Paaboel Andersen Date: 2009-02-05 Fix compiler warnings from -Wold-style-declaration. Fixes bug #5706 svn path=/trunk/; revision=1498 egg/egg-openssl.c | 2 +- egg/tests/unit-test-openssl.c | 2 +- egg/tests/unit-test-symkey.c | 2 +- gp11/tests/gp11-test-module.c | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) commit 2a1f05efd13bc632118d5b72743f99ea027cb717 Author: Stefan Walter Date: 2009-02-02 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 gp11/gp11-attributes.c | 2 +- gp11/gp11-object.c | 2 +- gp11/tests/unit-test-gp11-attributes.c | 78 ++++++++++++++++---------------- gp11/tests/unit-test-gp11-object.c | 34 +++++++------- gp11/tests/unit-test-gp11-session.c | 2 +- 5 files changed, 59 insertions(+), 59 deletions(-) commit e45544839214acabf7ff6781e190a2452285f34f Author: Stefan Walter Date: 2009-01-30 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 gp11/gp11.h | 11 +- gp11/pkcs11.h | 916 ++++++++++++++++++++++++++++---------------------------- 2 files changed, 463 insertions(+), 464 deletions(-) commit 7992313f8546679e89d8682bb5c11221cc6a6d5f Author: Stefan Walter Date: 2009-01-30 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 gp11/gp11-attributes.c | 4 ++-- gp11/gp11.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) commit e3f1df5b30bb5aabe590f43ae62ea04be5bba475 Author: Stefan Walter Date: 2009-01-29 Build fixes. * gcr/gcr-simple-certificate.c: * pkcs11/gck/gck-data-der.c: Build fixes. svn path=/trunk/; revision=1482 gcr/gcr-simple-certificate.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 324bdd95095d86bc373fd769a16cae444c1fd4b6 Author: Stefan Walter Date: 2009-01-29 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 gcr/Makefile.am | 15 +++ gcr/gcr-certificate-basics-widget.h | 1 + gcr/gcr-certificate-details-widget.h | 1 + gcr/gcr-certificate.c | 204 ++++++++++++---------------------- gcr/gcr-certificate.h | 39 +++---- gcr/gcr-importer.h | 4 +- gcr/gcr-parser.h | 2 - gcr/gcr-simple-certificate.c | 137 +++++++++++++++++++++++ gcr/gcr-simple-certificate.h | 54 +++++++++ gcr/gcr-types.h | 7 + gcr/gcr.h | 24 +--- gcr/gcr.pc.in | 10 +- gcr/tests/ui-test-details.c | 3 +- gcr/tests/unit-test-certificate.c | 3 +- 14 files changed, 319 insertions(+), 185 deletions(-) commit 0c6dc595af17696b7de763fd6e6501a31edc5f4c Author: Stefan Walter Date: 2009-01-28 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 egg/egg-asn1.c | 377 +++++++++++++++++------ egg/egg-asn1.h | 26 ++- egg/egg-hex.c | 29 ++- egg/egg-hex.h | 10 +- egg/pkix.asn | 9 +- egg/tests/unit-test-asn1.c | 87 +++++- egg/tests/unit-test-hex.c | 16 + gcr/Makefile.am | 13 +- gcr/gcr-certificate-basics-widget.c | 306 ++++++++++++++++++ gcr/gcr-certificate-basics-widget.glade | 512 +++++++++++++++++++++++++++++++ gcr/gcr-certificate-basics-widget.h | 57 ++++ gcr/gcr-certificate-details-widget.c | 462 ++++++++++++++++++++++++++++ gcr/gcr-certificate-details-widget.h | 57 ++++ gcr/gcr-certificate.c | 398 ++++++++++++++++++++++++ gcr/gcr-certificate.h | 91 ++++++ gcr/gcr-library.c | 3 +- gcr/gcr-parser.c | 4 +- gcr/tests/Makefile.am | 21 ++- gcr/tests/ui-test-details.c | 45 +++ gcr/tests/unit-test-certificate.c | 139 +++++++++ 20 files changed, 2528 insertions(+), 134 deletions(-) commit cb90a436ed4e25b02c6df9963d64290b740a2ea9 Author: Stefan Walter Date: 2009-01-21 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 egg/Makefile.am | 11 +- egg/egg-secure-entry.c | 2733 ++++++++++++++++++++++++++++++++++++++++++ egg/egg-secure-entry.h | 187 +++ gcr/Makefile.am | 50 +- gcr/gcr-import-dialog.c | 452 +++++++ gcr/gcr-import-dialog.glade | 185 ++-- gcr/gcr-import-dialog.h | 86 ++ gcr/gcr-importer.c | 749 +++++++++++- gcr/gcr-importer.h | 59 +- gcr/gcr-internal.c | 116 -- gcr/gcr-internal.h | 8 +- gcr/gcr-library.c | 215 ++++ gcr/gcr-parser.c | 163 +-- gcr/gcr-parser.h | 44 +- gcr/gcr-types.h | 19 +- gcr/gcr.h | 46 + gcr/tests/Makefile.am | 4 + gcr/tests/unit-test-parser.c | 2 + 18 files changed, 4673 insertions(+), 456 deletions(-) commit 21fc592b57f7729ead21efec04a2bfe94f50e296 Author: Stefan Walter Date: 2009-01-20 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 gp11/gp11-module.c | 49 +++++++++++++++++++++++++++++++++ gp11/gp11-object.c | 52 ++++++++++++++++++++++++++++++++++++ gp11/gp11-slot.c | 51 +++++++++++++++++++++++++++++++++++ gp11/gp11.h | 15 ++++++++++ gp11/tests/unit-test-gp11-module.c | 22 +++++++++++++++ gp11/tests/unit-test-gp11-object.c | 31 +++++++++++++++++++++ gp11/tests/unit-test-gp11-slot.c | 27 ++++++++++++++++++ 7 files changed, 247 insertions(+), 0 deletions(-) commit db0eb08d2ac89a76defe018ba2dbdc4f1160be71 Author: Stefan Walter Date: 2009-01-20 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 gp11/gp11-misc.c | 40 ++++++++++++++++++++++++++++++++++++++++ gp11/gp11-module.c | 21 +-------------------- gp11/gp11-private.h | 12 +++++++++++- gp11/gp11-session.c | 2 +- gp11/gp11-slot.c | 49 ++++++++++++++++++++++++++++++------------------- gp11/gp11.h | 5 +++++ 6 files changed, 88 insertions(+), 41 deletions(-) commit 96135824d4b8da8a6e977d4e01bf57321be0250a Author: Stefan Walter Date: 2009-01-20 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 egg/Makefile.am | 10 +++++++--- egg/tests/test-data/pem-rsa-enc.key | 18 ++++++++++++++++++ egg/tests/test-data/test-certificate-1.der | Bin 0 -> 813 bytes egg/tests/test.asn | 3 +-- egg/tests/unit-test-secmem.c | 4 ++-- egg/tests/unit-test-symkey.c | 6 ++++++ gcr/Makefile.am | 4 +++- 7 files changed, 37 insertions(+), 8 deletions(-) commit 83b4153344db342a71cfd7bdf17474d24e87d2a6 Author: Stefan Walter Date: 2009-01-18 Fix build warning * gcr/tests/unit-test-parser.c: Fix build warning svn path=/trunk/; revision=1464 gcr/tests/unit-test-parser.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 4a0c2323cb653486b90d195564435f3e0e0b2471 Author: Stefan Walter Date: 2009-01-18 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 egg/Makefile.am | 5 +- egg/egg-asn1.c | 5 +- egg/egg-hex.c | 104 + egg/egg-hex.h | 34 + egg/egg-openssl.c | 686 ++++++ egg/egg-openssl.h | 56 + egg/egg-symkey.c | 1027 ++++++++ egg/egg-symkey.h | 76 + egg/tests/Makefile.am | 3 + egg/tests/unit-test-asn1.c | 5 - egg/tests/unit-test-hex.c | 69 + egg/tests/unit-test-openssl.c | 137 ++ egg/tests/unit-test-symkey.c | 226 ++ gcr/Makefile.am | 61 + gcr/gcr-import-dialog.glade | 167 ++ gcr/gcr-importer.c | 213 ++ gcr/gcr-importer.h | 81 + gcr/gcr-internal.c | 116 + gcr/gcr-internal.h | 8 + gcr/gcr-marshal.list | 1 + gcr/gcr-parser.c | 1710 +++++++++++++ gcr/gcr-parser.h | 92 + gcr/gcr-types.h | 45 + gcr/gcr.pc.in | 14 + gcr/tests/Makefile.am | 13 + gcr/tests/test-data/RSA_Root_Certificate_1.pem | 19 + gcr/tests/test-data/RSA_Security_1024_v3.pem | 16 + gcr/tests/test-data/RSA_Security_2048_v3.pem | 22 + gcr/tests/test-data/Thawte_Personal_Basic_CA.pem | 20 + .../test-data/Thawte_Personal_Freemail_CA.pem | 21 + gcr/tests/test-data/Thawte_Personal_Premium_CA.pem | 21 + gcr/tests/test-data/Thawte_Premium_Server_CA.pem | 21 + gcr/tests/test-data/Thawte_Server_CA.pem | 20 + gcr/tests/test-data/Thawte_Time_Stamping_CA.pem | 18 + gcr/tests/test-data/ca-certificates.crt | 2560 ++++++++++++++++++++ gcr/tests/test-data/cacert.org.pem | 41 + gcr/tests/test-data/der-certificate.crt | Bin 0 -> 747 bytes gcr/tests/test-data/der-dsa-1024.key | Bin 0 -> 447 bytes gcr/tests/test-data/der-pkcs8-PBE-MD5-DES.key | Bin 0 -> 677 bytes gcr/tests/test-data/der-pkcs8-PBE-SHA1-3DES.key | Bin 0 -> 678 bytes gcr/tests/test-data/der-pkcs8-PBE-SHA1-DES.key | Bin 0 -> 677 bytes gcr/tests/test-data/der-pkcs8-PBE-SHA1-RC2-40.key | Bin 0 -> 678 bytes gcr/tests/test-data/der-pkcs8-PBE-SHA1-RC4-128.key | Bin 0 -> 673 bytes gcr/tests/test-data/der-pkcs8-dsa.key | Bin 0 -> 335 bytes gcr/tests/test-data/der-pkcs8-encrypted-pkcs5.key | Bin 0 -> 677 bytes gcr/tests/test-data/der-pkcs8-v2-des.key | Bin 0 -> 711 bytes gcr/tests/test-data/der-pkcs8-v2-des3.key | Bin 0 -> 714 bytes gcr/tests/test-data/der-pkcs8.key | Bin 0 -> 635 bytes gcr/tests/test-data/der-rsa-1024.key | Bin 0 -> 609 bytes gcr/tests/test-data/email.p12 | Bin 0 -> 2488 bytes gcr/tests/test-data/pem-dsa-1024.key | 12 + gcr/tests/test-data/pem-pkcs8.key | 17 + gcr/tests/test-data/pem-rsa-enc.key | 18 + gcr/tests/test-data/test-x509-swiss.p7b | Bin 0 -> 1002 bytes gcr/tests/test-data/unclient.p12 | Bin 0 -> 1476 bytes gcr/tests/unit-test-parser.c | 136 ++ gp11/gp11.h | 6 +- 57 files changed, 7909 insertions(+), 13 deletions(-) commit a52d75ec21ac6fec61e2ea2216308f6742c2c975 Author: Stefan Walter Date: 2009-01-17 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 egg/Makefile.am | 55 ++ egg/egg-asn1.c | 1015 ++++++++++++++++++++++++++++++++++ egg/egg-asn1.h | 79 +++ egg/egg-buffer.c | 566 +++++++++++++++++++ egg/egg-buffer.h | 194 +++++++ egg/egg-secure-memory.c | 805 +++++++++++++++++++++++++++ egg/egg-secure-memory.h | 87 +++ egg/pk.asn | 103 ++++ egg/pkix.asn | 1230 ++++++++++++++++++++++++++++++++++++++++++ egg/tests/Makefile.am | 23 + egg/tests/test.asn | 19 + egg/tests/unit-test-asn1.c | 417 ++++++++++++++ egg/tests/unit-test-secmem.c | 139 +++++ 13 files changed, 4732 insertions(+), 0 deletions(-) commit be9d48c540c2b9141c40e3c1493a7dca4010eebc Author: Stefan Walter Date: 2009-01-08 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 gp11/gp11-module.c | 14 +++++++++----- gp11/gp11-session.c | 5 +---- gp11/gp11-slot.c | 2 +- 3 files changed, 11 insertions(+), 10 deletions(-) commit 7cc238c1c760476f7c86c8896953a23fdee2bbfa Author: Stefan Walter Date: 2009-01-06 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 gp11/gp11.h | 52 ++++++---- gp11/reference/Makefile.am | 3 + gp11/reference/gp11-undeclared.txt | 14 +++ gp11/reference/tmpl/gp11-unused.sgml | 162 ++++++++++++++++++++++++++++ gp11/reference/tmpl/gp11.sgml | 184 -------------------------------- gp11/tests/gp11-test-module.c | 10 +- gp11/tests/unit-test-gp11-attributes.c | 2 +- 7 files changed, 216 insertions(+), 211 deletions(-) commit a1f119cee873a788f64253a8695281c8389433eb Author: Stefan Walter Date: 2009-01-06 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 gp11/gp11-slot.c | 44 ++++++++++++++++++++++++++++++++++++++++++++ gp11/gp11.h | 3 +++ 2 files changed, 47 insertions(+), 0 deletions(-) commit 29a03560f6776531a264aaa25f2b4947a17405ce Author: Stefan Walter Date: 2009-01-05 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 gp11/gp11-slot.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 32bebad314a1b2e0a43020de12395178f49a9ccb Author: Stefan Walter Date: 2009-01-05 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 gp11/gp11-module.c | 17 +- gp11/reference/gp11-undeclared.txt | 10 + gp11/reference/tmpl/gp11-unused.sgml | 116 +++++++++ gp11/reference/tmpl/gp11.sgml | 455 ++++++++++++++-------------------- 4 files changed, 324 insertions(+), 274 deletions(-) commit 6cf62374368f8749f58d3280656ad7c2981c935b Author: Stefan Walter Date: 2009-01-05 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 gp11/gp11-module.c | 45 ++++++++++++++++++++++++----------- gp11/gp11.h | 7 +++-- gp11/tests/unit-test-gp11-module.c | 11 +++++--- 3 files changed, 42 insertions(+), 21 deletions(-) commit 2cf9c74fa3e068c0fdeaa04a9abf4c607aa15cde Author: Stefan Walter Date: 2009-01-05 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 gp11/gp11-call.c | 4 +- gp11/gp11-module.c | 691 ++++++++++++++++++++++++++++++++--- gp11/gp11-private.h | 31 ++- gp11/gp11-session.c | 34 +- gp11/gp11-slot.c | 536 +++------------------------ gp11/gp11.h | 66 +++- gp11/tests/unit-test-gp11-crypto.c | 12 +- gp11/tests/unit-test-gp11-module.c | 69 ++++ gp11/tests/unit-test-gp11-session.c | 29 +- 9 files changed, 875 insertions(+), 597 deletions(-) commit 6cc5e6d1d9de2030ebdfeb0b969feed5439d93bd Author: Stefan Walter Date: 2009-01-03 Add method to initialize module from a function list. * gp11/gp11.h: * gp11/gp11-module.c: Add method to initialize module from a function list. svn path=/trunk/; revision=1418 gp11/gp11-module.c | 58 ++++++++++++++++++++++++++++++++++++++++++--------- gp11/gp11.h | 4 +++ 2 files changed, 51 insertions(+), 11 deletions(-) commit 47aa73135c764c9bdf99353402ad655a4dc6b602 Author: Stefan Walter Date: 2008-12-30 Add support for specifying custom allocators on GP11Attributes, and fine * gp11/gp11.h: * gp11/gp11-attributes.c: * gp11/gp11-object.c: * gp11/gp11-private.h: * gp11/gp11-session.c: * gp11/tests/Makefile.am: * gp11/tests/unit-test-gp11-attributes.c: * gp11/tests/unit-test-gp11-crypto.c: * gp11/tests/unit-test-gp11-object.c: * tool/gkr-tool-import.c: Add support for specifying custom allocators on GP11Attributes, and fine tune how gp11_object_get_* work. Add concept of locked attribute arrays with guarantees of application to not modify while we're processing them. svn path=/trunk/; revision=1414 gp11/gp11-attributes.c | 423 +++++++++++++++++++++++++------- gp11/gp11-object.c | 423 +++++++++++++++++++++----------- gp11/gp11-private.h | 19 +- gp11/gp11-session.c | 56 ++++- gp11/gp11.h | 42 ++- gp11/tests/Makefile.am | 8 +- gp11/tests/unit-test-gp11-attributes.c | 106 ++++++++- gp11/tests/unit-test-gp11-crypto.c | 10 +- gp11/tests/unit-test-gp11-object.c | 98 ++++---- 9 files changed, 861 insertions(+), 324 deletions(-) commit 8ffcb856fa17da0e41f5fce2510900d7e581ab55 Author: Stefan Walter Date: 2008-12-29 Add crypto support to GP11 library. Add support for auto-login of context * gp11/gp11.h: * gp11/gp11-call.c: * gp11/gp11-marshal.list: * gp11/gp11-object.c: * gp11/gp11-private.h: * gp11/gp11-session.c: * gp11/gp11-slot.c: * gp11/tests/gp11-test.h: * gp11/tests/gp11-test-module.c: * gp11/tests/Makefile.am: * gp11/unit-test-gp11-crypto.c: * gp11/unit-test-gp11-session.c: Add crypto support to GP11 library. Add support for auto-login of context specific unlock of keys. Rework how auto-login of a token works. svn path=/trunk/; revision=1413 gp11/gp11-call.c | 118 +++------ gp11/gp11-marshal.list | 4 +- gp11/gp11-object.c | 48 ++-- gp11/gp11-private.h | 22 ++- gp11/gp11-session.c | 429 +++++++++++++++++++++++++++++----- gp11/gp11-slot.c | 189 ++++++++++++--- gp11/gp11.h | 352 +++++++++++++-------------- gp11/tests/Makefile.am | 1 + gp11/tests/gp11-test-module.c | 446 ++++++++++++++++++++++++----------- gp11/tests/gp11-test.h | 15 ++ gp11/tests/unit-test-gp11-crypto.c | 313 ++++++++++++++++++++++++ gp11/tests/unit-test-gp11-session.c | 17 ++- 12 files changed, 1433 insertions(+), 521 deletions(-) commit ba78c4d9ad389bb42608935d1bd79e0039960154 Author: Stefan Walter Date: 2008-12-27 Add basic thread-safety. * gp11/gp11.h: * gp11/gp11-call.c: * gp11/gp11-marshal.list: * gp11/gp11-misc.c: * gp11/gp11-module.c: * gp11/gp11-object.c: * gp11/gp11-session.c: * gp11/gp11-slot.c: * gp11/tests/unit-test-gp11-module.c: * gp11/tests/unit-test-gp11-object.c: * gp11/tests/unit-test-gp11-session.c: Add basic thread-safety. svn path=/trunk/; revision=1411 gp11/gp11-call.c | 41 ++- gp11/gp11-marshal.list | 1 + gp11/gp11-misc.c | 7 +- gp11/gp11-module.c | 184 ++++++---- gp11/gp11-object.c | 374 ++++++++++++------- gp11/gp11-session.c | 408 +++++++++++++-------- gp11/gp11-slot.c | 679 ++++++++++++++++++++++------------- gp11/gp11.h | 51 ++-- gp11/tests/unit-test-gp11-module.c | 2 +- gp11/tests/unit-test-gp11-object.c | 27 +- gp11/tests/unit-test-gp11-session.c | 31 ++- 11 files changed, 1136 insertions(+), 669 deletions(-) commit 49d5524b08d19291172132629156cb7735bf5371 Author: Stefan Walter Date: 2008-12-21 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 gp11/gp11-call.c | 193 +++++++++++++++++++++++++---------- gp11/gp11-object.c | 6 +- gp11/gp11-private.h | 29 +----- gp11/gp11-slot.c | 5 +- gp11/tests/unit-test-gp11-object.c | 1 + 5 files changed, 146 insertions(+), 88 deletions(-) commit 7da9dc1cb18a125ac52f9386a2889360cd011810 Author: Stefan Walter Date: 2008-12-17 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 gp11/gp11-call.c | 36 +++++++++++++++++++++++------------- gp11/gp11-object.c | 5 ++++- gp11/gp11-slot.c | 7 ++++++- 3 files changed, 33 insertions(+), 15 deletions(-) commit 74fdf52afaf386f08104aabae287e8d2830bbc12 Author: Stefan Walter Date: 2008-12-14 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 gp11/gp11-call.c | 70 ++++++++---- gp11/gp11-object.c | 221 ++++++++++++++++++++++++++++++------ gp11/gp11-private.h | 17 ++- gp11/gp11-session.c | 22 ++-- gp11/gp11-slot.c | 8 +- gp11/gp11.h | 10 ++- gp11/reference/tmpl/gp11.sgml | 9 +- gp11/tests/unit-test-gp11-object.c | 58 +++++++++- 8 files changed, 331 insertions(+), 84 deletions(-) commit 467a9220714dbd8a03e7bd058c3ee062e2256ad3 Author: Stefan Walter Date: 2008-11-04 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 gp11/tests/gp11-test.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit d0738de56b7bd940dad1b508633c113ec6a3737a Author: Stefan Walter Date: 2008-09-20 Release version 2.24.0 * ChangeLog: * configure.in: * NEWS: * gp11/reference/Makefile.am: Release version 2.24.0 svn path=/trunk/; revision=1344 gp11/reference/Makefile.am | 7 +- gp11/reference/gp11-undeclared.txt | 582 ++++++ gp11/reference/tmpl/gp11-unused.sgml | 3510 ++++++++++++++++++++++++++++++++++ 3 files changed, 4094 insertions(+), 5 deletions(-) commit bd40cd3455f7a8629ce4a940708e75d6878e6e9d Author: Stefan Walter Date: 2008-09-18 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 gp11/gp11-module.c | 9 + gp11/gp11-object.c | 239 +++ gp11/gp11-session.c | 254 +++ gp11/gp11-slot.c | 151 ++ gp11/reference/Makefile.am | 4 +- gp11/reference/gp11-docs.sgml | 1 + gp11/reference/gp11-sections.txt | 16 + gp11/reference/gp11-undeclared.txt | 578 ------ gp11/reference/tmpl/gp11-unused.sgml | 3470 ---------------------------------- 9 files changed, 672 insertions(+), 4050 deletions(-) commit 481ad248878c114df238e0851d02c4f7c9f9fe40 Author: Stefan Walter Date: 2008-09-14 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 gp11/gp11-module.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) commit 3e414f56fcf3b7dc2ab680449218f7c3fbb6777b Author: Stefan Walter Date: 2008-09-07 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 gp11/gp11-slot.c | 33 +++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 deletions(-) commit a336ded87ffc9166e67adc008b7b11f4d2d283a5 Author: Stefan Walter Date: 2008-08-31 Complete some more documentation. * gp11/gp11-misc.c: * gp11/gp11-module.c: Complete some more documentation. svn path=/trunk/; revision=1284 gp11/gp11-misc.c | 37 ++++++++++++++++++++++++++++++++++++- gp11/gp11-module.c | 24 ++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 1 deletions(-) commit 6966ce1492f0e70064a78f66828fecb30050fa27 Author: Stefan Walter Date: 2008-08-31 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 gp11/gp11-misc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit d8680b72be37add31bf622a1d56f87e5975e76f9 Author: Stefan Walter Date: 2008-08-28 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 gp11/Makefile.am | 4 +- gp11/gp11-attributes.c | 218 +++- gp11/gp11.h | 2 + gp11/reference/Makefile.am | 96 + gp11/reference/gp11-docs.sgml | 20 + gp11/reference/gp11-sections.txt | 872 +++++++++ gp11/reference/gp11-undeclared.txt | 578 ++++++ gp11/reference/gp11.types | 4 + gp11/reference/tmpl/gp11-unused.sgml | 3470 ++++++++++++++++++++++++++++++++++ gp11/reference/tmpl/gp11.sgml | 2884 ++++++++++++++++++++++++++++ 10 files changed, 8145 insertions(+), 3 deletions(-) commit 877a4f53b606253be412ffb865127268e04540db Author: Stefan Walter Date: 2008-08-28 Missing file from previous commit svn path=/trunk/; revision=1277 gp11/tests/unit-test-gp11-slot.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 691799b3fa31388dcdf4fe624e62719bbb474178 Author: Stefan Walter Date: 2008-08-28 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 gp11/gp11-slot.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit bd8b0606225a63d7c2f787c7051d47729ed4d76b Author: Stefan Walter Date: 2008-08-23 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 gp11/gp11-call.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit dfcde96d8481cab157e09e7f1a43370beaa0d1de Author: Stefan Walter Date: 2008-08-17 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 gp11/gp11-attributes.c | 22 ++++++++++++++++++++++ gp11/gp11-call.c | 24 ++++++++++++++++++++++++ gp11/gp11-misc.c | 24 ++++++++++++++++++++++++ gp11/gp11-module.c | 22 ++++++++++++++++++++++ gp11/gp11-object.c | 22 ++++++++++++++++++++++ gp11/gp11-private.h | 23 +++++++++++++++++++++++ gp11/gp11-session.c | 22 ++++++++++++++++++++++ gp11/gp11-slot.c | 22 ++++++++++++++++++++++ gp11/gp11.h | 23 +++++++++++++++++++++++ 9 files changed, 204 insertions(+), 0 deletions(-) commit 65bf651bc06bfbdcff6d845c95df00837d3fc46a Author: Stefan Walter Date: 2008-08-17 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 gp11/gp11-attributes.c | 323 ++++++++++++++++++++++++++++++++---- gp11/gp11-misc.c | 2 +- gp11/gp11-object.c | 26 ++-- gp11/gp11-private.h | 4 +- gp11/gp11-session.c | 16 +- gp11/gp11-slot.c | 88 ++++++---- gp11/gp11.h | 143 +++++++++-------- gp11/tests/unit-test-gp11-object.c | 2 +- gp11/tests/unit-test-gp11-slot.c | 11 +- 9 files changed, 453 insertions(+), 162 deletions(-) commit f0d1d5c0e011d5463e0fd76d995eb3663abdc08f Author: Stefan Walter Date: 2008-08-03 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 gp11/gp11-attributes.c | 54 ++++++++++++++++++++++++++++++++++++++++++++--- gp11/gp11-call.c | 7 +++-- gp11/gp11-object.c | 32 ++++++++++++++++++++++++---- gp11/gp11-private.h | 1 + gp11/gp11-session.c | 12 +++++----- gp11/gp11-slot.c | 4 +- gp11/gp11.h | 10 ++++++++ 7 files changed, 100 insertions(+), 20 deletions(-) commit 697292e361f718509d5b10de260140bb406a30a2 Author: Stefan Walter Date: 2008-08-03 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 gp11/gp11-attributes.c | 38 +++++++++++++++++++++----------- gp11/gp11-object.c | 29 +++++++++++++++++++++-- gp11/gp11-session.c | 7 ++++++ gp11/gp11-slot.c | 7 ++++++ gp11/gp11.h | 25 ++++++++++++++++---- gp11/tests/unit-test-gp11-attributes.c | 26 +++++++++------------ 6 files changed, 96 insertions(+), 36 deletions(-) commit ee225b412dc3f28e3c2f167d3c1514ba27d45492 Author: Stefan Walter Date: 2008-08-03 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 gp11/gp11-attributes.c | 2 +- gp11/gp11.h | 2 +- gp11/gp11.pc.in | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit ca5f34e5939708f2408a27bb22efa154c51ffa32 Author: Stefan Walter Date: 2008-07-28 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 gp11/gp11-misc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 114c4255375cfd877deca6422d82ffc18de5f10d Author: Stefan Walter Date: 2008-07-25 Build fixes. Fixes bug #544407 * gp11/gp11-module.c: Build fixes. Fixes bug #544407 svn path=/trunk/; revision=1203 gp11/gp11-module.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 90a3ff03852b65ce97725dc7331b4d81c7881519 Author: Stefan Walter Date: 2008-07-24 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 gp11/gp11-module.c | 4 ++-- gp11/gp11.h | 1 + gp11/tests/unit-test-gp11-module.c | 6 +++--- gp11/tests/unit-test-gp11-object.c | 2 +- gp11/tests/unit-test-gp11-session.c | 2 +- gp11/tests/unit-test-gp11-slot.c | 2 +- 6 files changed, 9 insertions(+), 8 deletions(-) commit 9fca43de84c76dc3c92404cf88dab9102ea5d558 Author: Stefan Walter Date: 2008-07-24 Build fix * gp11/gp11-attributes.c: Build fix svn path=/trunk/; revision=1199 gp11/gp11-attributes.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit dbecd165f150d04f65dacf120a60e1a188efb0b4 Author: Stefan Walter Date: 2008-07-21 Release 2.23.5 * gp11/Makefile.am: * configure.in: * NEWS: Release 2.23.5 svn path=/trunk/; revision=1192 gp11/Makefile.am | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit b020ea5e3fa5f0af1ef8fd1306164fa72e19b1b7 Author: Stefan Walter Date: 2008-07-20 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 gp11/Makefile.am | 13 +++++- gp11/gp11-call.c | 74 +++++++++++++++++++++++++++-- gp11/gp11-marshal.list | 2 + gp11/gp11-private.h | 13 +++++- gp11/gp11-session.c | 22 ++++++++- gp11/gp11-slot.c | 87 ++++++++++++++++++++++++++++++++++- gp11/gp11.h | 16 ++++++ gp11/tests/gp11-test-module.c | 32 ++++++++----- gp11/tests/unit-test-gp11-session.c | 61 ++++++++++++++++++++++++ 9 files changed, 297 insertions(+), 23 deletions(-) commit fa948afb963f7d5dc0aad175e5111fc1ece8c521 Author: Stefan Walter Date: 2008-07-19 Missing file from last commit. svn path=/trunk/; revision=1184 gp11/tests/unit-test-gp11-session.c | 55 +++++++++++++++++++++++++++++++++++ 1 files changed, 55 insertions(+), 0 deletions(-) commit 30901ef7ee5bca9e45a818ef53f04ccd069a6052 Author: Stefan Walter Date: 2008-07-19 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 gp11/Makefile.am | 5 +- gp11/gp11-call.c | 16 +++ gp11/gp11-private.h | 8 ++ gp11/gp11-session.c | 21 ++++ gp11/gp11-slot.c | 284 +++++++++++++++++++++++++++++++++++++++++++-------- gp11/gp11.h | 9 ++- gp11/gp11.pc.in | 2 +- 7 files changed, 299 insertions(+), 46 deletions(-) commit 2058b7e3660665b7000e7fb9b5cbc1038e61363f Author: Stefan Walter Date: 2008-07-14 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 gp11/tests/Makefile.am | 10 +- gp11/tests/gp11-test-module.c | 261 +++++++++++++++----------------- gp11/tests/gp11-test.h | 8 +- gp11/tests/unit-test-gp11-attributes.c | 142 +++++++++--------- gp11/tests/unit-test-gp11-module.c | 24 ++-- gp11/tests/unit-test-gp11-object.c | 72 +++++----- gp11/tests/unit-test-gp11-session.c | 23 ++-- gp11/tests/unit-test-gp11-slot.c | 74 +++++----- 8 files changed, 300 insertions(+), 314 deletions(-) commit 83d42d6c658642a738173e7f2e80a93ea417b8f0 Author: Stefan Walter Date: 2008-07-14 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 gp11/Makefile.am | 51 ++ gp11/gp11-attributes.c | 508 ++++++++++++ gp11/gp11-call.c | 341 ++++++++ gp11/gp11-misc.c | 218 +++++ gp11/gp11-module.c | 319 ++++++++ gp11/gp11-object.c | 458 +++++++++++ gp11/gp11-private.h | 99 +++ gp11/gp11-session.c | 864 ++++++++++++++++++++ gp11/gp11-slot.c | 436 ++++++++++ gp11/gp11.h | 1294 ++++++++++++++++++++++++++++++ gp11/gp11.pc.in | 14 + gp11/pkcs11.h | 1357 ++++++++++++++++++++++++++++++++ gp11/tests/Makefile.am | 39 + gp11/tests/gp11-test-module.c | 1297 ++++++++++++++++++++++++++++++ gp11/tests/gp11-test.h | 22 + gp11/tests/unit-test-gp11-attributes.c | 440 +++++++++++ gp11/tests/unit-test-gp11-module.c | 67 ++ gp11/tests/unit-test-gp11-object.c | 369 +++++++++ gp11/tests/unit-test-gp11-session.c | 142 ++++ gp11/tests/unit-test-gp11-slot.c | 122 +++ 20 files changed, 8457 insertions(+), 0 deletions(-) commit bcfcb3944b78285a4d6aa106acabb2b228bfdb12 Author: Alexander Larsson Date: 2003-11-27 Initial revision