Skip to content

bugfix: append new parameters to ngx_lua_ffi_ssl_verify_client at fun… #477

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/ngx/ssl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ if subsystem == 'http' then
void ngx_http_lua_ffi_free_priv_key(void *cdata);

int ngx_http_lua_ffi_ssl_verify_client(void *r,
void *client_certs, void *trusted_certs, int depth, char **err);
void *client_certs, int depth, char **err, void *trusted_certs);

int ngx_http_lua_ffi_ssl_client_random(ngx_http_request_t *r,
const unsigned char *out, size_t *outlen, char **err);
Expand Down Expand Up @@ -494,8 +494,8 @@ function _M.verify_client(client_certs, depth, trusted_certs)
depth = -1
end

local rc = ngx_lua_ffi_ssl_verify_client(r, client_certs, trusted_certs,
depth, errmsg)
local rc = ngx_lua_ffi_ssl_verify_client(r, client_certs, depth, errmsg,
trusted_certs)
if rc == FFI_OK then
return true
end
Expand Down
Loading