diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2016-05-30 10:45:32 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2016-05-30 10:45:32 -0700 |
commit | bd3daa054025af736fba5e916a2974abcba1933d (patch) | |
tree | 9063308916fd5c116e2fe22a717b28b190922606 | |
parent | 8a45e7cadda7965254a945d01fb89bd1a19c49fe (diff) |
Fixed #1427: remove DIGEST-MD5 when on iOS since it's not available in libsasl
-rw-r--r-- | src/core/smtp/MCSMTPSession.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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)); } |