summaryrefslogtreecommitdiff
path: root/user/prosody/luasec-0.6-fix.patch
blob: c8e37d09150af0f886c0046aa181e01e5173ba65 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/util/dependencies.lua b/util/dependencies.lua
index 4d50cf6..9ea211d 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"