diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2011-03-29 13:20:14 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2011-03-29 13:20:14 +0000 |
| commit | 75a0cb2036ebd6c1913caec6d4d9c4497481ec2f (patch) | |
| tree | 2119507630d04f09c90fe05138e866fa3c88ba69 /src/QXmppIncomingClient.h | |
| parent | 4f738fbb73b3b15b6022635b78dac71f91909cd0 (diff) | |
| download | qxmpp-75a0cb2036ebd6c1913caec6d4d9c4497481ec2f.tar.gz | |
refactor SASL authentication to allow server-side password checkers which natively support MD5
Diffstat (limited to 'src/QXmppIncomingClient.h')
| -rw-r--r-- | src/QXmppIncomingClient.h | 11 |
1 files changed, 5 insertions, 6 deletions
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 |
