# HG changeset patch # User Kim Alvefur # Date 1474639786 -7200 # Node ID decb657bc0a07c86f36f767047f919846d166ffb # Parent 588ed6451984276c4d03435a6af278bf910b1fd8 util.dependencies: Set global 'ssl' for compat with LuaSec 0.6 (fixes #749) diff -r 588ed6451984 -r decb657bc0a0 util/dependencies.lua --- 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"