mod_s2s: Fire s2s-check-certificate event after validating a certificate, to allow plugins to override standard procedure
authorMatthew Wild <mwild1@gmail.com>
Sun, 10 Mar 2013 17:49:07 +0000
changeset 5343 e76c22199efa
parent 5341 760c22c822be
child 5344 d45316798b71
mod_s2s: Fire s2s-check-certificate event after validating a certificate, to allow plugins to override standard procedure
plugins/mod_s2s/mod_s2s.lua
--- 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