comparison mod_s2s_auth_dane/mod_s2s_auth_dane.lua @ 1434:1caf971a2f0f

mod_s2s_auth_dane: Return if no certificate found
author Kim Alvefur <zash@zash.se>
date Thu, 12 Jun 2014 12:30:39 +0200
parents 33a796b2cb91
children cdc8f226a284
comparison
equal deleted inserted replaced
1433:df8da7e4c2bf 1434:1caf971a2f0f
174 return certdata == tlsa.data; 174 return certdata == tlsa.data;
175 end 175 end
176 176
177 module:hook("s2s-check-certificate", function(event) 177 module:hook("s2s-check-certificate", function(event)
178 local session, cert = event.session, event.cert; 178 local session, cert = event.session, event.cert;
179 if not cert then return end
179 local log = session.log or module._log; 180 local log = session.log or module._log;
180 local dane = session.dane; 181 local dane = session.dane;
181 if type(dane) == "table" then 182 if type(dane) == "table" then
182 local use, tlsa, match_found, supported_found, chain, leafcert, cacert, is_match; 183 local use, tlsa, match_found, supported_found, chain, leafcert, cacert, is_match;
183 for i = 1, #dane do 184 for i = 1, #dane do