Changeset

5343:e76c22199efa

mod_s2s: Fire s2s-check-certificate event after validating a certificate, to allow plugins to override standard procedure
author Matthew Wild <mwild1@gmail.com>
date Sun, 10 Mar 2013 17:49:07 +0000
parents 5341:760c22c822be
children 5344:d45316798b71
files plugins/mod_s2s/mod_s2s.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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