forked from alibaba/tengine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: fix NTLS cert check, move sign/enc certficate to upstream
Update to nginx 1.22.1 (alibaba#1719) add reject_handshake, but not fully consider the NTLS. That's okay if no ssl_certificate is configured but ssl_sign_certificate and ssl_enc_certificate are configured when NTLS is enabled. Move sign_certificate, enc_certificate to upstream to adapt to nginx 1.22.1. Rename ngx_openssl_ntls to ngx_tongsuo_ntls. Add test-nginx-ntls CI.
- Loading branch information
1 parent
ced71fc
commit db9592f
Showing
25 changed files
with
253 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: test tengine ntls | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: "ubuntu-20.04" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
compiler: | ||
- { compiler: GNU, CC: gcc, CXX: g++} | ||
- { compiler: LLVM, CC: clang, CXX: clang++} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: tengine | ||
- name: checkout Tongsuo | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: Tongsuo-Project/Tongsuo | ||
path: Tongsuo | ||
- name: build Tongsuo | ||
working-directory: Tongsuo | ||
env: | ||
CC: ${{ matrix.compiler.CC }} | ||
run: | | ||
./config --prefix=${RUNNER_TEMP}/tongsuo enable-ntls no-shared | ||
make -s -j4 | ||
make install_sw | ||
make clean | ||
- name: build Tengine | ||
working-directory: tengine | ||
env: | ||
CC: ${{ matrix.compiler.CC }} | ||
CXX: ${{ matrix.compiler.CXX }} | ||
run: | | ||
./configure \ | ||
--add-module=modules/ngx_tongsuo_ntls \ | ||
--with-openssl=../Tongsuo \ | ||
--with-openssl-opt="--api=1.1.1 enable-ntls" \ | ||
--with-http_ssl_module \ | ||
--with-stream \ | ||
--with-stream_ssl_module \ | ||
--with-stream_sni | ||
make -j2 | ||
sudo make install | ||
- name: run test cases | ||
working-directory: tengine | ||
env: | ||
TEST_OPENSSL_BINARY: ${{ runner.temp }}/tongsuo/bin/tongsuo | ||
TEST_NGINX_BINARY: /usr/local/nginx/sbin/nginx | ||
TEST_NGINX_LEAVE: 1 | ||
run: | | ||
prove -Itests/nginx-tests/nginx-tests/lib/ modules/ngx_tongsuo_ntls/t/stream_ntls_proxy.t | ||
- name: debug | ||
if: ${{ failure() }} | ||
run: | | ||
for file in `ls /tmp/nginx-test-*/error.log`; do cat $file; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.