[gnome-keyring/dbus-api] Fix password and response bugs.
- From: Stefan Walter <stefw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-keyring/dbus-api] Fix password and response bugs.
- Date: Sat, 7 Nov 2009 14:13:38 +0000 (UTC)
commit 153a187b0eecc49e04cb4d2f652d69b0b96496b6
Author: Stef Walter <stef memberwebs com>
Date: Thu Nov 5 06:26:25 2009 +0000
Fix password and response bugs.
Typos in the prompt password and response loading.
daemon/prompt/gkd-prompt.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/daemon/prompt/gkd-prompt.c b/daemon/prompt/gkd-prompt.c
index 1035890..193d313 100644
--- a/daemon/prompt/gkd-prompt.c
+++ b/daemon/prompt/gkd-prompt.c
@@ -612,7 +612,7 @@ gkd_prompt_get_response (GkdPrompt *self)
guint ret;
g_return_val_if_fail (GKD_IS_PROMPT (self), GKD_RESPONSE_FAILURE);
- if (!self->pv->failure)
+ if (self->pv->failure)
return GKD_RESPONSE_FAILURE;
g_return_val_if_fail (self->pv->output, GKD_RESPONSE_FAILURE);
@@ -648,7 +648,7 @@ gkd_prompt_get_password (GkdPrompt *self, const gchar *password_type)
g_return_val_if_fail (GKD_IS_PROMPT (self), NULL);
g_return_val_if_fail (self->pv->output, NULL);
- if (!self->pv->failure)
+ if (self->pv->failure)
return NULL;
g_assert (self->pv->output);
@@ -665,14 +665,14 @@ gkd_prompt_get_password (GkdPrompt *self, const gchar *password_type)
g_return_val_if_reached (NULL);
/* Parse out an IV */
- iv = gkd_prompt_util_decode_hex (self->pv->input, password_type, "iv", &n_iv);
+ iv = gkd_prompt_util_decode_hex (self->pv->output, password_type, "iv", &n_iv);
if (iv == NULL) {
g_warning ("prompt response has encrypted password, but no iv set");
return NULL;
}
/* Parse out the password */
- data = gkd_prompt_util_decode_hex (self->pv->input, password_type, "value", &n_data);
+ data = gkd_prompt_util_decode_hex (self->pv->output, password_type, "value", &n_data);
if (data == NULL) {
g_warning ("prompt response missing encrypted password value");
g_free (iv);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]