aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-sasl.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-03-02 10:29:08 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-03-02 10:29:08 +0800
commit81b0fea2f0774ddb0ed5a7dfa95b73ce6b2849ed (patch)
tree745c5bc5633217851ee60681bd5aad6718d4052a /camel/camel-sasl.c
parentba0d7abd390268b2e370f179018885a6067a67f1 (diff)
downloadgsoc2013-evolution-81b0fea2f0774ddb0ed5a7dfa95b73ce6b2849ed.tar
gsoc2013-evolution-81b0fea2f0774ddb0ed5a7dfa95b73ce6b2849ed.tar.gz
gsoc2013-evolution-81b0fea2f0774ddb0ed5a7dfa95b73ce6b2849ed.tar.bz2
gsoc2013-evolution-81b0fea2f0774ddb0ed5a7dfa95b73ce6b2849ed.tar.lz
gsoc2013-evolution-81b0fea2f0774ddb0ed5a7dfa95b73ce6b2849ed.tar.xz
gsoc2013-evolution-81b0fea2f0774ddb0ed5a7dfa95b73ce6b2849ed.tar.zst
gsoc2013-evolution-81b0fea2f0774ddb0ed5a7dfa95b73ce6b2849ed.zip
#include "camel-sasl-digest-md5.h" (camel_sasl_authtype_list): add
2001-03-01 Jeffrey Stedfast <fejj@ximian.com> * camel-sasl.c: #include "camel-sasl-digest-md5.h" (camel_sasl_authtype_list): add DIGEST-MD5 stuff here. (camel_sasl_authtype): And here too. (camel_sasl_new): And here... * camel-sasl-digest-md5.[c,h]: new SASL class for DIGEST-MD5 (has been tested and proven to work). svn path=/trunk/; revision=8513
Diffstat (limited to 'camel/camel-sasl.c')
-rw-r--r--camel/camel-sasl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/camel/camel-sasl.c b/camel/camel-sasl.c
index 1e7fc9108c..d4590c5325 100644
--- a/camel/camel-sasl.c
+++ b/camel/camel-sasl.c
@@ -26,6 +26,7 @@
#include "camel-service.h"
#include "camel-sasl-cram-md5.h"
+#include "camel-sasl-digest-md5.h"
#include "camel-sasl-kerberos4.h"
#include "camel-sasl-plain.h"
@@ -180,6 +181,8 @@ camel_sasl_new (const char *service_name, const char *mechanism, CamelService *s
if (!strcmp (mechanism, "CRAM-MD5"))
sasl = (CamelSasl *)camel_object_new (CAMEL_SASL_CRAM_MD5_TYPE);
+ else if (!strcmp (mechanism, "DIGEST-MD5"))
+ sasl = (CamelSasl *)camel_object_new (CAMEL_SASL_DIGEST_MD5_TYPE);
#ifdef HAVE_KRB4
else if (!strcmp (mechanism, "KERBEROS_V4"))
sasl = (CamelSasl *)camel_object_new (CAMEL_SASL_KERBEROS4_TYPE);
@@ -212,6 +215,7 @@ camel_sasl_authtype_list (void)
*/
types = g_list_prepend (types, &camel_sasl_cram_md5_authtype);
+ types = g_list_prepend (types, &camel_sasl_digest_md5_authtype);
#ifdef HAVE_KRB4
types = g_list_prepend (types, &camel_sasl_kerberos4_authtype);
#endif
@@ -231,6 +235,8 @@ camel_sasl_authtype (const char *mechanism)
{
if (!strcmp (mechanism, "CRAM-MD5"))
return &camel_sasl_cram_md5_authtype;
+ else if (!strcmp (mechanism, "DIGEST-MD5"))
+ return &camel_sasl_digest_md5_authtype;
#ifdef HAVE_KRB4
else if (!strcmp (mechanism, "KERBEROS_V4"))
return &camel_sasl_kerberos4_authtype;