lua-nginx-module
lua-nginx-module copied to clipboard
feature: Added ngx_http_lua_ffi_ssl_ocsp_get_nextupdate
This PR is a possible solution to https://github.com/openresty/lua-resty-core/issues/75 and is complemented by https://github.com/openresty/lua-resty-core/pull/99. Looking forward to your feedback.
I hereby granted the copyright of the changes in this pull request to the authors of this lua-nginx-module project.
Also, two newbie questions:
- I copied
ngx_ssl_stapling_timeover from the nginx source code because I couldn't figure out how to reference/reuse/import it. Is there a way to do this without patching nginx? - Should
ngx_http_lua_ffi_ssl_ocsp_get_nextupdatebe in a header file somewhere?
@alubbe To answer your questions:
- Static C functions cannot be reused outside that compilation unit.
- No. Those C functions are not meant to be used by other C code.
@ghedo @lziest Do you mind reviewing this PR for me? Many thanks!
Static C functions cannot be reused outside that compilation unit.
Fair enough. I will copy the contents and rename it to ngx_http_lua_ssl_stapling_time.
No. Those C functions are not meant to be used by other C code.
Can we also remove https://github.com/openresty/lua-nginx-module/pull/782/files#diff-c4f8697714ffd4ae8e3d403bc9a55715R17 ?