comparison mod_s2s_auth_dane/mod_s2s_auth_dane.lua @ 1265:020165014e56

mod_s2s_auth_dane: Fix wording on validation failure
author Kim Alvefur <zash@zash.se>
date Sat, 04 Jan 2014 20:04:12 +0100
parents 1e84eebf3f46
children 51e7a4bbd70b
comparison
equal deleted inserted replaced
1264:2db2c03dfb95 1265:020165014e56
87 module:log("warn", "DANE %s is unsupported", tlsa:getUsage() or ("usage "..tostring(use))); 87 module:log("warn", "DANE %s is unsupported", tlsa:getUsage() or ("usage "..tostring(use)));
88 -- TODO Ca checks needs to loop over the chain and stuff 88 -- TODO Ca checks needs to loop over the chain and stuff
89 end 89 end
90 end 90 end
91 if not match_found then 91 if not match_found then
92 (session.log or module._log)("info", "DANE validation successful"); 92 (session.log or module._log)("warn", "DANE validation failed");
93 session.cert_identity_status = "invalid"; 93 session.cert_identity_status = "invalid";
94 session.cert_chain_status = "invalid"; 94 session.cert_chain_status = "invalid";
95 end 95 end
96 end 96 end
97 end); 97 end);