summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2015-11-15 20:31:47 +1100
committerdaurnimator <quae@daurnimator.com>2015-11-15 20:31:47 +1100
commitc80559d64791e42f8fec9056343f4629720323e4 (patch)
tree4fce4e0221ee756faa20fe886932eb7f6512c4e5
parent18cb0387fd063f1b2874c44dab11bbc319cc86ca (diff)
downloadluaossl-c80559d64791e42f8fec9056343f4629720323e4.tar.gz
luaossl-c80559d64791e42f8fec9056343f4629720323e4.tar.bz2
luaossl-c80559d64791e42f8fec9056343f4629720323e4.zip
Fix not passing through first cipher argument in vararg form
-rw-r--r--src/openssl.ssl.context.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openssl.ssl.context.lua b/src/openssl.ssl.context.lua
index 2da84de..2098b54 100644
--- a/src/openssl.ssl.context.lua
+++ b/src/openssl.ssl.context.lua
@@ -5,7 +5,7 @@ local pack = table.pack or function(...) return { n = select("#", ...); ... } en
5-- Allow passing a vararg of ciphers, or an array 5-- Allow passing a vararg of ciphers, or an array
6local setCipherList; setCipherList = ctx.interpose("setCipherList", function (self, ciphers, ...) 6local setCipherList; setCipherList = ctx.interpose("setCipherList", function (self, ciphers, ...)
7 if (...) then 7 if (...) then
8 local ciphers_t = pack(...) 8 local ciphers_t = pack(ciphers, ...)
9 ciphers = table.concat(ciphers_t, ":", 1, ciphers_t.n) 9 ciphers = table.concat(ciphers_t, ":", 1, ciphers_t.n)
10 elseif type(ciphers) == "table" then 10 elseif type(ciphers) == "table" then
11 ciphers = table.concat(ciphers, ":") 11 ciphers = table.concat(ciphers, ":")