Software /
code /
prosody
Comparison
plugins/mod_dialback.lua @ 4761:178f252c31b0
mod_dialback: Remove unused declaration of xmlns_dialback
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 28 Apr 2012 03:43:27 +0100 |
parent | 4587:93a84314c296 |
child | 4822:5ef05f32bc42 |
child | 4835:751510cd558d |
comparison
equal
deleted
inserted
replaced
4760:55501fc4394b | 4761:178f252c31b0 |
---|---|
15 | 15 |
16 local st = require "util.stanza"; | 16 local st = require "util.stanza"; |
17 local sha256_hash = require "util.hashes".sha256; | 17 local sha256_hash = require "util.hashes".sha256; |
18 | 18 |
19 local xmlns_stream = "http://etherx.jabber.org/streams"; | 19 local xmlns_stream = "http://etherx.jabber.org/streams"; |
20 local xmlns_dialback = "jabber:server:dialback"; | |
21 | 20 |
22 local dialback_requests = setmetatable({}, { __mode = 'v' }); | 21 local dialback_requests = setmetatable({}, { __mode = 'v' }); |
23 | 22 |
24 function generate_dialback(id, to, from) | 23 function generate_dialback(id, to, from) |
25 return sha256_hash(id..to..from..hosts[from].dialback_secret, true); | 24 return sha256_hash(id..to..from..hosts[from].dialback_secret, true); |