aboutsummaryrefslogtreecommitdiffstats
path: root/util/sslconfig.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-08-20 13:05:22 +0200
committerKim Alvefur <zash@zash.se>2015-08-20 13:05:22 +0200
commit6ef7c4d80892f486d71e660b054bdfdb993c8528 (patch)
tree103fd7d9396b60b9f76071a009c54d3ca9d35744 /util/sslconfig.lua
parenta9029bd099734436154fc4e794d3b958e54d1943 (diff)
parentd32f36b2817739d7f8d5f1208a3009b7be379562 (diff)
downloadprosody-6ef7c4d80892f486d71e660b054bdfdb993c8528.tar.gz
prosody-6ef7c4d80892f486d71e660b054bdfdb993c8528.zip
Merge 0.10->trunk
Diffstat (limited to 'util/sslconfig.lua')
-rw-r--r--util/sslconfig.lua12
1 files changed, 10 insertions, 2 deletions
diff --git a/util/sslconfig.lua b/util/sslconfig.lua
index 42ce37d7..71f27c94 100644
--- a/util/sslconfig.lua
+++ b/util/sslconfig.lua
@@ -1,3 +1,11 @@
+local type = type;
+local pairs = pairs;
+local rawset = rawset;
+local t_concat = table.concat;
+local t_insert = table.insert;
+local setmetatable = setmetatable;
+
+local _ENV = nil;
local handlers = { };
local finalisers = { };
@@ -34,7 +42,7 @@ finalisers.verifyext = finalisers.options;
function finalisers.ciphers(a)
if type(a) == "table" then
- return table.concat(a, ":");
+ return t_concat(a, ":");
end
return a;
end
@@ -47,7 +55,7 @@ local function protocol(a)
if min_protocol then
a.protocol = "sslv23";
for i = 1, min_protocol do
- table.insert(a.options, "no_"..protocols[i]);
+ t_insert(a.options, "no_"..protocols[i]);
end
end
end