equal
deleted
inserted
replaced
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() |