aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/smtp
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-07-26 00:32:06 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-07-26 00:32:31 -0700
commit3cb43058be809bd2d45fdb52bc8049800e982c24 (patch)
treed8b9b6dfb188e677d75523b6baf1514d6d7df28a /src/core/smtp
parentc559c8834773c4d6d78cb0cccc968d2a3477f67a (diff)
Check certificate is implemented for Mac/iOS (Fixed #152)
Diffstat (limited to 'src/core/smtp')
-rw-r--r--src/core/smtp/MCSMTPSession.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/smtp/MCSMTPSession.cc b/src/core/smtp/MCSMTPSession.cc
index cc2555f4..4677e2d6 100644
--- a/src/core/smtp/MCSMTPSession.cc
+++ b/src/core/smtp/MCSMTPSession.cc
@@ -9,6 +9,7 @@
#include "MCMessageHeader.h"
#include "MCSMTPProgressCallback.h"
#include "MCConnectionLoggerUtils.h"
+#include "MCCertificateUtils.h"
using namespace mailcore;
@@ -146,8 +147,7 @@ bool SMTPSession::isCheckCertificateEnabled()
bool SMTPSession::checkCertificate()
{
- //TODO check certificate
- return true;
+ return mailcore::checkCertificate(mSmtp->stream, hostname());
}
void SMTPSession::setUseHeloIPEnabled(bool enabled)