aboutsummaryrefslogtreecommitdiffstats
path: root/core/s2smanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-27 23:36:49 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-27 23:36:49 +0000
commitefd0ef64bb4cbf51ecbd51280b4cf42d7f6e6ed8 (patch)
treefbb36c13b7526cb3f7d79d364e8b338c4fc81b34 /core/s2smanager.lua
parentf588a0f5b0dd4c6b6d2c81a517594b50b45fc15b (diff)
parent631e249397fd7cd2a2c5a7cb4c1feba664a41b2e (diff)
downloadprosody-efd0ef64bb4cbf51ecbd51280b4cf42d7f6e6ed8.tar.gz
prosody-efd0ef64bb4cbf51ecbd51280b4cf42d7f6e6ed8.zip
Merge from waqas
Diffstat (limited to 'core/s2smanager.lua')
-rw-r--r--core/s2smanager.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index c584e78b..1cd40aa8 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -21,7 +21,7 @@ local logger_init = require "util.logger".init;
local log = logger_init("s2smanager");
-local md5_hash = require "util.hashes".md5;
+local sha256_hash = require "util.hashes".sha256;
local dialback_secret = "This is very secret!!! Ha!";
@@ -210,7 +210,7 @@ function initiate_dialback(session)
end
function generate_dialback(id, to, from)
- return md5_hash(id..to..from..dialback_secret); -- FIXME: See XEP-185 and XEP-220
+ return sha256_hash(id..to..from..dialback_secret, true);
end
function verify_dialback(id, to, from, key)