Skip to content

Commit e73cd4b

Browse files
detailyangagentzh
authored andcommitted
tweak: guarded SSL related function declarations with the macro NGX_HTTP_SSL.
Signed-off-by: Yichun Zhang (agentzh) <[email protected]>
1 parent 4fb510f commit e73cd4b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ngx_http_lua_ssl.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313

1414
#if (NGX_HTTP_SSL)
15+
16+
1517
typedef struct {
1618
ngx_connection_t *connection; /* original true connection */
1719
ngx_http_request_t *request; /* fake request */
@@ -31,7 +33,6 @@ typedef struct {
3133
unsigned entered_cert_handler:1;
3234
unsigned entered_sess_fetch_handler:1;
3335
} ngx_http_lua_ssl_ctx_t;
34-
#endif
3536

3637

3738
ngx_int_t ngx_http_lua_ssl_init(ngx_log_t *log);
@@ -40,4 +41,7 @@ ngx_int_t ngx_http_lua_ssl_init(ngx_log_t *log);
4041
extern int ngx_http_lua_ssl_ctx_index;
4142

4243

44+
#endif
45+
46+
4347
#endif /* _NGX_HTTP_LUA_SSL_H_INCLUDED_ */

0 commit comments

Comments
 (0)