summaryrefslogtreecommitdiff
path: root/luasec-prosody-git/luasec-prosody.patch
blob: 2d2672b1eac95f724c4cab452f9e82715385d5d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/Makefile b/Makefile
index c8aa90f..31e27c8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 # Inform the location to intall the modules
-LUAPATH		?= /usr/share/lua/5.1
-LUACPATH	?= /usr/lib/lua/5.1
+LUAPATH		?= /usr/share/lua/5.2
+LUACPATH	?= /usr/lib/lua/5.2
 
 # Compile with build-in LuaSocket's help files.
 # Comment this lines if you will link with non-internal LuaSocket's help files
diff --git a/src/ssl.lua b/src/ssl.lua
index 1b062f6..1b63e70 100644
--- a/src/ssl.lua
+++ b/src/ssl.lua
@@ -4,6 +4,8 @@
 --
 ------------------------------------------------------------------------------
 
+local unpack  = unpack or table.unpack
+
 local core    = require("ssl.core")
 local context = require("ssl.context")
 local x509    = require("ssl.x509")