aboutsummaryrefslogtreecommitdiff
path: root/src/QXmppUtils.h
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-08-20 12:02:31 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-08-20 12:02:31 +0000
commit5008f4e433c305f63b6b6dbd4d8545ab4cb9d4b4 (patch)
treec07f32e1809b7c08b8929a7bb79ef10475b9cd79 /src/QXmppUtils.h
parent62818276185a1737ae67c162fd9c4929f6ba9629 (diff)
downloadqxmpp-5008f4e433c305f63b6b6dbd4d8545ab4cb9d4b4.tar.gz
add and test better auth-md5 parser (not used yet)
Diffstat (limited to 'src/QXmppUtils.h')
-rw-r--r--src/QXmppUtils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/QXmppUtils.h b/src/QXmppUtils.h
index 919cf6be..4fc9d9c7 100644
--- a/src/QXmppUtils.h
+++ b/src/QXmppUtils.h
@@ -26,6 +26,7 @@
#ifndef QXMPPUTILS_H
#define QXMPPUTILS_H
+#include <QMap>
// forward declarations of QXmlStream* classes will not work on Mac, we need to
// include the whole header.
@@ -63,4 +64,8 @@ void helperToXmlAddNumberElement(QXmlStreamWriter* stream, const QString& name,
QString escapeString(const QString& str);
QString unescapeString(const QString& str);
+// Digest MD5 authentication
+QMap<QByteArray, QByteArray> parseDigestMd5(const QByteArray &ba);
+QByteArray serializeDigestMd5(const QMap<QByteArray, QByteArray> &map);
+
#endif // QXMPPUTILS_H