Comparison

plugins/mod_s2s/mod_s2s.lua @ 5766:e6a9085f0ac3

mod_s2s: Log certificate identity validation result
author Kim Alvefur <zash@zash.se>
date Sun, 04 Aug 2013 17:33:00 +0200
parent 5594:ad66ee47b674
child 5767:3a30ad76a86a
comparison
equal deleted inserted replaced
5758:ebc074918173 5766:e6a9085f0ac3
253 if cert_verify_identity(host, "xmpp-server", cert) then 253 if cert_verify_identity(host, "xmpp-server", cert) then
254 session.cert_identity_status = "valid" 254 session.cert_identity_status = "valid"
255 else 255 else
256 session.cert_identity_status = "invalid" 256 session.cert_identity_status = "invalid"
257 end 257 end
258 (session.log or log)("debug", "certificate identity validation result: %s", session.cert_identity_status);
258 end 259 end
259 end 260 end
260 end 261 end
261 return module:fire_event("s2s-check-certificate", { host = host, session = session, cert = cert }); 262 return module:fire_event("s2s-check-certificate", { host = host, session = session, cert = cert });
262 end 263 end