diff options
Diffstat (limited to 'camel/camel-sasl.c')
-rw-r--r-- | camel/camel-sasl.c | 6 |
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; |