From 329ad492baf5052ab0bfbc8332379e7c8269c454 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 9ecf07e1..28bf9785 100644 --- a/lualib/resty/kong/tls.lua +++ b/lualib/resty/kong/tls.lua @@ -61,7 +61,7 @@ if subsystem == "http" then int depth); int ngx_http_lua_kong_ffi_get_socket_ssl(ngx_http_lua_socket_tcp_upstream_t *u, 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 @@ -71,7 +71,7 @@ if subsystem == "http" then kong_lua_kong_ffi_set_upstream_ssl_verify = C.ngx_http_lua_kong_ffi_set_upstream_ssl_verify 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_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 a3e59b3b..76b73feb 100644 --- a/src/ngx_http_lua_kong_ssl.c +++ b/src/ngx_http_lua_kong_ssl.c @@ -191,7 +191,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;