aboutsummaryrefslogtreecommitdiffstats
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
commita32c615bc8170ff7a5a5cb48db751ef7f3803afa (patch)
tree720637a43b0f7d95fa4f925062fa5584ef067ae6
parentf936068a625d3e34d3e72c79e13b81fba34b28ab (diff)
downloadprosody-a32c615bc8170ff7a5a5cb48db751ef7f3803afa.tar.gz
prosody-a32c615bc8170ff7a5a5cb48db751ef7f3803afa.zip
mod_s2s: Fire s2s-check-certificate event after validating a certificate, to allow plugins to override standard procedure
-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