Skip to content

Commit 6000f93

Browse files
dedokphuslu
authored andcommitted
Disable ngx_stream_ssl_fingerprint_preread_module.c, if nginx stream ssl module is off
1 parent 90c1aef commit 6000f93

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/ngx_stream_ssl_fingerprint_preread_module.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2+
/*
3+
* Please make sure that you have been incuded --with-streams before --add-module
4+
* Else this module won't be compiled
5+
*/
6+
#if (NGX_STREAM_SSL)
7+
18
#include <ngx_config.h>
29
#include <ngx_core.h>
310
#include <ngx_stream.h>
@@ -162,3 +169,10 @@ ngx_stream_ssl_fingerprint_preread_init(ngx_conf_t *cf)
162169

163170
return NGX_OK;
164171
}
172+
173+
#else
174+
# pragma message "nginx-ssl-fingerprint: "
175+
# pragma message "disabled for ngx_stream or ngx_ssl_stream. Please add --with-streams with ssl support, "
176+
# pragma message "if you wish to enable it"
177+
#endif /** NGX_STREAM_SSL */
178+

0 commit comments

Comments
 (0)