plugins/mod_s2s/mod_s2s.lua
branch0.11
changeset 11562 d0e9ffccdef9
parent 11544 1937b3c3efb5
equal deleted inserted replaced
11561:6be890ca492e 11562:d0e9ffccdef9
   274 
   274 
   275 	return true;
   275 	return true;
   276 end
   276 end
   277 
   277 
   278 --- Helper to check that a session peer's certificate is valid
   278 --- Helper to check that a session peer's certificate is valid
   279 function check_cert_status(session)
   279 local function check_cert_status(session)
   280 	local host = session.direction == "outgoing" and session.to_host or session.from_host
   280 	local host = session.direction == "outgoing" and session.to_host or session.from_host
   281 	local conn = session.conn:socket()
   281 	local conn = session.conn:socket()
   282 	local cert
   282 	local cert
   283 	if conn.getpeercertificate then
   283 	if conn.getpeercertificate then
   284 		cert = conn:getpeercertificate()
   284 		cert = conn:getpeercertificate()