Software / code / prosody
Comparison
plugins/mod_s2s.lua @ 13803:3627980e7df6
Merge 13.0->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 01 Apr 2025 18:31:26 +0200 |
| parent | 13802:7c76ca78ceef |
| child | 13804:e128ed4494f3 |
comparison
equal
deleted
inserted
replaced
| 13799:a353db59f942 | 13803:3627980e7df6 |
|---|---|
| 997 if session.cert_chain_status == "invalid" then | 997 if session.cert_chain_status == "invalid" then |
| 998 if type(session.cert_chain_errors) == "table" then | 998 if type(session.cert_chain_errors) == "table" then |
| 999 local cert_errors = set.new(session.cert_chain_errors[1]); | 999 local cert_errors = set.new(session.cert_chain_errors[1]); |
| 1000 if cert_errors:contains("certificate has expired") then | 1000 if cert_errors:contains("certificate has expired") then |
| 1001 return "has expired"; | 1001 return "has expired"; |
| 1002 elseif cert_errors:contains("self signed certificate") then | 1002 elseif cert_errors:contains("self signed certificate") or cert_errors:contains("self-signed certificate") then |
| 1003 return "is self-signed"; | 1003 return "is self-signed"; |
| 1004 elseif cert_errors:contains("no matching DANE TLSA records") then | 1004 elseif cert_errors:contains("no matching DANE TLSA records") then |
| 1005 return "does not match any DANE TLSA records"; | 1005 return "does not match any DANE TLSA records"; |
| 1006 end | 1006 end |
| 1007 | 1007 |