aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-sasl.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-03-27 13:30:41 +0800
committerDan Winship <danw@src.gnome.org>2001-03-27 13:30:41 +0800
commit0a12cd8b6ba0acaf48fb9d452136238e81948057 (patch)
tree4890300e4bf6e421909ac750313e51c25cd1daed /camel/camel-sasl.c
parent6dd8aabeeee1945c4d96af5e045b75995db56517 (diff)
downloadgsoc2013-evolution-0a12cd8b6ba0acaf48fb9d452136238e81948057.tar
gsoc2013-evolution-0a12cd8b6ba0acaf48fb9d452136238e81948057.tar.gz
gsoc2013-evolution-0a12cd8b6ba0acaf48fb9d452136238e81948057.tar.bz2
gsoc2013-evolution-0a12cd8b6ba0acaf48fb9d452136238e81948057.tar.lz
gsoc2013-evolution-0a12cd8b6ba0acaf48fb9d452136238e81948057.tar.xz
gsoc2013-evolution-0a12cd8b6ba0acaf48fb9d452136238e81948057.tar.zst
gsoc2013-evolution-0a12cd8b6ba0acaf48fb9d452136238e81948057.zip
add an argument to say whether or not you want "PLAIN" in the list (so you
* camel-sasl.c (camel_sasl_authtype_list): add an argument to say whether or not you want "PLAIN" in the list (so you don't end up with "Password" twice in the config dialog). * providers/imap/camel-imap-provider.c (camel_provider_module_init): * providers/imap/camel-imap-store.c (query_auth_types): We don't want PLAIN. * providers/smtp/camel-smtp-provider.c (camel_provider_module_init): * providers/smtp/camel-smtp-transport.c (query_auth_types): But we do. svn path=/trunk/; revision=8972
Diffstat (limited to 'camel/camel-sasl.c')
-rw-r--r--camel/camel-sasl.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/camel/camel-sasl.c b/camel/camel-sasl.c
index 978104de90..f97e42480b 100644
--- a/camel/camel-sasl.c
+++ b/camel/camel-sasl.c
@@ -201,25 +201,23 @@ camel_sasl_new (const char *service_name, const char *mechanism, CamelService *s
/**
* camel_sasl_authtype_list:
+ * @include_plain: whether or not to include the PLAIN mechanism
*
* Return value: a GList of SASL-supported authtypes. The caller must
* free the list, but not the contents.
**/
GList *
-camel_sasl_authtype_list (void)
+camel_sasl_authtype_list (gboolean include_plain)
{
GList *types = NULL;
- /* We don't do PLAIN here, because it's considered to be
- * normal password authentication, just behind SSL.
- */
-
types = g_list_prepend (types, &camel_sasl_cram_md5_authtype);
types = g_list_prepend (types, &camel_sasl_digest_md5_authtype);
#ifdef HAVE_KRB4
types = g_list_prepend (types, &camel_sasl_kerberos4_authtype);
#endif
- types = g_list_prepend (types, &camel_sasl_plain_authtype);
+ if (include_plain)
+ types = g_list_prepend (types, &camel_sasl_plain_authtype);
return types;
}