Changeset

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
parents 7580:588ed6451984
children 7676:7311dc843718
files util/dependencies.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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"