aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2016-05-30 10:45:32 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2016-05-30 10:45:32 -0700
commitbd3daa054025af736fba5e916a2974abcba1933d (patch)
tree9063308916fd5c116e2fe22a717b28b190922606
parent8a45e7cadda7965254a945d01fb89bd1a19c49fe (diff)
Fixed #1427: remove DIGEST-MD5 when on iOS since it's not available in libsasl
-rw-r--r--src/core/smtp/MCSMTPSession.cpp5
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));
}