Mercurial > hg > nginx-tests
changeset 1923:1b9f21836f57
Tests: enabled TLSv1 in uwsgi SSL tests.
In uWSGI starting with 2.0.17.1, TLSv1 is disabled by default. It is
now re-enabled to make it possible to run tests with OpenSSL before 1.0.1,
where TLSv1.1 and TLSv1.2 support was introduced.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 12 Jul 2023 02:40:49 +0300 |
parents | 97ffd1cf5e21 |
children | 0e4ff5f83653 |
files | uwsgi_ssl.t uwsgi_ssl_verify.t |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/uwsgi_ssl.t Wed Jul 12 02:40:35 2023 +0300 +++ b/uwsgi_ssl.t Wed Jul 12 02:40:49 2023 +0300 @@ -98,6 +98,11 @@ push @uwsgiopts, '--plugin', 'python3'; } +if ($uwsgihelp =~ /--ssl-enable-tlsv1/) { + # uwsgi disables TLSv1 by default since 2.0.17.1 + push @uwsgiopts, '--ssl-enable-tlsv1'; +} + open OLDERR, ">&", \*STDERR; close STDERR; $t->run_daemon('uwsgi', @uwsgiopts, '--ssl-socket', '127.0.0.1:' . port(8081) . ",$crt,$key",
--- a/uwsgi_ssl_verify.t Wed Jul 12 02:40:35 2023 +0300 +++ b/uwsgi_ssl_verify.t Wed Jul 12 02:40:49 2023 +0300 @@ -144,6 +144,11 @@ push @uwsgiopts, '--plugin', 'python3'; } +if ($uwsgihelp =~ /--ssl-enable-tlsv1/) { + # uwsgi disables TLSv1 by default since 2.0.17.1 + push @uwsgiopts, '--ssl-enable-tlsv1'; +} + open OLDERR, ">&", \*STDERR; close STDERR; $t->run_daemon('uwsgi', @uwsgiopts, '--ssl-socket', '127.0.0.1:' . port(8081) . ",$crt1,$key1",