aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-sasl-plain.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-03-01 07:24:15 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-03-01 07:24:15 +0800
commiteb3167206c76ea6014be8bb73a63ee512f35aa7f (patch)
tree2205a4cd22295473e99ed74a2c2b186607631b0e /camel/camel-sasl-plain.c
parent8d5ca6bb757d2cddb4df2bc1b8993b4d4f4a2288 (diff)
downloadgsoc2013-evolution-eb3167206c76ea6014be8bb73a63ee512f35aa7f.tar.gz
gsoc2013-evolution-eb3167206c76ea6014be8bb73a63ee512f35aa7f.tar.zst
gsoc2013-evolution-eb3167206c76ea6014be8bb73a63ee512f35aa7f.zip
Added camel-sasl-anonymous.[c,h] to the build.
2001-02-28 Jeffrey Stedfast <fejj@ximian.com> * Makefile.am: Added camel-sasl-anonymous.[c,h] to the build. * camel-sasl-anonymous.[c,h]: new SASL class for ANONYMOUS * camel-sasl-plain.c (plain_challenge): Oops, have a state for setting sasl->authenticated = TRUE; * camel-sasl-cram-md5.c (cram_md5_challenge): Same here. svn path=/trunk/; revision=8433
Diffstat (limited to 'camel/camel-sasl-plain.c')
-rw-r--r--camel/camel-sasl-plain.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/camel/camel-sasl-plain.c b/camel/camel-sasl-plain.c
index 5d986350c9..6b7a4de2bc 100644
--- a/camel/camel-sasl-plain.c
+++ b/camel/camel-sasl-plain.c
@@ -32,7 +32,8 @@ static CamelSaslClass *parent_class = NULL;
static GByteArray *plain_challenge (CamelSasl *sasl, const char *token, CamelException *ex);
enum {
- STATE_LOGIN
+ STATE_LOGIN,
+ STATE_FINAL
};
struct _CamelSaslPlainPrivate {
@@ -123,6 +124,9 @@ plain_challenge (CamelSasl *sasl, const char *token, CamelException *ex)
g_byte_array_append (buf, "", 1);
g_byte_array_append (buf, sasl_plain->passwd, strlen (sasl_plain->passwd));
break;
+ case STATE_FINAL:
+ sasl->authenticated = TRUE;
+ break;
default:
break;
}