Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 29 additions & 17 deletions config
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,33 @@ NGX_ADDON_SRCS="$NGX_ADDON_SRCS \

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 $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

case $OPENSSL in
YES)
echo " + ngx_ssl_ja3: using system OpenSSL library"
#
# 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 $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
;;

NONE)
echo " ! ngx_ssl_ja3: OpenSSL library is not used"
exit 1
;;
*)
echo " + ngx_ssl_ja3: using OpenSSL library: $OPENSSL"
;;
esac