lua-nginx-module
lua-nginx-module copied to clipboard
SSL_get_client_random compile error
Compile lua-nginx-modulev 0.10.27 for nginx 1.21.1, lua-resty-core-0.1.29 use
openssl-libs-1.0.2k-26.el7_9.x86_64
openssl-devel-1.0.2k-26.el7_9.x86_64
openssl-1.0.2k-26.el7_9.x86_64
libluajit-devel-2.1.0v20210510-2.el7.lnt.x86_64
Centos 7 and I have next problem
lua-nginx-module/src/ngx_http_lua_ssl_certby.c: In function 'ngx_http_lua_ffi_ssl_client_random':
lua-nginx-module/src/ngx_http_lua_ssl_certby.c:1651:5: error: implicit declaration of function 'SSL_get_client_random' [-Werror=implicit-function-declaration]
*outlen = SSL_get_client_random(ssl_conn, out, *outlen);
^
cc1: all warnings being treated as errors
make[1]: *** [objs/addon/src/ngx_http_lua_ssl_certby.o] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/nginx'
make: *** [build] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.EGI3Jk (%build)
Compile as dynamic module.
Please help me resolve error.
The OpenSSL version on your system is a bit outdated, at least OpenSSL 1.1.0 is required.