From 94039be57b92ae97bfabe5c05cefb6a0223eac48 Mon Sep 17 00:00:00 2001 From: Wangchong Zhou Date: Wed, 24 Jul 2024 18:12:29 +0800 Subject: [PATCH] chore(kdf) fix the outlen type to be size_t --- lib/resty/openssl/kdf.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/resty/openssl/kdf.lua b/lib/resty/openssl/kdf.lua index 6d726a81..594db34e 100644 --- a/lib/resty/openssl/kdf.lua +++ b/lib/resty/openssl/kdf.lua @@ -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 @@ -374,4 +374,4 @@ function _M:reset() return true end -return _M \ No newline at end of file +return _M