@@ -24,77 +24,8 @@ typedef struct {
2424ngx_flag_t
2525ngx_stream_lua_kong_get_proxy_ssl_disable (ngx_stream_session_t * s );
2626
27-
28- // macOS with M1 fixes, see: https://github.com/LuaJIT/LuaJIT/issues/205
29-
30- int ngx_stream_lua_ffi_shdict_get (ngx_shm_zone_t * zone , const unsigned char * key ,
31- size_t key_len , int * value_type , unsigned char * * str_value_buf ,
32- size_t * str_value_len , double * num_value , int * user_flags ,
33- int get_stale , int * is_stale , char * * errmsg );
34-
35- typedef struct {
36- ngx_shm_zone_t * zone ;
37- const unsigned char * key ;
38- size_t key_len ;
39- int * value_type ;
40- unsigned char * * str_value_buf ;
41- size_t * str_value_len ;
42- double * num_value ;
43- int * user_flags ;
44- int get_stale ;
45- int * is_stale ;
46- char * * errmsg ;
47- } ngx_shdict_get_t ;
48-
49- int ngx_stream_lua_ffi_shdict_get_m1 (ngx_shdict_get_t * s );
50-
51-
52- int ngx_stream_lua_ffi_shdict_store (ngx_shm_zone_t * zone , int op ,
53- const unsigned char * key , size_t key_len , int value_type ,
54- const unsigned char * str_value_buf , size_t str_value_len ,
55- double num_value , long exptime , int user_flags , char * * errmsg ,
56- int * forcible );
57-
58- typedef struct {
59- ngx_shm_zone_t * zone ;
60- int op ;
61- const unsigned char * key ;
62- size_t key_len ;
63- int value_type ;
64- const unsigned char * str_value_buf ;
65- size_t str_value_len ;
66- double num_value ;
67- long exptime ;
68- int user_flags ;
69- char * * errmsg ;
70- int * forcible ;
71- } ngx_shdict_store_t ;
72-
73- int ngx_stream_lua_ffi_shdict_store_m1 (ngx_shdict_store_t * s );
74-
75-
76- int ngx_stream_lua_ffi_shdict_incr (ngx_shm_zone_t * zone , const unsigned char * key ,
77- size_t key_len , double * num_value , char * * errmsg , int has_init ,
78- double init , long init_ttl , int * forcible );
79-
80- typedef struct {
81- ngx_shm_zone_t * zone ;
82- const unsigned char * key ;
83- size_t key_len ;
84- double * num_value ;
85- char * * errmsg ;
86- int has_init ;
87- double init ;
88- long init_ttl ;
89- int * forcible ;
90- } ngx_shdict_incr_t ;
91-
92- int ngx_stream_lua_ffi_shdict_incr_m1 (ngx_shdict_incr_t * s );
93-
94- // macOS with M1 fixes end
95-
9627void
97- ngx_stream_lua_kong_set_upstream_ssl (ngx_stream_session_t * s ,
28+ ngx_stream_lua_kong_set_upstream_ssl (ngx_stream_session_t * s ,
9829 ngx_connection_t * c );
9930
10031ngx_flag_t
0 commit comments