aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-sasl.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-04-02 06:10:55 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-04-02 06:10:55 +0800
commitc3db21df6ef94b5fb91a5c0dbdcfc518c299b37c (patch)
treebe3a0e02481cd2047b9b91061e174fb896debe76 /camel/camel-sasl.c
parent7e13452f2067e038d4355993c4d2caf9a7c38262 (diff)
downloadgsoc2013-evolution-c3db21df6ef94b5fb91a5c0dbdcfc518c299b37c.tar
gsoc2013-evolution-c3db21df6ef94b5fb91a5c0dbdcfc518c299b37c.tar.gz
gsoc2013-evolution-c3db21df6ef94b5fb91a5c0dbdcfc518c299b37c.tar.bz2
gsoc2013-evolution-c3db21df6ef94b5fb91a5c0dbdcfc518c299b37c.tar.lz
gsoc2013-evolution-c3db21df6ef94b5fb91a5c0dbdcfc518c299b37c.tar.xz
gsoc2013-evolution-c3db21df6ef94b5fb91a5c0dbdcfc518c299b37c.tar.zst
gsoc2013-evolution-c3db21df6ef94b5fb91a5c0dbdcfc518c299b37c.zip
Updated the authtype values.
2001-04-01 Jeffrey Stedfast <fejj@ximian.com> * camel-sasl-plain.c: * camel-sasl-anonymous.c: * camel-sasl-digest-md5.c: * camel-sasl-cram-md5.c: * camel-sasl-kerberos4.c: Updated the authtype values. * camel-service.h: Added another field to CamelServiceAuthType that specifies whether or not the mechanism supports "quick auth" which means that the client can send the initial challenge in the AUTH request. * camel-sasl.c (camel_sasl_new): Add support for LOGIN. (camel_sasl_authtype_list): Here too. (camel_sasl_authtype): And finally here. * camel-sasl-plain.c: Define camel_sasl_login_authtype. * providers/smtp/camel-smtp-transport.c (smtp_auth): Only unref the SASL object if it exists. svn path=/trunk/; revision=9086
Diffstat (limited to 'camel/camel-sasl.c')
-rw-r--r--camel/camel-sasl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/camel/camel-sasl.c b/camel/camel-sasl.c
index 7ab6b41a76..1044d58c21 100644
--- a/camel/camel-sasl.c
+++ b/camel/camel-sasl.c
@@ -191,7 +191,7 @@ camel_sasl_new (const char *service_name, const char *mechanism, CamelService *s
else if (!strcmp (mechanism, "KERBEROS_V4"))
sasl = (CamelSasl *)camel_object_new (CAMEL_SASL_KERBEROS4_TYPE);
#endif
- else if (!strcmp (mechanism, "PLAIN"))
+ else if (!strcmp (mechanism, "PLAIN") || !strcmp (mechanism, "LOGIN"))
sasl = (CamelSasl *)camel_object_new (CAMEL_SASL_PLAIN_TYPE);
else
return NULL;
@@ -220,9 +220,10 @@ camel_sasl_authtype_list (gboolean include_plain)
#ifdef HAVE_KRB4
types = g_list_prepend (types, &camel_sasl_kerberos4_authtype);
#endif
+ types = g_list_prepend (types, &camel_sasl_login_authtype);
if (include_plain)
types = g_list_prepend (types, &camel_sasl_plain_authtype);
-
+
return types;
}
@@ -246,6 +247,8 @@ camel_sasl_authtype (const char *mechanism)
#endif
else if (!strcmp (mechanism, "PLAIN"))
return &camel_sasl_plain_authtype;
+ else if (!strcmp (mechanism, "LOGIN"))
+ return &camel_sasl_login_authtype;
else
return NULL;
}