comparison mod_s2s_auth_dane/mod_s2s_auth_dane.lua @ 2035:39774b078dde

mod_s2s_auth_dane: Correct message about not being able to support SPKI
author Kim Alvefur <zash@zash.se>
date Sun, 31 Jan 2016 12:38:51 +0100
parents 6645838c6475
children 5e0102a07fdc
comparison
equal deleted inserted replaced
2034:256a5e3591db 2035:39774b078dde
58 implemented_uses:add("PKIX-CA"); 58 implemented_uses:add("PKIX-CA");
59 else 59 else
60 module:log("debug", "The cert:issued() method is unavailable, DANE-TA and PKIX-CA can't be enabled"); 60 module:log("debug", "The cert:issued() method is unavailable, DANE-TA and PKIX-CA can't be enabled");
61 end 61 end
62 if not cert_mt.__index.pubkey then 62 if not cert_mt.__index.pubkey then
63 module:log("debug", "The cert:issued() method is unavailable, the SPKI usage can't be supported"); 63 module:log("debug", "The cert:pubkey() method is unavailable, the SPKI usage can't be supported");
64 end 64 end
65 end 65 end
66 local configured_uses = module:get_option_set("dane_uses", { "DANE-EE", "DANE-TA" }); 66 local configured_uses = module:get_option_set("dane_uses", { "DANE-EE", "DANE-TA" });
67 local enabled_uses = set.intersection(implemented_uses, configured_uses) / function(use) return use_map[use] end; 67 local enabled_uses = set.intersection(implemented_uses, configured_uses) / function(use) return use_map[use] end;
68 local unsupported = configured_uses - implemented_uses; 68 local unsupported = configured_uses - implemented_uses;