aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-04-13 06:23:56 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-04-13 06:23:56 +0800
commita4f57fbbde67f1423a741b898d51773310a8c696 (patch)
treedc6feac706c136ad7f9486840660222f6fa94011
parentdc90015fb89eeb74366c2bb91b07e8d22ca562c9 (diff)
downloadgsoc2013-evolution-a4f57fbbde67f1423a741b898d51773310a8c696.tar.gz
gsoc2013-evolution-a4f57fbbde67f1423a741b898d51773310a8c696.tar.zst
gsoc2013-evolution-a4f57fbbde67f1423a741b898d51773310a8c696.zip
If the service is NULL, just use the item as the key.
2001-04-12 Jeffrey Stedfast <fejj@ximian.com> * session.c (auth_callback): If the service is NULL, just use the item as the key. svn path=/trunk/; revision=9288
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/session.c9
2 files changed, 9 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 5c9a533f90..24085368e7 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,8 @@
2001-04-12 Jeffrey Stedfast <fejj@ximian.com>
+ * session.c (auth_callback): If the service is NULL, just use the
+ item as the key.
+
* mail-crypto.c (mail_crypto_pgp_mime_part_sign): Use the
CamelCipherHash enum.
(mail_crypto_pgp_mime_part_verify): Use a CamelCipherValidity.
diff --git a/mail/session.c b/mail/session.c
index d95367d77c..28694f39a1 100644
--- a/mail/session.c
+++ b/mail/session.c
@@ -125,9 +125,12 @@ auth_callback (CamelAuthCallbackMode mode, char *data, gboolean secret,
char *key, *ans, *url;
gboolean accept;
- url = camel_url_to_string (service->url, CAMEL_URL_HIDE_PASSWORD | CAMEL_URL_HIDE_PARAMS);
- key = g_strdup_printf ("%s:%s", url, item);
- g_free (url);
+ if (service) {
+ url = camel_url_to_string (service->url, CAMEL_URL_HIDE_PASSWORD | CAMEL_URL_HIDE_PARAMS);
+ key = g_strdup_printf ("%s:%s", url, item);
+ g_free (url);
+ } else
+ key = g_strdup (item);
switch (mode) {
case CAMEL_AUTHENTICATOR_TELL: