[gnome-keyring/with-hkdf: 3/3] Use the standard DBus not supported error in secret service.



commit a26d779ee6230578e3a6118b941054821f9da70e
Author: Stef Walter <stefw collabora co uk>
Date:   Sun Feb 27 09:20:06 2011 +0100

    Use the standard DBus not supported error in secret service.
    
    As specified in the secret service specification.

 daemon/dbus/gkd-secret-session.c |    2 +-
 daemon/dbus/gkd-secret-types.h   |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/daemon/dbus/gkd-secret-session.c b/daemon/dbus/gkd-secret-session.c
index 7b0a85b..107d639 100644
--- a/daemon/dbus/gkd-secret-session.c
+++ b/daemon/dbus/gkd-secret-session.c
@@ -569,7 +569,7 @@ gkd_secret_session_handle_open (GkdSecretSession *self, DBusMessage *message)
 		reply = aes_negotiate (self, message, input, n_input);
 
 	} else {
-		reply = dbus_message_new_error_printf (message, SECRET_ERROR_NOT_SUPPORTED,
+		reply = dbus_message_new_error_printf (message, DBUS_ERROR_NOT_SUPPORTED,
 		                                       "The algorithm '%s' is not supported", algorithm);
 	}
 
diff --git a/daemon/dbus/gkd-secret-types.h b/daemon/dbus/gkd-secret-types.h
index 3b6aed1..176c92f 100644
--- a/daemon/dbus/gkd-secret-types.h
+++ b/daemon/dbus/gkd-secret-types.h
@@ -42,7 +42,6 @@
 
 #define SECRET_ERROR_ALREADY_EXISTS    "org.freedesktop.Secret.Error.AlreadyExists"
 #define SECRET_ERROR_IS_LOCKED         "org.freedesktop.Secret.Error.IsLocked"
-#define SECRET_ERROR_NOT_SUPPORTED     "org.freedesktop.Secret.Error.NotSupported"
 #define SECRET_ERROR_NO_SESSION        "org.freedesktop.Secret.Error.NoSession"
 #define SECRET_ERROR_NO_SUCH_OBJECT    "org.freedesktop.Secret.Error.NoSuchObject"
 



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