Skip to content

Commit 085f329

Browse files
fix: pkey.new() failed, if compile pkey.lua to LuaJIT bytecode (#193)
1 parent 1dd84ae commit 085f329

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resty/openssl/pkey.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ local function load_pem_der(txt, opts, funcs)
109109
C.ERR_clear_error()
110110
return nil, "passphrase must be a string"
111111
end
112-
arg = { null, nil, passphrase }
112+
arg = { null, null, passphrase }
113113
elseif opts.passphrase_cb then
114114
passphrase_cb = passphrase_cb or ffi_cast("pem_password_cb", function(buf, size)
115115
local p = opts.passphrase_cb()

0 commit comments

Comments
 (0)