# HG changeset patch # User Kim Alvefur # Date 1395234249 -3600 # Node ID 497e1df4b7ee945b19201eb7b7bb513213459ace # Parent 67990f8d8228c7b63232cc5e0620cf26620a3ccc mod_s2s_auth_dane: Abort module loading if luaunbound is unavailable diff -r 67990f8d8228 -r 497e1df4b7ee mod_s2s_auth_dane/mod_s2s_auth_dane.lua --- 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"..