openresty / openresty/lua-nginx-module

SSL_get_client_random compile error

Open
#2,391 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
11.8k
Forks
2.1k
Avg merge
6h 1m
Merged PRs (30d)
6

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in lua-nginx-module/src/ngx_http_lua_ssl_certby.c at ngx_http_lua_ffi_ssl_client_random and reproduce the dynamic-module build with the listed nginx, OpenSSL, LuaJIT, and CentOS 7 versions. Check why SSL_get_client_random is not declared in that environment; done means the module compiles successfully without the shown error.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux, lua, nginx
Domain
build-system, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.