File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,10 @@ if subsystem == 'http' then
41
41
42
42
int ngx_http_lua_ffi_ssl_set_protocols (ngx_http_request_t * r ,
43
43
int protocols , char ** err );
44
+
44
45
int ngx_http_lua_ffi_ssl_get_client_hello_ext_present (ngx_http_request_t * r ,
45
46
int ** extensions , size_t * extensions_len , char ** err );
47
+ /* Undefined for the stream subsystem */
46
48
]]
47
49
48
50
ngx_lua_ffi_ssl_get_client_hello_server_name =
@@ -125,6 +127,8 @@ function _M.get_client_hello_ext_present()
125
127
126
128
local rc = ngx_lua_ffi_ssl_get_client_hello_ext_present (r , intp ,
127
129
sizep , errmsg )
130
+ -- the function used under the hood, SSL_client_hello_get1_extensions_present,
131
+ -- already excludes GREASE, thank G*d
128
132
if rc == FFI_OK then -- Convert C array to Lua table
129
133
local array = intp [0 ]
130
134
local size = tonumber (sizep [0 ])
You can’t perform that action at this time.
0 commit comments