aboutsummaryrefslogtreecommitdiffstats
path: root/util/dependencies.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-09-23 16:09:46 +0200
committerKim Alvefur <zash@zash.se>2016-09-23 16:09:46 +0200
commit3293df1d33422400930c5fd4de16447748c02d3a (patch)
tree023614dd803186c6d42c7d9bd22e8d62c5e23d6d /util/dependencies.lua
parent53d36450dcc9beafe16d4ff393aeb49861ea60e4 (diff)
downloadprosody-3293df1d33422400930c5fd4de16447748c02d3a.tar.gz
prosody-3293df1d33422400930c5fd4de16447748c02d3a.zip
util.dependencies: Set global 'ssl' for compat with LuaSec 0.6 (fixes #749)
Diffstat (limited to 'util/dependencies.lua')
-rw-r--r--util/dependencies.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/dependencies.lua b/util/dependencies.lua
index 4d50cf63..9ea211dd 100644
--- a/util/dependencies.lua
+++ b/util/dependencies.lua
@@ -99,6 +99,9 @@ function check_dependencies()
["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"