Comparison

plugins/mod_s2s.lua @ 13802:7c76ca78ceef 13.0

mod_s2s: Deal with OpenSSL changing spelling in strings https://github.com/openssl/openssl/commit/ade08735f9d0ac85d611c5abee8a1df651bbca13
author Kim Alvefur <zash@zash.se>
date Tue, 01 Apr 2025 18:15:34 +0200
parent 13703:99d2100d2918
child 13804:e128ed4494f3
comparison
equal deleted inserted replaced
13801:a5d5fefb8b68 13802:7c76ca78ceef
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