[evolution-data-server] CamelSaslPlain: Use camel_service_get_password().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] CamelSaslPlain: Use camel_service_get_password().
- Date: Mon, 26 Sep 2011 13:45:59 +0000 (UTC)
commit 6638f8366793afdb12b05fa35a45a376b8c72c72
Author: Matthew Barnes <mbarnes redhat com>
Date: Sun Sep 25 18:39:50 2011 -0400
CamelSaslPlain: Use camel_service_get_password().
camel/camel-sasl-plain.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/camel/camel-sasl-plain.c b/camel/camel-sasl-plain.c
index d0fd856..1731217 100644
--- a/camel/camel-sasl-plain.c
+++ b/camel/camel-sasl-plain.c
@@ -56,18 +56,22 @@ sasl_plain_challenge_sync (CamelSasl *sasl,
GByteArray *buf = NULL;
CamelService *service;
CamelURL *url;
+ const gchar *password;
service = camel_sasl_get_service (sasl);
url = camel_service_get_camel_url (service);
- g_return_val_if_fail (url->passwd != NULL, NULL);
+ g_return_val_if_fail (url->user != NULL, NULL);
+
+ password = camel_service_get_password (service);
+ g_return_val_if_fail (password != NULL, NULL);
/* FIXME: make sure these are "UTF8-SAFE" */
buf = g_byte_array_new ();
g_byte_array_append (buf, (guint8 *) "", 1);
g_byte_array_append (buf, (guint8 *) url->user, strlen (url->user));
g_byte_array_append (buf, (guint8 *) "", 1);
- g_byte_array_append (buf, (guint8 *) url->passwd, strlen (url->passwd));
+ g_byte_array_append (buf, (guint8 *) password, strlen (password));
camel_sasl_set_authenticated (sasl, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]