--- a/mod_s2s_auth_dane/mod_s2s_auth_dane.lua Wed Mar 19 14:03:46 2014 +0100
+++ b/mod_s2s_auth_dane/mod_s2s_auth_dane.lua Wed Mar 19 14:04:09 2014 +0100
@@ -26,6 +26,11 @@
local base64 = require"util.encodings".base64;
local idna_to_ascii = require "util.encodings".idna.to_ascii;
+if not dns_lookup.types or not dns_lookup.types.TLSA then
+ module:log("error", "No TLSA support available, DANE will not be supported");
+ return
+end
+
local s2sout = module:depends"s2s".route_to_new_session.s2sout;
local pat = "%-%-%-%-%-BEGIN ([A-Z ]+)%-%-%-%-%-\r?\n"..