Comparison

plugins/mod_s2s/mod_s2s.lua @ 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
parent 5341:760c22c822be
child 5344:d45316798b71
comparison
equal deleted inserted replaced
5341:760c22c822be 5343:e76c22199efa
166 session.cert_identity_status = "invalid" 166 session.cert_identity_status = "invalid"
167 end 167 end
168 end 168 end
169 end 169 end
170 end 170 end
171 module:fire_event("s2s-check-certificate", { host = host, session = session, cert = cert });
171 end 172 end
172 173
173 --- XMPP stream event handlers 174 --- XMPP stream event handlers
174 175
175 local stream_callbacks = { default_ns = "jabber:server", handlestanza = core_process_stanza }; 176 local stream_callbacks = { default_ns = "jabber:server", handlestanza = core_process_stanza };