From a90e791e609f559510c710af61fa69ce90c69491 Mon Sep 17 00:00:00 2001 From: leaf corcoran Date: Wed, 22 Apr 2026 11:13:12 -0700 Subject: [PATCH] support openresty 1.29.2 --- lib/resty/openssl/auxiliary/nginx.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/resty/openssl/auxiliary/nginx.lua b/lib/resty/openssl/auxiliary/nginx.lua index 0f793eac..6d95870c 100644 --- a/lib/resty/openssl/auxiliary/nginx.lua +++ b/lib/resty/openssl/auxiliary/nginx.lua @@ -43,10 +43,10 @@ else local ngx_configure = ngx.config.nginx_configure() local ngx_has_http_v3 = ngx_configure and ngx_configure:find("--with-http_v3_module", 1, true) -- https://github.com/nginx/nginx/blob/master/src/core/ngx_connection.h - if ngx_version == 1017008 or ngx_version == 1019003 or ngx_version == 1019009 + if ngx_version == 1017008 or ngx_version == 1019003 or ngx_version == 1019009 or ngx_version == 1021004 - or (not ngx_has_http_v3 and (ngx_version == 1025003 or ngx_version == 1027001)) then - -- 1.17.8, 1.19.3, 1.19.9, 1.21.4, 1.25.3 + or (not ngx_has_http_v3 and (ngx_version == 1025003 or ngx_version == 1027001 or ngx_version == 1029002)) then + -- 1.17.8, 1.19.3, 1.19.9, 1.21.4, 1.25.3, 1.27.1, 1.29.2 ffi.cdef [[ typedef struct ngx_proxy_protocol_s ngx_proxy_protocol_t; @@ -83,8 +83,8 @@ else // trimmed } ngx_connection_s; ]] - elseif ngx_has_http_v3 and (ngx_version == 1025003 or ngx_version == 1027001) then - -- 1.25.3 + elseif ngx_has_http_v3 and (ngx_version == 1025003 or ngx_version == 1027001 or ngx_version == 1029002) then + -- 1.25.3, 1.27.1, 1.29.2 ffi.cdef [[ typedef struct ngx_proxy_protocol_s ngx_proxy_protocol_t; typedef struct ngx_quic_stream_s ngx_quic_stream_t; @@ -256,7 +256,7 @@ else ngx.config.ngx_lua_version and ngx.config.ngx_lua_version - if ngx_lua_version >= 10019 and ngx_lua_version <= 10028 then + if ngx_lua_version >= 10019 and ngx_lua_version <= 10030 then -- https://github.com/openresty/lua-nginx-module/blob/master/src/ngx_http_lua_socket_tcp.h ffi.cdef[[ typedef struct {