diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-04-02 06:54:44 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-04-02 06:54:44 +0800 |
commit | b27a35eae5e2f63a15ec9c151b70b31b7be6c8fe (patch) | |
tree | 5171fb44493d387053774d9568133ed36ed61434 /camel/camel-sasl.c | |
parent | 1193763d9e8b6abf209bc6593a7e09dd76359bb1 (diff) | |
download | gsoc2013-evolution-b27a35eae5e2f63a15ec9c151b70b31b7be6c8fe.tar.gz gsoc2013-evolution-b27a35eae5e2f63a15ec9c151b70b31b7be6c8fe.tar.zst gsoc2013-evolution-b27a35eae5e2f63a15ec9c151b70b31b7be6c8fe.zip |
New files to handle the LOGIN SASL mechanism.
2001-04-01 Jeffrey Stedfast <fejj@ximian.com>
* camel-sasl-login.[c,h]: New files to handle the LOGIN SASL
mechanism.
* camel-sasl-plain.c: Removed the definition of
camel_sasl_login_authtype.
* camel-sasl.c (camel_sasl_new): Oops. I thought LOGIN was an
alias to PLAIN. I was wrong. These two SASL objects have to be
separate.
* providers/smtp/camel-smtp-transport.c (smtp_auth): Updated to
check for and use authmech->quick_login when available.
svn path=/trunk/; revision=9088
Diffstat (limited to 'camel/camel-sasl.c')
-rw-r--r-- | camel/camel-sasl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/camel/camel-sasl.c b/camel/camel-sasl.c index 1044d58c21..dd4da2f081 100644 --- a/camel/camel-sasl.c +++ b/camel/camel-sasl.c @@ -32,6 +32,7 @@ #include "camel-sasl-cram-md5.h" #include "camel-sasl-digest-md5.h" #include "camel-sasl-kerberos4.h" +#include "camel-sasl-login.h" #include "camel-sasl-plain.h" static CamelObjectClass *parent_class = NULL; @@ -191,8 +192,10 @@ 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") || !strcmp (mechanism, "LOGIN")) + else if (!strcmp (mechanism, "PLAIN")) sasl = (CamelSasl *)camel_object_new (CAMEL_SASL_PLAIN_TYPE); + else if (!strcmp (mechanism, "LOGIN")) + sasl = (CamelSasl *)camel_object_new (CAMEL_SASL_LOGIN_TYPE); else return NULL; |