From c50352b6bd4b982d163d15eb5e9493c8288582fe Mon Sep 17 00:00:00 2001 From: Jun Ouyang Date: Mon, 21 Oct 2024 14:42:09 +0800 Subject: [PATCH] fix code --- lualib/resty/kong/tls.lua | 4 ++-- src/ngx_http_lua_kong_ssl.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lualib/resty/kong/tls.lua b/lualib/resty/kong/tls.lua index eeec5d88..1cb9edc2 100644 --- a/lualib/resty/kong/tls.lua +++ b/lualib/resty/kong/tls.lua @@ -64,7 +64,7 @@ if subsystem == "http" then void **ssl_conn); int ngx_http_lua_kong_ffi_get_request_ssl(ngx_http_request_t *r, void **ssl_conn); - int ngx_http_lua_ffi_ssl_disable_http2_alpn(ngx_http_request_t *r, char **err); + int ngx_http_lua_ffi_disable_http2_alpn(ngx_http_request_t *r, char **err); ]]) kong_lua_kong_ffi_get_full_client_certificate_chain = C.ngx_http_lua_kong_ffi_get_full_client_certificate_chain @@ -75,7 +75,7 @@ if subsystem == "http" then kong_lua_kong_ffi_set_upstream_ssl_verify_depth = C.ngx_http_lua_kong_ffi_set_upstream_ssl_verify_depth kong_lua_kong_ffi_get_socket_ssl = C.ngx_http_lua_kong_ffi_get_socket_ssl kong_lua_kong_ffi_get_request_ssl = C.ngx_http_lua_kong_ffi_get_request_ssl - kong_lua_kong_ffi_disable_http2_alpn = C.ngx_http_lua_ffi_ssl_disable_http2_alpn + kong_lua_kong_ffi_disable_http2_alpn = C.ngx_http_lua_ffi_disable_http2_alpn elseif subsystem == 'stream' then ffi.cdef([[ diff --git a/src/ngx_http_lua_kong_ssl.c b/src/ngx_http_lua_kong_ssl.c index 3196b891..9f819363 100644 --- a/src/ngx_http_lua_kong_ssl.c +++ b/src/ngx_http_lua_kong_ssl.c @@ -214,7 +214,7 @@ ngx_http_lua_kong_ssl_get_http2_alpn_enabled(ngx_ssl_connection_t *ssl, } int -ngx_http_lua_ffi_ssl_disable_http2_alpn(ngx_http_request_t *r, char **err) +ngx_http_lua_ffi_disable_http2_alpn(ngx_http_request_t *r, char **err) { ngx_ssl_conn_t *ssl_conn; ngx_http_lua_ssl_ctx_t *cctx;