Commit Graph

449 Commits

Author SHA1 Message Date
Stef Walter
561e5c72ba The predefined secret schemas are stable 2012-07-13 14:02:19 +02:00
Stef Walter
4fc7d144bb Search for mock-service-0.vapi in the right directory 2012-07-13 13:33:36 +02:00
Stef Walter
772eef69e6 Documentation fix for SecretItem:flags 2012-07-13 13:33:23 +02:00
Stef Walter
77f8368a3a Install headers to libsecret-1 instead of secret-1
* Clearer and more consistent
2012-07-13 13:24:34 +02:00
Stef Walter
83c8674a03 Update documentation for to have correct headers
* Add add more warnings to unstable API documentation
2012-07-13 13:04:26 +02:00
Stef Walter
7816417167 Release version 0.5 2012-07-13 12:48:41 +02:00
Stef Walter
db95ff86b3 Add missing documentation for secret_item_get_schema_name() 2012-07-13 12:26:23 +02:00
Stef Walter
1b84a1ad42 More fixes for broken vapi and gir generation
* Man this is brittle
2012-07-13 12:25:10 +02:00
Stef Walter
234855ea7d Bump the library major version number
* We want to settle on 1 after first stable release
 * Since we're going to start patching projects we want this to have
   the pkg-config file be libsecret-1
2012-07-13 12:24:35 +02:00
Stef Walter
a1c3e9bb09 Document how to build with or use libsecret 2012-07-13 12:01:06 +02:00
Stef Walter
994ae44a77 Split the pkg-config files, gir, and vapi into stable/unstable
* C callers need to use libsecret-0 pkg-config file for stable and
   libsecret-unstable for unstable stuff.
 * Vala callers need to '--pkg libsecret-unstable' for unstable
 * GObject Introspection callers need to use the SecretUnstable package
2012-07-13 11:14:34 +02:00
Stef Walter
5cc30b2b68 Rename the library subdirectory to libsecret
* Death by a thousand paper cuts from gir and vapi not liking
   the fact that the secret.h file was not usable uninstalled
   and installed in the same way.
2012-07-13 10:40:25 +02:00
Stef Walter
931f677c7a Bump version number 2012-07-12 17:14:58 +02:00
Stef Walter
80df2e6484 Add flags for secret_item_create and secret_collection_create
* For future extensibility
2012-07-12 13:59:35 +02:00
Stef Walter
494c13a265 Add secret_item_get_schema_name() function
* And add tests for schemas on items
2012-07-12 13:02:33 +02:00
Stef Walter
3c3e05eb11 Allow passing SecretSchema to secret_item_create() and set_attributes() 2012-07-12 12:49:51 +02:00
Stef Walter
c22bc528df Rename secret_service_read_alias() to secret_collection_for_alias()
* Much more logical, especially in the future when arbitrary aliases
   are implemented in gnome-keyring-daemon
2012-07-12 12:38:50 +02:00
Stef Walter
35022289da Add documentation for how to migrate from libgnome-keyring 2012-07-12 11:40:50 +02:00
Evan Nemerson
a646cd2b33 introspection: add several missing element-type annotations
https://bugzilla.gnome.org/show_bug.cgi?id=679090
2012-07-10 22:30:42 +02:00
Evan Nemerson
3843751b6f vala: update metadata to reflect changes made by 89550876 2012-07-10 12:49:00 -07:00
Stef Walter
b63e664c28 Remove erroneus precondition 2012-07-10 21:39:48 +02:00
Stef Walter
8583ef53dc secret_service_remove() and secret_password_remove() remove multiple
* Remove all items that are not locked that match in a
   secret_service_remove() and secret_password_remove().
2012-07-10 21:38:48 +02:00
Stef Walter
c85cadce76 Validate that we have attributes when looking up
* When matching items, make sure we have attributes if
   no schema name was included in the match
 * This is particularly important because we don't want to
   remove all the items.
2012-07-10 21:37:47 +02:00
Stef Walter
b85c8758b0 Release version 0.4 2012-07-09 11:36:24 +02:00
Stef Walter
9c2eca05ff Implement per collection search
* Use the SearchItems dbus method on the Collection interface
 * Tweak some issues with the service search code as well
2012-07-09 11:23:36 +02:00
Stef Walter
30d1337a7c Register secret service errors as DBus errors
* and strip remote error codes from error->message so that
   they don't clutter things.
2012-07-09 11:23:36 +02:00
Martyn Russell
8339f296e8 Don't try to build test-vala-lang if !HAVE_INTROSPECTION or !ENABLE_VAPIGEN
* libsecret-@SECRET_MAJOR@.vapi is built only with those 2 defines and these
  were not checked before depending that target for the test case

Found during jhbuild run
2012-07-08 17:03:04 +01:00
Stef Walter
5ecab6d33b Get service correctly for secret_service_set_alias()
* We can't use secret_collection_get_service() since a NULL
   collection can be passed in.
