From bd3daa054025af736fba5e916a2974abcba1933d Mon Sep 17 00:00:00 2001 From: "Hoa V. DINH" Date: Mon, 30 May 2016 10:45:32 -0700 Subject: Fixed #1427: remove DIGEST-MD5 when on iOS since it's not available in libsasl --- src/core/smtp/MCSMTPSession.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/smtp/MCSMTPSession.cpp b/src/core/smtp/MCSMTPSession.cpp index b75ec215..d75972bb 100644 --- a/src/core/smtp/MCSMTPSession.cpp +++ b/src/core/smtp/MCSMTPSession.cpp @@ -484,9 +484,14 @@ void SMTPSession::login(ErrorCode * pError) } if (authType() == 0) { +#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE + if (0) { + } +#else if (mSmtp->auth & MAILSMTP_AUTH_DIGEST_MD5) { setAuthType((AuthType) (authType() | AuthTypeSASLDIGESTMD5)); } +#endif else if (mSmtp->auth & MAILSMTP_AUTH_CRAM_MD5) { setAuthType((AuthType) (authType() | AuthTypeSASLCRAMMD5)); } -- cgit v1.2.3