X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fprotocols%2Fdatastream%2Fdatastreampeer.cpp;h=6a21a169b1586cca70582033bcf31939ed0733fe;hp=b21b9df92f82c2142529c77e9c554600c67555c7;hb=258d157a228d2b2b46b01d3b33ab932b9979436a;hpb=61aac1868f15babb7086d8bc6bbcff530346f438 diff --git a/src/common/protocols/datastream/datastreampeer.cpp b/src/common/protocols/datastream/datastreampeer.cpp index b21b9df9..6a21a169 100644 --- a/src/common/protocols/datastream/datastreampeer.cpp +++ b/src/common/protocols/datastream/datastreampeer.cpp @@ -124,12 +124,12 @@ void DataStreamPeer::handleHandshakeMessage(const QVariantList &mapData) } else if (msgType == "ClientInitAck") { - handle(ClientRegistered(m["CoreFeatures"].toUInt(), m["Configured"].toBool(), m["StorageBackends"].toList(), m["AuthBackends"].toList(), false)); // SupportsSsl is obsolete + handle(ClientRegistered(m["CoreFeatures"].toUInt(), m["Configured"].toBool(), m["StorageBackends"].toList(), false, m["Authenticators"].toList())); // SupportsSsl obsolete } else if (msgType == "CoreSetupData") { QVariantMap map = m["SetupData"].toMap(); - handle(SetupData(map["AdminUser"].toString(), map["AdminPasswd"].toString(), map["Backend"].toString(), map["AuthBackend"].toString(), map["ConnectionProperties"].toMap(), map["AuthProperties"].toMap())); + handle(SetupData(map["AdminUser"].toString(), map["AdminPasswd"].toString(), map["Backend"].toString(), map["ConnectionProperties"].toMap(), map["Authenticator"].toString(), map["AuthProperties"].toMap())); } else if (msgType == "CoreSetupReject") { @@ -187,7 +187,7 @@ void DataStreamPeer::dispatch(const ClientRegistered &msg) { m["MsgType"] = "ClientInitAck"; m["CoreFeatures"] = msg.coreFeatures; m["StorageBackends"] = msg.backendInfo; - m["AuthBackends"] = msg.authBackendInfo; + m["Authenticators"] = msg.authenticatorInfo; m["LoginEnabled"] = m["Configured"] = msg.coreConfigured; writeMessage(m); @@ -203,10 +203,9 @@ void DataStreamPeer::dispatch(const SetupData &msg) map["ConnectionProperties"] = msg.setupData; // Auth backend properties. - // XXX: make these optional using core features. - map["AuthBackend"] = msg.authenticator; + map["Authenticator"] = msg.authenticator; map["AuthProperties"] = msg.authSetupData; - + QVariantMap m; m["MsgType"] = "CoreSetupData"; m["SetupData"] = map;