From aec590ec796f8cc608f837de695337f9310e3757 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 23 Sep 2016 16:09:46 +0200 Subject: util.dependencies: Set global 'ssl' for compat with LuaSec 0.6 (fixes #749) --- util/dependencies.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util/dependencies.lua') 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" -- cgit v1.2.3