Skip to content
Permalink
Browse files Browse the repository at this point in the history
[Core] Check Start/TLS cert
  • Loading branch information
dsanghan committed Feb 10, 2021
1 parent a0e0284 commit 45acb4e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/core/imap/MCIMAPSession.cpp
Expand Up @@ -682,6 +682,13 @@ void IMAPSession::connect(ErrorCode * pError)
* pError = ErrorTLSNotAvailable;
goto close;
}

mIsCertificateValid = checkCertificate();
if (isCheckCertificateEnabled() && !mIsCertificateValid) {
* pError = ErrorCertificate;
goto close;
}

break;

case ConnectionTypeTLS:
Expand Down

0 comments on commit 45acb4e

Please sign in to comment.