# HG changeset patch # User Kim Alvefur # Date 1394037735 -3600 # Node ID 8d99b9c4cf0cdd8b1d483c1d324d7dd9606da042 # Parent 446fcda4ec45fc758598b43f4576e9c8abd9e638 mod_s2s_auth_dane: Verify that the pubkey method exists when the SPKI selector is used diff -r 446fcda4ec45 -r 8d99b9c4cf0c mod_s2s_auth_dane/mod_s2s_auth_dane.lua --- a/mod_s2s_auth_dane/mod_s2s_auth_dane.lua Wed Mar 05 17:40:44 2014 +0100 +++ b/mod_s2s_auth_dane/mod_s2s_auth_dane.lua Wed Mar 05 17:42:15 2014 +0100 @@ -65,7 +65,7 @@ if select == 0 then certdata = pem2der(cert:pem()); - elseif select == 1 then + elseif select == 1 and cert.pubkey then certdata = pem2der(cert:pubkey()); else module:log("warn", "DANE selector %d is unsupported", select);