Skip to content

Commit d6258da

Browse files
committed
bugfix: build would fail when the http ssl module is disabled.
1 parent ac89f23 commit d6258da

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/ngx_http_lua_ssl_session_fetchby.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "ngx_http_lua_common.h"
1212

1313

14+
#if (NGX_HTTP_SSL)
1415
ngx_int_t ngx_http_lua_ssl_sess_fetch_handler_inline(ngx_http_request_t *r,
1516
ngx_http_lua_srv_conf_t *lscf, lua_State *L);
1617

@@ -25,6 +26,7 @@ char *ngx_http_lua_ssl_sess_fetch_by_lua_block(ngx_conf_t *cf,
2526

2627
ngx_ssl_session_t *ngx_http_lua_ssl_sess_fetch_handler(
2728
ngx_ssl_conn_t *ssl_conn, u_char *id, int len, int *copy);
29+
#endif
2830

2931

3032
#endif /* _NGX_HTTP_LUA_SSL_SESSION_FETCHBY_H_INCLUDED_ */

src/ngx_http_lua_ssl_session_storeby.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "ngx_http_lua_common.h"
1212

1313

14+
#if (NGX_HTTP_SSL)
1415
ngx_int_t ngx_http_lua_ssl_sess_store_handler_inline(ngx_http_request_t *r,
1516
ngx_http_lua_srv_conf_t *lscf, lua_State *L);
1617

@@ -25,6 +26,7 @@ char *ngx_http_lua_ssl_sess_store_by_lua_block(ngx_conf_t *cf,
2526

2627
int ngx_http_lua_ssl_sess_store_handler(ngx_ssl_conn_t *ssl_conn,
2728
ngx_ssl_session_t *sess);
29+
#endif
2830

2931

3032
#endif /* _NGX_HTTP_LUA_SSL_SESSION_STOREBY_H_INCLUDED_ */

0 commit comments

Comments
 (0)