mod_s2s: Fire s2s-check-certificate event after validating a certificate, to allow plugins to override standard procedure
--- a/plugins/mod_s2s/mod_s2s.lua Sun Mar 10 11:25:05 2013 +0000
+++ b/plugins/mod_s2s/mod_s2s.lua Sun Mar 10 17:49:07 2013 +0000
@@ -168,6 +168,7 @@
end
end
end
+ module:fire_event("s2s-check-certificate", { host = host, session = session, cert = cert });
end
--- XMPP stream event handlers