2012-07-06 10:40:22 +02:00
Stef Walter
c1f860d45f Fix up documentation 2012-07-06 10:21:04 +02:00
Stef Walter
175ae08984 Disconnect the cached default SecretService if service goes away
* Because the session would no longer be valid if the service
   was autostarted for the same SecretService proxy
2012-07-06 10:08:27 +02:00
Stef Walter
b535ed1bbf Use collection aliases with secret_password_store() and friends
* Make SECRET_COLLECTION_DEFAULT and SECRET_COLLECTION_SESSION
   be the simple aliases for those collections.
 * Accept either an alias or a path in secret_password_store()
   and secret_service_store() and friends.
2012-07-06 09:42:08 +02:00
Stef Walter
7098b856b7 Rename the functions that operate on a dbus item path
* They all contain '_dbus_path' in their name
 * Move secret_service_get_session_path() to the paths functionality
 * Move the secret_collection_new() and secret_item_new() functionality
   to the path based section.
2012-07-06 09:27:05 +02:00
Stef Walter
3cb0d8047d Make sure notifications come in for new objects before waiting
* In tests make sure notifications settle down before waiting
   on new notifications. This fixes random test crashes.
 * Using async here means all signals are delivered by the time
   we get the new object.
2012-07-05 23:33:08 +02:00
Stef Walter
600021a30b Accept NULL as a SecretService parameter for many methods
* We use secret_service_get() to lookup the default
   SecretService in these cases.
 * Use this functionality in the secret_password_xxx()
   functions to greatly simplify them.
2012-07-05 23:33:08 +02:00
Stef Walter
153dfcec5f Add secret_collection_load_items()
* And flags to prevent loading of items when creating a
   SecretCollection object
 * Rename secret_service_ensure_collections() to
   secret_service_load_collections()
2012-07-05 23:33:07 +02:00
Stef Walter
3f0c69d862 secret_service_search() accepts a SecretSchema
* For validation and adding the xdg:schema attribute
2012-07-05 23:33:07 +02:00
Stef Walter
889f6d66b7 Make secret_service_search() able to unlock, load secrets
* Turn secret_service_search() and friends into a more convenient
   API, so that callers can get attributes, unlocking, and secrets
   if so desired.
 * Also support retrieving either one secret, or all of them.
2012-07-05 23:33:07 +02:00
Stef Walter
9c44ab0fa2 Update the "Locked" property of items/collections on lock/unlock
* Make sure this property is kept in sync so it can be used
   immediately in the logic to retrieve secrets or other stuff.
 * We don't wait for a PropertiesChanged, which may come later
2012-07-05 23:33:07 +02:00
Stef Walter
012ed7d620 Move secret_service_get_secrets() to secret_item_load_secrets()
* And cache the secrets on the items instead of returning
   them in a GHashtable
2012-07-05 23:33:07 +02:00
Stef Walter
ba7fe4fe8c Fix invalid pre-condition in secret_item_get_service() 2012-07-05 23:33:07 +02:00
Stef Walter
f962662b09 Separate path based functionality
* Move the dbus object path based functionality into its
   own file and own section of the documentation.
2012-07-05 23:33:07 +02:00
Stef Walter
6f4a53f08b Don't continue initialization of SecretService if failed
* Don't open session or load collections on SecretService
   if the first part of the initialization failed
2012-07-05 23:33:07 +02:00
Stef Walter
fc0549d2ab Uninitialize the mutex in SecretService
* Fix resource leak
2012-07-05 23:33:07 +02:00
Stef Walter
49dd623e6e Keep a cached SecretValue on each SecretItem
* This item can be retrieved immediately and loaded asynchronously
 * It can also be loaded during initialization of the SecretItem
   object
2012-07-05 23:33:07 +02:00
Colin Walters
e72c4c5409 build: Remove double usage of $(srcdir)
This is a regression introduced by commit
3bc89a8971.
2012-06-28 11:47:26 -04:00
Colin Walters
541ba2095a build: Ensure aclocal finds our local macros
The vala bindings commit copied in vapigen.m4, but our autogen.sh
invocation was depending on it being found in the buildroot.  This
ensures autogen.sh will work without vala.
2012-06-28 11:33:19 -04:00
Stef Walter
89550876ff Remove varargs SecretService methods
* The SecretService methods aren't used as frequently as the
   password methods, and it's not really necessary to have a whole
   bunch of extra varargs functions.
 * Add varargs functions for building a GHashTable of attributes
2012-06-28 13:15:06 +02:00
Evan Nemerson
d0df587f08 Add Vala bindings.
https://bugzilla.gnome.org/show_bug.cgi?id=678846
2012-06-28 12:38:34 +02:00
Evan Nemerson
3bc89a8971 Fix VPATH build. 2012-06-28 10:42:11 +02:00
Stef Walter
526bba24a4 Fix python tests when libsecret is not installed 2012-06-28 10:38:17 +02:00