Stef Walter [Tue, 28 Feb 2012 21:02:52 +0000 (22:02 +0100)]
Add a desktop file for gcr-prompter
* So that it shows up in the shell correctly
https://bugzilla.gnome.org/show_bug.cgi?id=668535
Colin Walters [Tue, 28 Feb 2012 11:45:25 +0000 (06:45 -0500)]
gcr-secure-memory: Fix prototype to match implementation
Stef Walter [Mon, 27 Feb 2012 18:49:25 +0000 (19:49 +0100)]
gcr: Change frob-prompt so that cancelling the prompt stops
Stef Walter [Fri, 10 Feb 2012 16:02:46 +0000 (17:02 +0100)]
gcr: Expose secure memory API
* Add gcr_secure_memory_new() and gcr_secure_memory_free()
and friends.
* Exposed so that we can implement secure entry widget in
gnome-shell
Stef Walter [Fri, 10 Feb 2012 15:15:49 +0000 (16:15 +0100)]
Release 3.3.5
Stef Walter [Fri, 10 Feb 2012 15:11:52 +0000 (16:11 +0100)]
gcr: More checks and docs for GcrPrompt
Stef Walter [Fri, 10 Feb 2012 13:24:51 +0000 (14:24 +0100)]
gcr: Add gcr_prompt_reset() function
* Resets all properties of the prompt to the defaults in the
interface
Stef Walter [Fri, 10 Feb 2012 12:52:36 +0000 (13:52 +0100)]
gcr: Add way to set the labels for the prompt buttons
* Add continue-label and cancel-label properties to GcrPrompt
* Implement in GcrSystemPrompt and in the mock prompter
https://bugzilla.gnome.org/show_bug.cgi?id=669793
Stef Walter [Fri, 10 Feb 2012 08:08:03 +0000 (09:08 +0100)]
gcr: Reenable grabs for password prompts
* Disable them when configure is passed --enable-debug
Stef Walter [Mon, 16 Jan 2012 15:06:42 +0000 (16:06 +0100)]
Release version 3.3.4
Stef Walter [Tue, 10 Jan 2012 19:14:58 +0000 (20:14 +0100)]
gcr: Display an appropriate title in gcr-viewer
* And add display-name property to GcrViewerWidget
Stef Walter [Tue, 10 Jan 2012 15:52:37 +0000 (16:52 +0100)]
gcr: rename prompt test file, and add another one
Ryan Lortie [Mon, 9 Jan 2012 16:19:57 +0000 (17:19 +0100)]
Change style of toplevel installed headers
Use <gcr/xxx.h> instead of "xxx.h" style.
https://bugzilla.gnome.org/show_bug.cgi?id=667573
Ryan Lortie [Sun, 8 Jan 2012 03:15:34 +0000 (22:15 -0500)]
various srcdir != builddir fixes
https://bugzilla.gnome.org/show_bug.cgi?id=667573
Stef Walter [Mon, 9 Jan 2012 15:08:14 +0000 (16:08 +0100)]
gcr: Add tests for new-prompt signal on GcrSystemPrompter
Stef Walter [Mon, 9 Jan 2012 14:34:26 +0000 (15:34 +0100)]
gcr: Some tweaks for the frob-prompt tester
Stef Walter [Mon, 9 Jan 2012 14:33:07 +0000 (15:33 +0100)]
gcr: Add 'new-prompt' signal to GcrSystemPrompter
* A signal which creates and returns a prompt. The first new-prompt
signal handler to return a non-null GcrPrompt 'wins'
* This is for use in gnome-shell where we can't set a prompt-gtype
Stef Walter [Mon, 9 Jan 2012 14:46:43 +0000 (15:46 +0100)]
gcr: Fixes for glib deprecations in the mock prompter
Stef Walter [Tue, 3 Jan 2012 11:53:28 +0000 (12:53 +0100)]
gcr: Include GcrPrompt stuff in documentation
darkxst [Fri, 23 Dec 2011 09:38:08 +0000 (10:38 +0100)]
This fixes the build errors, on Ubuntu 11.10
Stef Walter [Thu, 22 Dec 2011 10:16:34 +0000 (11:16 +0100)]
Bump version number
Stef Walter [Wed, 21 Dec 2011 08:45:12 +0000 (09:45 +0100)]
gck: Remove gck_attributes_add_owned()
* And make gck_attributes_add_attribute() handle owned attributes
* Unowned attributes should be done with gck_attributes_add_data()
* This change to ABI cleans things up before API is released as stable
Stef Walter [Wed, 21 Dec 2011 08:04:10 +0000 (09:04 +0100)]
Release 3.3.3.1
* And some build warning fixes
Stef Walter [Tue, 20 Dec 2011 14:54:00 +0000 (15:54 +0100)]
Fix build problems
* Linker error with gcr-prompter
* Fix warning about g_set_error
* Fix documentation warnings about gck_attributes_set ...
Stef Walter [Mon, 19 Dec 2011 11:33:57 +0000 (12:33 +0100)]
Add gobject and gio dependencies to package config files
https://bugzilla.gnome.org/show_bug.cgi?id=666498
Stef Walter [Mon, 19 Dec 2011 09:39:11 +0000 (10:39 +0100)]
Release version 3.3.3
Stef Walter [Mon, 19 Dec 2011 08:31:06 +0000 (09:31 +0100)]
gcr: Build fix for Fedora packaging
https://bugzilla.gnome.org/show_bug.cgi?id=666375
Stef Walter [Mon, 19 Dec 2011 08:30:51 +0000 (09:30 +0100)]
gck: Documentation warning fixes
Stef Walter [Mon, 19 Dec 2011 08:18:34 +0000 (09:18 +0100)]
gcr: Fix licensing
* Remove unused gcr/gcr-menu-button.[ch]
* Relicense gcr/gcr-collection-model.[ch]
https://bugzilla.gnome.org/show_bug.cgi?id=666378
Stef Walter [Mon, 19 Dec 2011 07:32:19 +0000 (08:32 +0100)]
gcr: Build fixes
Stef Walter [Mon, 19 Dec 2011 06:58:00 +0000 (07:58 +0100)]
gcr: Fine tune dbus prompting interface
https://bugzilla.gnome.org/show_bug.cgi?id=656954
Stef Walter [Mon, 19 Dec 2011 06:11:15 +0000 (07:11 +0100)]
gcr: Correct bus names in gcr-prompter service autostart files
Stef Walter [Mon, 19 Dec 2011 06:10:43 +0000 (07:10 +0100)]
gcr: Fix issues in GcrPromptDialog display
* Allow message and description to wrap
* Focus password entry on startup
* Put spinner on main action button
Stef Walter [Sun, 18 Dec 2011 18:54:51 +0000 (19:54 +0100)]
gcr: Add timeout to gcr-prompter process
* When no prompts occur for 10 seconds, quit process
Stef Walter [Sun, 18 Dec 2011 17:22:47 +0000 (18:22 +0100)]
gcr: Add frob-prompt tool and fix bugs
* Add frob-prompt tool for playing around with prompts
* Fix tons of bugs and refactor where necessary
Stef Walter [Sat, 17 Dec 2011 07:55:59 +0000 (08:55 +0100)]
gcr: Fix up documentation for recent prompting work
Stef Walter [Mon, 21 Nov 2011 07:46:47 +0000 (08:46 +0100)]
gcr: Rework how prompter works by introducing GcrPrompt interface
* GcrSystemPrompt is an implementation of GcrPrompt which
calls to GcrSystemPrompter
* GcrSystemPrompter creates GcrPrompt objects on its side
which do the actual prompting.
Stef Walter [Tue, 1 Nov 2011 08:00:48 +0000 (09:00 +0100)]
gcr: Fix dialog layout, and add dbus service
* A bunch of bug fixes and other fixes to the default prompter tool
* Add support for making the dialog transient
Stef Walter [Mon, 31 Oct 2011 16:57:58 +0000 (17:57 +0100)]
gcr: Fix a couple memory leaks in the prompter
Stef Walter [Mon, 31 Oct 2011 16:43:54 +0000 (17:43 +0100)]
gcr: Make prompter tests work properly, add debugging
* Run mock prompter in a separate thread to fix blocking
and concurrency issues.
* Run tests in in the main process thread
* Add more debugging output
Stef Walter [Mon, 31 Oct 2011 09:00:09 +0000 (10:00 +0100)]
gcr: Fix missing bit of GcrSecureEntryBuffer symbols
Stef Walter [Mon, 31 Oct 2011 08:59:45 +0000 (09:59 +0100)]
gcr: Pass properties changed back in prompter dbus method responses
* This is to prevent race conditions with the PropertiesChanged
signal.
Stef Walter [Fri, 28 Oct 2011 10:06:03 +0000 (12:06 +0200)]
gcr: Add system prompt and prompter
* GcrSystemPrompt is a class used on the client.
* GcrSystemPrompter is a base class for implementing the actual prompter
* GcrMockPrompter is a mock prompter, which returns predefined values
useful in tests
Stef Walter [Thu, 27 Oct 2011 11:21:48 +0000 (13:21 +0200)]
gcr: Fix typo in GcrSecretExchange docs
Stef Walter [Thu, 27 Oct 2011 11:20:01 +0000 (13:20 +0200)]
gcr: Fix up the gcr-secret-exchange.h header
Stef Walter [Thu, 27 Oct 2011 10:53:46 +0000 (12:53 +0200)]
gcr: Expose GcrSecureEntryBuffer as a public class
* This is a GtkEntryBuffer that uses non-pageable memory for the
buffer, to be used with passwords and secrets.
Stef Walter [Tue, 13 Dec 2011 19:05:43 +0000 (20:05 +0100)]
gcr: Add uris to GcrImporter
* This allows us to refresh the appropriate place in seahorse
Stef Walter [Tue, 13 Dec 2011 13:52:12 +0000 (14:52 +0100)]
egg: Check that bytes are valid when they come into ASN.1
Stef Walter [Tue, 13 Dec 2011 13:51:55 +0000 (14:51 +0100)]
gcr: Check for invalid attributes when creating subject public keys
Stef Walter [Tue, 13 Dec 2011 13:34:20 +0000 (14:34 +0100)]
gcr: Fix invalid cast in GcrPkcs11Importer
Stef Walter [Fri, 9 Dec 2011 13:25:25 +0000 (14:25 +0100)]
gcr: GcrKeyRenderer has a writable object and attributes properties
* Allows updating the the attributes and object so that we can
retrieve attributes on demand and show them later
Stef Walter [Fri, 9 Dec 2011 06:16:18 +0000 (07:16 +0100)]
Revert changes to libtool version and removed API
* There were problems with applications that didn't use libgck but
linked to the old version with the old libtool number: empathy
* So stub out the removed functions, revert the libtool version changes
instead of removing those functions.
This reverts commit
ef7e91d66839d4104ee6ba9681e49506f5dd5fa3.
Stef Walter [Thu, 8 Dec 2011 19:17:22 +0000 (20:17 +0100)]
gck: Bump gck libtool version, as we removed interfaces from libgck
* libgck API is not yet stable.
* Gck is only used internally in the gcr projcet, gnome-keyring project
and the seahorse project.
* We want to be threadsafe with regard to attributes, and the
functions removed can't be implemented within the new framework.
* Remove deprecated functions at the same time, since this is an
opportunity to cleanup.
Stef Walter [Thu, 8 Dec 2011 16:41:56 +0000 (17:41 +0100)]
gck: Add documentation for newly functions
Stef Walter [Thu, 8 Dec 2011 13:30:23 +0000 (14:30 +0100)]
gck: Rename GckObjectAttributes to GckObjectCache
* And allow updating of the attributes, in particula adding
attributes that are discovered.
* Add a gck_object_cache_lookup() methods which load attributes
and then updates the cache if the object has a cache.
Stef Walter [Wed, 7 Dec 2011 16:52:31 +0000 (17:52 +0100)]
gck: Add floating references to GckAttributes
* Allows us more flexibility in our API in the future
* Simplifies the common case of generating a set of attributes
and directly passing it to a gck function
Stef Walter [Mon, 5 Dec 2011 16:56:03 +0000 (17:56 +0100)]
gck: Add GckBuilder as a mutable attribute set
* Use GckBuilder to build a set of attributes, and then
GckAttributes is a immutable set of attributes.
* We reference count the memory used in attributes, so
as we copy and transfer the attributes without duplicating
values unnecessarily
Stef Walter [Mon, 5 Dec 2011 13:31:39 +0000 (14:31 +0100)]
egg: Make secure memory pool shared across modules
* The globals for the secure memory pool need to be shared across linked
modules. So that for example gck, gcr, and gsecret libraries can
share the same pool, even though code is compiled into each library.
* There's versioning so they'll only work with each other if they all
share the same code.
Stef Walter [Thu, 8 Dec 2011 19:10:18 +0000 (20:10 +0100)]
Bump version number for upcoming release
Stef Walter [Tue, 6 Dec 2011 14:43:32 +0000 (15:43 +0100)]
Fix build for glib 2.31 deprecations
* Mainly g_mutex_new/g_mutex_free g_cond_new/g_cond_free
* Since we like to build with the last stable version of glib,
using #ifdef until these glib changes make it into a stable release.
Stef Walter [Wed, 30 Nov 2011 11:08:55 +0000 (12:08 +0100)]
gcr: Fix testing errors
Stef Walter [Wed, 30 Nov 2011 10:57:45 +0000 (11:57 +0100)]
gcr: Parse gnupg import errors correctly to GError result
* Look at first error output line, and try to get message from
gnupg stderr
Stef Walter [Wed, 30 Nov 2011 10:56:37 +0000 (11:56 +0100)]
gcr: Fix problem looking up the renderers
* Fix format being copied in gcr_parsed_ref()
* Add debug output to the lookup for importers
Stef Walter [Wed, 30 Nov 2011 10:55:26 +0000 (11:55 +0100)]
gcr: Don't show empty dates in gnupg key renderer
* Also hide capabilities line if none are present
Stef Walter [Wed, 30 Nov 2011 10:20:07 +0000 (11:20 +0100)]
gcr: Show import errors in an info bar under the viewer
* Add importing signal to GcrImportButton
* Add a GtkInfoBar to GcrViewerWindow
Stef Walter [Wed, 30 Nov 2011 09:44:17 +0000 (10:44 +0100)]
gcr: Fix invalid memory access in _gcr_records_parse_colons()
Stef Walter [Wed, 30 Nov 2011 08:29:56 +0000 (09:29 +0100)]
gck: Make the gck_attributes_to_string() function public
* Used for debugging and logging
Stef Walter [Tue, 29 Nov 2011 12:44:39 +0000 (13:44 +0100)]
gcr: Add gcr_certificate_get_basic_constraints()
* Function to retrieve basic constraints info from a certificate
Stef Walter [Tue, 29 Nov 2011 11:38:39 +0000 (12:38 +0100)]
gcr: Add gcr_certificate_get_xxx_name()
* To get a decent name for a certificate, using the CN, OU, and O
Stef Walter [Tue, 29 Nov 2011 11:15:03 +0000 (12:15 +0100)]
gck: Retrieve attributes in GckEnumerator properly
* Previously retrieved attributes only for first enumerator
iteration.
* Properly retrieve attributes for objects found, but not
yet attributes retrieved.
Stef Walter [Fri, 25 Nov 2011 19:51:59 +0000 (20:51 +0100)]
gcr: Fix build gulong != gsize
https://bugzilla.gnome.org/show_bug.cgi?id=664832
Stef Walter [Thu, 24 Nov 2011 06:53:49 +0000 (07:53 +0100)]
gcr: Update documentation and symbols
Stef Walter [Wed, 23 Nov 2011 17:13:07 +0000 (18:13 +0100)]
gcr: Support plain RSA signing
* And detect the mechanisms supported on a given key.
Stef Walter [Wed, 23 Nov 2011 12:01:20 +0000 (13:01 +0100)]
gcr: Add support for encoding certificate requests as PEM
* Add textual argument to gcr_certificate_request_encode()
Stef Walter [Wed, 23 Nov 2011 11:59:04 +0000 (12:59 +0100)]
gck: Change gck_object_get attr_types arguments to const
* So they can be used with const defined arrays
Stef Walter [Mon, 21 Nov 2011 12:01:32 +0000 (13:01 +0100)]
gcr: Add missing symbols, and build fixes
Stef Walter [Mon, 21 Nov 2011 12:00:42 +0000 (13:00 +0100)]
gcr: Rename GcrCertificateReqRenderer to GcrCertificateRequestRenderer
* Longer name is more in line with our other names
Stef Walter [Mon, 21 Nov 2011 11:50:19 +0000 (12:50 +0100)]
gcr: Document GcrCertificateRequest
https://bugzilla.gnome.org/show_bug.cgi?id=663604
Stef Walter [Fri, 18 Nov 2011 14:03:59 +0000 (15:03 +0100)]
gcr: Add GcrCertificateRequest class for requesting certificates
* The GcrCertificateRequest class can be used to build certificate
requests.
* Currently only the PKCS#10 format is supported.
https://bugzilla.gnome.org/show_bug.cgi?id=663604
Stef Walter [Fri, 18 Nov 2011 12:22:40 +0000 (13:22 +0100)]
gcr: Implement functions for loading and using SubjectPublicKeyInfo
* Move key calculation routines into gcr-subject-public-key.c
* Move creation of SPK from gcr-fingerprint.c into here
* Implement loading of SPK from PKCS#11 certificates, public keys,
private keys
* Add support for parsing SubjectPublicKeyInfo to parser. Generates
attributes for a CKO_PUBLIC_KEY
* Fix bugs in DER encoding related to this.
* More tweaks on testing infrastructure
Stef Walter [Thu, 17 Nov 2011 10:28:02 +0000 (11:28 +0100)]
gck: add gck_attributes_set() and gck_attributes_set_all() functions
Stef Walter [Thu, 17 Nov 2011 09:51:53 +0000 (10:51 +0100)]
egg: Add support for building simple DNs
Stef Walter [Thu, 17 Nov 2011 09:46:44 +0000 (10:46 +0100)]
egg: Fix regression of DER choice encoding
Stef Walter [Thu, 17 Nov 2011 09:31:37 +0000 (10:31 +0100)]
egg: Encode DER tag classes correctly
* Encode DER tag classes correctly for universal, application
and private classes
Stef Walter [Thu, 17 Nov 2011 09:30:42 +0000 (10:30 +0100)]
egg: Rework egg_assert_cmpbytes()
* Rename to more inline with other testing functions
* Clearer messages
Stef Walter [Thu, 17 Nov 2011 08:20:50 +0000 (09:20 +0100)]
egg: In egg_assert_cmpmem() output printable without encoding
Stef Walter [Thu, 17 Nov 2011 08:20:25 +0000 (09:20 +0100)]
egg: Expose ASN.1 node types
Stef Walter [Thu, 17 Nov 2011 08:10:20 +0000 (09:10 +0100)]
egg: Rename egg_asn1x_xxx_raw_element() to egg_asn1x_xxx_element_raw()
Stef Walter [Tue, 8 Nov 2011 08:32:32 +0000 (09:32 +0100)]
gcr: Add support for viewing certificate requests
* Both PKCS#10/CSR and SPKAC
* Update mime database for SPKAC and CSR
* Associate viewer with these files
https://bugzilla.gnome.org/show_bug.cgi?id=663604
Stef Walter [Mon, 7 Nov 2011 14:11:21 +0000 (15:11 +0100)]
gcr: Add support for parsing PKCS#10 and SPKAC formats
* Add support for PKCS#10 both DER and PEM encoded
* Add support for HTML5 SPKAC <keygen> certificate request
format, both raw DER and encoded like OpenSSL output
https://bugzilla.gnome.org/show_bug.cgi?id=663604
Stef Walter [Tue, 22 Nov 2011 20:46:01 +0000 (21:46 +0100)]
Release version 3.3.2.1
Stef Walter [Mon, 21 Nov 2011 13:10:53 +0000 (14:10 +0100)]
Don't include internal glib headers
* Fixes the build with glib 2.31
Stef Walter [Mon, 21 Nov 2011 11:14:02 +0000 (12:14 +0100)]
Fix bugs and unused code highlighted by the clang static analyzer
Stef Walter [Mon, 21 Nov 2011 10:34:01 +0000 (11:34 +0100)]
Bump version number
Stef Walter [Mon, 21 Nov 2011 10:30:42 +0000 (11:30 +0100)]
Release 3.3.2
Stef Walter [Mon, 21 Nov 2011 10:13:32 +0000 (11:13 +0100)]
egg: Remove usage of libtasn1.h
* Copy a few definitions for using the asn1Parser generated
definitions files.
https://bugzilla.gnome.org/show_bug.cgi?id=664187
Stef Walter [Thu, 17 Nov 2011 14:26:55 +0000 (15:26 +0100)]
Add valgrind memory checking and fix up errors
* This is especially necessary after migrating to EggBytes
since it's reference counted and an easy sourc of memory leaks
* Remove threading from testing framework, as gcr isn't threadsafe
in all parts.
* Fix bugs discovered in memory checking.
* Fix up some of the testing stuff.
Stef Walter [Wed, 16 Nov 2011 07:38:44 +0000 (08:38 +0100)]
gcr: Use GBytes immutable ref counted byte buffers
* Copy from glib patch to EggBytes
* This allows us to reliably build up ASN.1 structures from different
sources, and is needed for the certificate request work.
https://bugzilla.gnome.org/show_bug.cgi?id=663291
Stef Walter [Tue, 15 Nov 2011 17:09:48 +0000 (18:09 +0100)]
gck: Make gck_attributes_unref take a pointer
* So it can be used as a GDestroyNotify
Stef Walter [Tue, 15 Nov 2011 17:02:15 +0000 (18:02 +0100)]
gcr: Add missing symbols to gcr.symbols