libluajit-5.1.so.2: undefined symbol: EVP_PKEY_size

64 views
Skip to first unread message

Rhyme Zhao

unread,
Nov 25, 2024, 1:03:07 AM11/25/24
to openresty
我使用docker版本的openresty,版本信息如下:
               "maintainer": "Evan Wies <ev...@neomantra.net>",
               "resty_apt_pgp": "https://openresty.org/package/pubkey.gpg",
                "resty_apt_repo": "https://openresty.org/package/debian",
                "resty_deb_flavor": "",
                "resty_deb_version": "=1.27.1.1-1~bullseye1",
                "resty_image_base": "debian",
                "resty_image_tag": "bullseye-slim"

添加了RSA的lib,lua-resty-rsa,调用该lib方式的时候出错:

2024/11/25 04:06:05 [error] 6#6: *1 lua entry thread aborted: runtime error: /usr/local/openresty/lualib/resty/rsa.lua:391: /usr/local/openresty/luajit/lib/libluajit-5.1.so.2: undefined symbol: EVP_PKEY_size
stack traceback:
coroutine 0:
[C]: in function '__index'
/usr/local/openresty/lualib/resty/rsa.lua:391: in function 'new'

请问是什么问题?
Message has been deleted

Junlong li

unread,
Nov 26, 2024, 9:13:26 PM11/26/24
to openresty
因为在 openssl3 中, EVP_PKEY_size 是一个宏。
./openssl/evp.h:# define EVP_PKEY_size EVP_PKEY_get_size

Reply all
Reply to author
Forward
0 new messages