Diff

mod_dwd/mod_dwd.lua @ 932:4e235e565693

mod_bidi, mod_dwd, mod_s2s_idle_timeout: Update for recent 0.9 changes (612467e263af)
author Matthew Wild <mwild1@gmail.com>
date Fri, 22 Mar 2013 14:24:05 +0000
parent 928:4584c3303bb4
line wrap: on
line diff
--- a/mod_dwd/mod_dwd.lua	Tue Mar 12 19:09:26 2013 +0100
+++ b/mod_dwd/mod_dwd.lua	Fri Mar 22 14:24:05 2013 +0000
@@ -1,6 +1,5 @@
 local hosts = _G.hosts;
 local st = require "util.stanza";
-local s2s_make_authenticated = require "core.s2smanager".make_authenticated;
 local nameprep = require "util.encodings".stringprep.nameprep;
 local cert_verify_identity = require "util.x509".verify_identity;
 
@@ -29,7 +28,7 @@
 			end
 
 			module:log("info", "Accepting Dialback without Dialback for %s", from);
-			s2s_make_authenticated(origin, from);
+			module:fire_event("s2s-authenticated", { session = origin, host = from });
 			origin.sends2s(
 				st.stanza("db:result", { from = attr.to, to = attr.from, id = attr.id, type = "valid" }));