Skip to content

Commit

Permalink
fix: pkey.new() failed, if compile pkey.lua to LuaJIT bytecode (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfred-green-rand authored Jan 10, 2025
1 parent 1dd84ae commit 085f329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resty/openssl/pkey.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ local function load_pem_der(txt, opts, funcs)
C.ERR_clear_error()
return nil, "passphrase must be a string"
end
arg = { null, nil, passphrase }
arg = { null, null, passphrase }
elseif opts.passphrase_cb then
passphrase_cb = passphrase_cb or ffi_cast("pem_password_cb", function(buf, size)
local p = opts.passphrase_cb()
Expand Down

0 comments on commit 085f329

Please sign in to comment.