diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-04-02 06:10:55 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-04-02 06:10:55 +0800 |
commit | c3db21df6ef94b5fb91a5c0dbdcfc518c299b37c (patch) | |
tree | be3a0e02481cd2047b9b91061e174fb896debe76 /camel/providers/smtp | |
parent | 7e13452f2067e038d4355993c4d2caf9a7c38262 (diff) | |
download | gsoc2013-evolution-c3db21df6ef94b5fb91a5c0dbdcfc518c299b37c.tar.gz 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/providers/smtp')
-rw-r--r-- | camel/providers/smtp/camel-smtp-transport.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/camel/providers/smtp/camel-smtp-transport.c b/camel/providers/smtp/camel-smtp-transport.c index f2c344ebba..af41b2f5b9 100644 --- a/camel/providers/smtp/camel-smtp-transport.c +++ b/camel/providers/smtp/camel-smtp-transport.c @@ -735,7 +735,7 @@ smtp_auth (CamelSmtpTransport *transport, const char *mech, CamelException *ex) goto lose; /* eat whtspc */ - for (challenge = respbuf + 4; isspace (*challenge); challenge++); + for (challenge = respbuf + 4; *challenge && isspace (*challenge); challenge++); challenge = camel_sasl_challenge_base64 (sasl, challenge, ex); g_free (respbuf); @@ -778,7 +778,8 @@ smtp_auth (CamelSmtpTransport *transport, const char *mech, CamelException *ex) _("Bad authentication response from server.\n")); } - camel_object_unref (CAMEL_OBJECT (sasl)); + if (sasl) + camel_object_unref (CAMEL_OBJECT (sasl)); return FALSE; } |