Skip to content

Commit

Permalink
chore(kdf) fix the outlen type to be size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion committed Jul 24, 2024
1 parent 529f0c5 commit 94039be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/resty/openssl/kdf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ local options_schema = {
scrypt_p = { TYPE_NUMBER, nil, NID_id_scrypt },
}

local outlen = ctypes.ptr_of_uint64()
local outlen = ctypes.ptr_of_size_t()

function _M.derive(options)
local typ = options.type
Expand Down Expand Up @@ -374,4 +374,4 @@ function _M:reset()
return true
end

return _M
return _M

0 comments on commit 94039be

Please sign in to comment.