From 75a0cb2036ebd6c1913caec6d4d9c4497481ec2f Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Tue, 29 Mar 2011 13:20:14 +0000 Subject: refactor SASL authentication to allow server-side password checkers which natively support MD5 --- src/QXmppIncomingClient.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/QXmppIncomingClient.h') diff --git a/src/QXmppIncomingClient.h b/src/QXmppIncomingClient.h index a5ffbf38..9b053f6a 100644 --- a/src/QXmppIncomingClient.h +++ b/src/QXmppIncomingClient.h @@ -41,13 +41,12 @@ public: TemporaryError, }; - /// Checks that the given credentials are valid. - /// - /// \param username - /// \param password - virtual Error checkPassword(const QString &username, const QString &password) = 0; - virtual bool getPassword(const QString &username, QString &password); + virtual Error checkPassword(const QString &username, const QString &domain, const QString &password); + virtual bool getDigest(const QString &username, const QString &domain, QByteArray &digest); virtual bool hasGetPassword() const; + +protected: + virtual bool getPassword(const QString &username, const QString &domain, QString &password); }; /// \brief The QXmppIncomingClient class represents an incoming XMPP stream -- cgit v1.2.3