# HG changeset patch
# User Matthew Wild <mwild1@gmail.com>
# Date 1362937747 0
# Node ID e76c22199efa7ff062f26808d63b572ff2db5e0a
# Parent  760c22c822befca84fa4c0963e4e894a5417a289
mod_s2s: Fire s2s-check-certificate event after validating a certificate, to allow plugins to override standard procedure

diff -r 760c22c822be -r e76c22199efa 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