Control: tags -1 +patch
> lua-sec 0.6 is not compatible with lua 5.1
Are you sure about that? The rockspec says:
dependencies = {
"lua >= 5.1", "luasocket"
}
I think the problem is:
Quoting from https://prosody.im/issues/issue/749
"LuaSec 0.6 will no longer follow the old and deprecated practice of
exporting itself into the global environment."
and the workaround is pretty easy:
https://hg.prosody.im/0.9/rev/decb657bc0a0
--- a/util/dependencies.lua Thu Aug 18 14:51:11 2016 +0200
+++ b/util/dependencies.lua Fri Sep 23 16:09:46 2016 +0200
@@ -99,6 +99,9 @@
["luarocks"] = "luarocks install
luasec";
["Source"] =
"http://www.inf.puc-rio.br/~brunoos/luasec/;;
}, "SSL/TLS support will not be available");
+ elseif not _G.ssl then
+ _G.ssl = ssl;
+ _G.ssl.context = require "ssl.context";
end
local encodings, err = softreq "util.encodings"
Cheers,
--
Ondřej Surý
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server
Knot Resolver (https://www.knot-resolver.cz/) – secure, privacy-aware,
fast DNS(SEC) resolver
Vše pro chleba (https://vseprochleba.cz) – Mouky ze mlýna a potřeby pro
pečení chleba všeho druhu