aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_s2s/mod_s2s.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-03-10 17:49:07 +0000
committerMatthew Wild <mwild1@gmail.com>2013-03-10 17:49:07 +0000
commitd53df86e91cf56e780afc8a3975419ebec29be6f (patch)
tree720637a43b0f7d95fa4f925062fa5584ef067ae6 /plugins/mod_s2s/mod_s2s.lua
parente39fde236178e9d41cf0b1f56aae0aad382df96b (diff)
downloadprosody-d53df86e91cf56e780afc8a3975419ebec29be6f.tar.gz
prosody-d53df86e91cf56e780afc8a3975419ebec29be6f.zip
mod_s2s: Fire s2s-check-certificate event after validating a certificate, to allow plugins to override standard procedure
Diffstat (limited to 'plugins/mod_s2s/mod_s2s.lua')
-rw-r--r--plugins/mod_s2s/mod_s2s.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua
index 1b0ae982..cabe8ea2 100644
--- a/plugins/mod_s2s/mod_s2s.lua
+++ b/plugins/mod_s2s/mod_s2s.lua
@@ -168,6 +168,7 @@ local function check_cert_status(session)
end
end
end
+ module:fire_event("s2s-check-certificate", { host = host, session = session, cert = cert });
end
--- XMPP stream event handlers