summaryrefslogtreecommitdiff
path: root/src/xmpp/auth.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmpp/auth.cpp')
-rw-r--r--src/xmpp/auth.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xmpp/auth.cpp b/src/xmpp/auth.cpp
new file mode 100644
index 0000000..8a34a4e
--- /dev/null
+++ b/src/xmpp/auth.cpp
@@ -0,0 +1,8 @@
+#include <xmpp/auth.hpp>
+
+#include <utils/sha1.hpp>
+
+std::string get_handshake_digest(const std::string& stream_id, const std::string& secret)
+{
+ return sha1(stream_id + secret);
+}