Skip to content

Commit

Permalink
Revert "bugfix: append new parameters to ngx_lua_ffi_ssl_verify_clien…
Browse files Browse the repository at this point in the history
…t at function end."

This reverts commit a76c167.
  • Loading branch information
jiahao committed Jul 11, 2024
1 parent a76c167 commit 7ffef2f
Showing 1 changed file with 3 additions and 3 deletions.
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, int depth, char **err, void *trusted_certs);
void *client_certs, void *trusted_certs, int depth, char **err);

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, depth, errmsg,
trusted_certs)
local rc = ngx_lua_ffi_ssl_verify_client(r, client_certs, trusted_certs,
depth, errmsg)
if rc == FFI_OK then
return true
end
Expand Down

0 comments on commit 7ffef2f

Please sign in to comment.