[gnome-keyring/dbus-api] [dbus] Fix the problem with SetSecret signature.



commit 69e08a3c4dab8ed77bcb5237a48cbd7e3d1d3ede
Author: Stef Walter <stef memberwebs com>
Date:   Sat Dec 12 23:01:15 2009 +0000

    [dbus] Fix the problem with SetSecret signature.

 daemon/dbus/gkd-secret-objects.c |    2 +-
 daemon/dbus/gkd-secret-secret.h  |    2 --
 2 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/daemon/dbus/gkd-secret-objects.c b/daemon/dbus/gkd-secret-objects.c
index 7124908..a7f0a8e 100644
--- a/daemon/dbus/gkd-secret-objects.c
+++ b/daemon/dbus/gkd-secret-objects.c
@@ -399,7 +399,7 @@ item_method_set_secret (GkdSecretObjects *self, GP11Object *item, DBusMessage *m
 	GkdSecretSession *session;
 	const char *caller;
 
-	if (!dbus_message_has_signature (message, GKD_SECRET_SECRET_SIG))
+	if (!dbus_message_has_signature (message, "(oayay)"))
 		return NULL;
 	dbus_message_iter_init (message, &iter);
 	secret = gkd_secret_secret_parse (&iter);
diff --git a/daemon/dbus/gkd-secret-secret.h b/daemon/dbus/gkd-secret-secret.h
index 79806fa..f670db2 100644
--- a/daemon/dbus/gkd-secret-secret.h
+++ b/daemon/dbus/gkd-secret-secret.h
@@ -28,8 +28,6 @@
 
 #include <dbus/dbus.h>
 
-#define GKD_SECRET_SECRET_SIG "{sayay}"
-
 struct _GkdSecretSecret {
 	gchar *path;
 	gpointer parameter;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]