diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-03-01 07:24:15 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-03-01 07:24:15 +0800 |
commit | eb3167206c76ea6014be8bb73a63ee512f35aa7f (patch) | |
tree | 2205a4cd22295473e99ed74a2c2b186607631b0e /camel/camel-sasl-plain.c | |
parent | 8d5ca6bb757d2cddb4df2bc1b8993b4d4f4a2288 (diff) | |
download | gsoc2013-evolution-eb3167206c76ea6014be8bb73a63ee512f35aa7f.tar gsoc2013-evolution-eb3167206c76ea6014be8bb73a63ee512f35aa7f.tar.gz gsoc2013-evolution-eb3167206c76ea6014be8bb73a63ee512f35aa7f.tar.bz2 gsoc2013-evolution-eb3167206c76ea6014be8bb73a63ee512f35aa7f.tar.lz gsoc2013-evolution-eb3167206c76ea6014be8bb73a63ee512f35aa7f.tar.xz 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.c | 6 |
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; } |