projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net.*: Remove use of module() function
[prosody.git]
/
util
/
sslconfig.lua
diff --git
a/util/sslconfig.lua
b/util/sslconfig.lua
index 42ce37d72045f94faad19af6c36851a3b9d77937..71f27c9460f6548ab816e843d8012ddef25425c1 100644
(file)
--- 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 = { };
local handlers = { };
local finalisers = { };
@@
-34,7
+42,7
@@
finalisers.verifyext = finalisers.options;
function finalisers.ciphers(a)
if type(a) == "table" then
function finalisers.ciphers(a)
if type(a) == "table" then
- return t
able.
concat(a, ":");
+ return t
_
concat(a, ":");
end
return a;
end
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
if min_protocol then
a.protocol = "sslv23";
for i = 1, min_protocol do
- t
able.
insert(a.options, "no_"..protocols[i]);
+ t
_
insert(a.options, "no_"..protocols[i]);
end
end
end
end
end
end