Software /
code /
prosody
Comparison
util/dependencies.lua @ 7675:decb657bc0a0
util.dependencies: Set global 'ssl' for compat with LuaSec 0.6 (fixes #749)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 23 Sep 2016 16:09:46 +0200 |
parent | 6065:9ab23488a17c |
child | 7679:589e27b47d56 |
child | 7769:2a7b52437167 |
comparison
equal
deleted
inserted
replaced
7580:588ed6451984 | 7675:decb657bc0a0 |
---|---|
97 missingdep("LuaSec", { | 97 missingdep("LuaSec", { |
98 ["Debian/Ubuntu"] = "http://prosody.im/download/start#debian_and_ubuntu"; | 98 ["Debian/Ubuntu"] = "http://prosody.im/download/start#debian_and_ubuntu"; |
99 ["luarocks"] = "luarocks install luasec"; | 99 ["luarocks"] = "luarocks install luasec"; |
100 ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/"; | 100 ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/"; |
101 }, "SSL/TLS support will not be available"); | 101 }, "SSL/TLS support will not be available"); |
102 elseif not _G.ssl then | |
103 _G.ssl = ssl; | |
104 _G.ssl.context = require "ssl.context"; | |
102 end | 105 end |
103 | 106 |
104 local encodings, err = softreq "util.encodings" | 107 local encodings, err = softreq "util.encodings" |
105 if not encodings then | 108 if not encodings then |
106 if err:match("not found") then | 109 if err:match("not found") then |