lua-nginx-module icon indicating copy to clipboard operation
lua-nginx-module copied to clipboard

SSL_get_client_random compile error

Open Konstantin74R opened this issue 11 months ago • 1 comments

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.

Konstantin74R avatar Jan 28 '25 09:01 Konstantin74R

The OpenSSL version on your system is a bit outdated, at least OpenSSL 1.1.0 is required.

gavin0616 avatar Aug 12 '25 10:08 gavin0616