build fails with
`./../nginx-http-auth-jwt/src/ngx_http_auth_jwt_module.c: In function ‘get_jwt’:
./../nginx-http-auth-jwt/src/ngx_http_auth_jwt_module.c:657:58: error: ‘ngx_http_headers_in_t’ has no member named ‘cookies’; did you mean ‘cookie’?
657
if (ngx_http_parse_multi_header_lines(&r->headers_in.cookies, &jwt_location, &jwtCookieVal) != NGX_DECLINED)
^~~
cookie
./../nginx-http-auth-jwt/src/ngx_http_auth_jwt_module.c:657:67: error: passing argument 2 of ‘ngx_http_parse_multi_header_lines’ from incompatible pointer type [-Werror=incompatible-pointer-types]
657
if (ngx_http_parse_multi_header_lines(&r->headers_in.cookies, &jwt_location, &jwtCookieVal) != NGX_DECLINED)
^~~~~
ngx_str_t *
In file included from ./../nginx-http-auth-jwt/src/ngx_http_auth_jwt_module.c:12:
src/http/ngx_http.h:112:22: note: expected ‘ngx_table_elt_t ’ {aka ‘struct ngx_table_elt_s ’} but argument is of type ‘ngx_str_t ’
112 | ngx_table_elt_t headers, ngx_str_t name, ngx_str_t value);
| ~~~^~~~~
./../nginx-http-auth-jwt/src/ngx_http_auth_jwt_module.c:657:9: error: too few arguments to function ‘ngx_http_parse_multi_header_lines’
657 | if (ngx_http_parse_multi_header_lines(&r->headers_in.cookies, &jwt_location, &jwtCookieVal) != NGX_DECLINED)
| ^~~~~~~~~
In file included from ./../nginx-http-auth-jwt/src/ngx_http_auth_jwt_module.c:12:
src/http/ngx_http.h:111:18: note: declared here
111 | ngx_table_elt_t ngx_http_parse_multi_header_lines(ngx_http_request_t r,
| ^~~~~~~~~
cc1: all warnings being treated as errors
make[1]: [objs/Makefile:1790: objs/addon/src/ngx_http_auth_jwt_module.o] Error 1
make[1]: Waiting for unfinished jobs....
make[1]: Leaving directory '/work/build/nginx-core'
make: *** [Makefile:10: build] Error 2`
To me it seems that nging V1.27.1 isn't supported.
Build env: Ubuntu 22.04.3 LTS
Steps to repoduce:
~~~~~~In file included from ./../nginx-http-auth-jwt/src/ngx_http_auth_jwt_module.c:12: src/http/ngx_http.h:112:22: note: expected ‘ngx_table_elt_t ’ {aka ‘struct ngx_table_elt_s ’} but argument is of type ‘ngx_str_t ’ 112 | ngx_table_elt_t headers, ngx_str_t name, ngx_str_t value); |
~~~^~~~~ ./../nginx-http-auth-jwt/src/ngx_http_auth_jwt_module.c:657:9: error: too few arguments to function ‘ngx_http_parse_multi_header_lines’ 657 | if (ngx_http_parse_multi_header_lines(&r->headers_in.cookies, &jwt_location, &jwtCookieVal) != NGX_DECLINED) | ^~~~~~~~~ In file included from ./../nginx-http-auth-jwt/src/ngx_http_auth_jwt_module.c:12: src/http/ngx_http.h:111:18: note: declared here 111 | ngx_table_elt_t ngx_http_parse_multi_header_lines(ngx_http_request_t r, | ^~~~~~~~~ cc1: all warnings being treated as errors make[1]: [objs/Makefile:1790: objs/addon/src/ngx_http_auth_jwt_module.o] Error 1 make[1]: Waiting for unfinished jobs.... make[1]: Leaving directory '/work/build/nginx-core' make: *** [Makefile:10: build] Error 2`