diff mod_s2s_auth_dane/mod_s2s_auth_dane.lua @ 1507:6ea13869753f

mod_s2s_auth_dane: Include hostname when logging a failure
author Kim Alvefur <zash@zash.se>
date Tue, 16 Sep 2014 19:55:54 +0200
parents a40f9b8661d8
children aed20f9e78c8
line wrap: on
line diff
--- a/mod_s2s_auth_dane/mod_s2s_auth_dane.lua	Tue Sep 16 19:53:41 2014 +0200
+++ b/mod_s2s_auth_dane/mod_s2s_auth_dane.lua	Tue Sep 16 19:55:54 2014 +0200
@@ -242,7 +242,7 @@
 			if dane.bogus then
 				why = "Bogus: "..tostring(dane.bogus);
 			end
-			log("warn", "DANE validation failed: %s", why);
+			log("warn", "DANE validation failed for %s: %s", host, why);
 			session.cert_identity_status = "invalid";
 			session.cert_chain_status = "invalid";
 		end