Diff

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
line wrap: on
line diff
--- 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"