fffonion / lua-resty-openssl

FFI-based OpenSSL binding for OpenResty
BSD 2-Clause "Simplified" License
130 stars 43 forks source link

Decrypt Error use latest version #186

Open wintergl opened 2 weeks ago

wintergl commented 2 weeks ago

EVP_PKEY_OP_TYPE_CRYPT is not used in openssl3.x

but I dont know how to fix it

error info is

lua entry thread aborted: runtime error: ...openresty/site/lualib/resty/openssl/include/evp/pkey.lua:218: attempt to perform arithmetic on field 'EVP_PKEY_OP_TYPE_CRYPT' (a nil value) stack traceback: coroutine 0: ...openresty/site/lualib/resty/openssl/include/evp/pkey.lua: in function 'EVP_PKEY_CTX_set_rsa_mgf1_md_name' /usr/local/openresty/site/lualib/resty/openssl/pkey.lua:170: in function '_pctx_ctrl_str' /usr/local/openresty/site/lualib/resty/openssl/pkey.lua:793: in function 'decrypt'

fffonion commented 1 week ago

which version of openssl are you using?