# HG changeset patch # User Maxim Dounin # Date 1689118849 -10800 # Node ID 1b9f21836f5746d4a5f4662d90c1b50eacd4dd1d # Parent 97ffd1cf5e2195c6c18b4cadccd14b0e21d35aa0 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. diff --git a/uwsgi_ssl.t b/uwsgi_ssl.t --- a/uwsgi_ssl.t +++ b/uwsgi_ssl.t @@ -98,6 +98,11 @@ if ($uwsgihelp !~ /--wsgi-file/) { 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", diff --git a/uwsgi_ssl_verify.t b/uwsgi_ssl_verify.t --- a/uwsgi_ssl_verify.t +++ b/uwsgi_ssl_verify.t @@ -144,6 +144,11 @@ if ($uwsgihelp !~ /--wsgi-file/) { 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",