# HG changeset patch # User Kim Alvefur # Date 1432196882 -7200 # Node ID d011b87b7f58bc1ee35a47bbcb2f9a54896e26ec # Parent c619425dafe7b06da457eb79d39bc98c8a537b5c mod_s2s_auth_dane: Validate names of DANE-TA certs diff -r c619425dafe7 -r d011b87b7f58 mod_s2s_auth_dane/mod_s2s_auth_dane.lua --- a/mod_s2s_auth_dane/mod_s2s_auth_dane.lua Tue May 19 23:30:39 2015 +0200 +++ b/mod_s2s_auth_dane/mod_s2s_auth_dane.lua Thu May 21 10:28:02 2015 +0200 @@ -294,7 +294,10 @@ log("info", "DANE validated ok for %s using %s", host, tlsa:getUsage()); if use == 2 then -- DANE-TA session.cert_identity_status = "valid"; - session.cert_chain_status = "valid"; + if cert_verify_identity(host, "xmpp-server", cert) then + session.cert_chain_status = "valid"; + -- else -- TODO Check against SRV target? + end -- for usage 0, PKIX-CA, identity and chain has to be valid already end match_found = true;