+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 = { };
function handlers.options(a, k, b)
local o = a[k] or { };
if type(b) ~= "table" then b = { b } end
- for k,v in pairs(b) do
- if v == true or v == false then
- o[k] = v;
+ for key, value in pairs(b) do
+ if value == true or value == false then
+ o[key] = value;
else
- o[v] = true;
+ o[value] = true;
end
end
a[k] = o;
function finalisers.ciphers(a)
if type(a) == "table" then
- return table.concat(a, ":");
+ return t_concat(a, ":");
end
return a;
end
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