From 1b653eb9e6212678297281f5bca43bcd0b1a00fb Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Fri, 20 Jul 2012 18:02:32 +0200 Subject: add support for two-step PLAIN SASL --- src/base/QXmppSasl.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/base/QXmppSasl.cpp') diff --git a/src/base/QXmppSasl.cpp b/src/base/QXmppSasl.cpp index d37644ca..a39194ec 100644 --- a/src/base/QXmppSasl.cpp +++ b/src/base/QXmppSasl.cpp @@ -642,6 +642,11 @@ QString QXmppSaslServerPlain::mechanism() const QXmppSaslServer::Response QXmppSaslServerPlain::respond(const QByteArray &request, QByteArray &response) { if (m_step == 0) { + if (request.isEmpty()) { + response = QByteArray(); + return Challenge; + } + QList auth = request.split('\0'); if (auth.size() != 3) { warning("QXmppSaslServerPlain : Invalid input"); -- cgit v1.2.3