diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-03-06 05:28:08 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-03-06 05:28:08 +0800 |
commit | 691be72a02067c25b8770d890f06658b7cc12c86 (patch) | |
tree | 8e213d25c310bb00c79ec41fce46f3ff88ab3bc1 /camel/camel-sasl.c | |
parent | 4d126fb6748040e58f4d47966f4f832e66814811 (diff) | |
download | gsoc2013-evolution-691be72a02067c25b8770d890f06658b7cc12c86.tar gsoc2013-evolution-691be72a02067c25b8770d890f06658b7cc12c86.tar.gz gsoc2013-evolution-691be72a02067c25b8770d890f06658b7cc12c86.tar.bz2 gsoc2013-evolution-691be72a02067c25b8770d890f06658b7cc12c86.tar.lz gsoc2013-evolution-691be72a02067c25b8770d890f06658b7cc12c86.tar.xz gsoc2013-evolution-691be72a02067c25b8770d890f06658b7cc12c86.tar.zst gsoc2013-evolution-691be72a02067c25b8770d890f06658b7cc12c86.zip |
Don't return NULL if the token is non-NULL. This is why:
2001-03-05 Jeffrey Stedfast <fejj@ximian.com>
* camel-sasl-plain.c (plain_challenge): Don't return NULL if the
token is non-NULL. This is why:
sending : AUTH PLAIN
received: 334 ok. go on. <-- this is why
sending : ZGZPaQpAZ214Lm5ldBBnb29jYXI=
received: 235 {mp005-rz3} go ahead
* camel-sasl.c (camel_sasl_authtype): Add the PLAIN type here.
(camel_sasl_authtype_list): And here too.
* camel-sasl-plain.c: Initialize the camel_sasl_plain_authtype.
* camel-sasl-plain.h: extern the camel_sasl_plain_authtype.
svn path=/trunk/; revision=8562
Diffstat (limited to 'camel/camel-sasl.c')
-rw-r--r-- | camel/camel-sasl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/camel/camel-sasl.c b/camel/camel-sasl.c index d4590c5325..978104de90 100644 --- a/camel/camel-sasl.c +++ b/camel/camel-sasl.c @@ -219,6 +219,7 @@ camel_sasl_authtype_list (void) #ifdef HAVE_KRB4 types = g_list_prepend (types, &camel_sasl_kerberos4_authtype); #endif + types = g_list_prepend (types, &camel_sasl_plain_authtype); return types; } @@ -241,6 +242,8 @@ camel_sasl_authtype (const char *mechanism) else if (!strcmp (mechanism, "KERBEROS_V4")) return &camel_sasl_kerberos4_authtype; #endif + else if (!strcmp (mechanism, "PLAIN")) + return &camel_sasl_plain_authtype; else return NULL; } |