From a4f57fbbde67f1423a741b898d51773310a8c696 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 12 Apr 2001 22:23:56 +0000 Subject: If the service is NULL, just use the item as the key. 2001-04-12 Jeffrey Stedfast * session.c (auth_callback): If the service is NULL, just use the item as the key. svn path=/trunk/; revision=9288 --- mail/ChangeLog | 3 +++ mail/session.c | 9 ++++++--- 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 + * 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: -- cgit v1.2.3