Comparison

plugins/mod_s2s/mod_s2s.lua @ 11558:d0e9ffccdef9 0.11 0.11.9

mod_dialback: Remove d-w-d feature Backs out 1d0862814bfc and 2fdd71b08126 Largely unused, undocumented and did not have enough tests to provide confidence in its correct operation.
author Kim Alvefur <zash@zash.se>
date Wed, 12 May 2021 17:22:02 +0200
parent 11540:1937b3c3efb5
comparison
equal deleted inserted replaced
11557:6be890ca492e 11558: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()