forked from fooinha/nginx-ssl-ja3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig
46 lines (35 loc) · 1.23 KB
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
ngx_addon_name=ngx_ssl_ja3_module
ngx_module_incs=$ngx_addon_dir/src
NGINX_VERSION=`grep version src/core/nginx.h | sed 's/#define nginx_version *//;'`
if [ ! -z "${NGINX_VERSION}" ] && [ $STREAM != NO ]
then
if [ $NGINX_VERSION -gt 1011002 ]
then
STREAM_MODULES="ngx_stream_ssl_ja3_preread_module $STREAM_MODULES"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS \
$ngx_addon_dir/src/ngx_stream_ssl_ja3_preread_module.c"
echo " + ngx_ssl_ja3: stream support"
fi
fi
HTTP_MODULES="$HTTP_MODULES ngx_http_ssl_ja3_module"
CORE_INCS="$CORE_INCS $ngx_module_incs"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS \
$ngx_addon_dir/src/ngx_ssl_ja3.c \
$ngx_addon_dir/src/ngx_http_ssl_ja3_module.c
"
CORE_LIBS="$CORE_LIBS"
#
# OpenSSL 1.1.1 with SSL_CTX_set_client_hello_cb
#
ngx_feature="SSL_CTX_set_client_hello_cb()"
ngx_feature_name="NGX_HAVE_OPENSSL_SSL_CLIENT_HELLO_CB"
ngx_feature_run=no
ngx_feature_incs="#include <openssl/ssl.h>"
ngx_feature_path=
ngx_feature_libs="-lssl -lcrypto $NGX_LD_OPT"
ngx_feature_test="SSL_CTX_set_client_hello_cb(0, 0, 0);"
. auto/feature
if [ $ngx_found = no ]; then
echo " ! incorrect OpenSSL version. use >= 1.1.1"
exit 1
fi