stream.setVersion(QDataStream::Qt_4_2);
quint32 magic = Protocol::magic;
- if (_account.useSsl())
- magic |= Protocol::Encryption;
+ magic |= Protocol::Encryption;
magic |= Protocol::Compression;
stream << magic;
connect(_peer, &RemotePeer::transferProgress, this, &ClientAuthHandler::transferProgress);
// The legacy protocol enables SSL later, after registration
- if (!_account.useSsl() || _legacy)
+ if (_legacy)
startRegistration();
// otherwise, do it now
else
{
emit statusMessage(tr("Synchronizing to core..."));
- // useSsl will be ignored by non-legacy peers
- bool useSsl = false;
- useSsl = _account.useSsl();
-
- _peer->dispatch(Protocol::RegisterClient(Quassel::Features{}, Quassel::buildInfo().fancyVersionString, Quassel::buildInfo().commitDate, useSsl));
+ _peer->dispatch(Protocol::RegisterClient(Quassel::Features{}, Quassel::buildInfo().fancyVersionString, Quassel::buildInfo().commitDate));
}
void ClientAuthHandler::handle(const Protocol::ClientDenied& msg)
_peer->setFeatures(std::move(msg.features));
// The legacy protocol enables SSL at this point
- if (_legacy && _account.useSsl())
+ if (_legacy)
checkAndEnableSsl(msg.sslSupported);
else
onConnectionReady();
void ClientAuthHandler::checkAndEnableSsl(bool coreSupportsSsl)
{
CoreAccountSettings s;
- if (coreSupportsSsl && _account.useSsl()) {
+ if (coreSupportsSsl) {
// Make sure the warning is shown next time we don't have SSL in the core
s.setAccountValue("ShowNoCoreSslWarning", true);