[ksmtp] [Bug 394770] STARTTLS is restricted to TLS 1.0
Jörg Thalheim
bugzilla_noreply at kde.org
Tue May 29 06:11:49 BST 2018
https://bugs.kde.org/show_bug.cgi?id=394770
--- Comment #4 from Jörg Thalheim <joerg.kde at thalheim.io> ---
The encryption mode enum should only contain three states:
enum EncryptionMode {
Unencrypted,
SslOrTls,
Starttls
};
The pseudo code should be as follow in LoginJob::doStart
if (d->m_encryptionMode == SslOrTls) {
d->sessionInternal()->startSsl(KTcpSocket::SecureProtocols);
} else if (d->m_encryptionMode == Starttls) {
sendCommand("STARTTLS");
} else {
if (!d->authenticate()) {
emitResult();
}
}
in LoginJob::handleResponse
if (r.isCode(220)) {
d->sessionInternal()->startSsl(KTcpSocket::SecureProtocols);
return;
}
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kdepim-bugs
mailing list