Skip to content

Commit f8473e8

Browse files
committed
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.
1 parent 0d2a863 commit f8473e8

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

uwsgi_ssl.t

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ if ($uwsgihelp !~ /--wsgi-file/) {
9898
push @uwsgiopts, '--plugin', 'python3';
9999
}
100100

101+
if ($uwsgihelp =~ /--ssl-enable-tlsv1/) {
102+
# uwsgi disables TLSv1 by default since 2.0.17.1
103+
push @uwsgiopts, '--ssl-enable-tlsv1';
104+
}
105+
101106
open OLDERR, ">&", \*STDERR; close STDERR;
102107
$t->run_daemon('uwsgi', @uwsgiopts,
103108
'--ssl-socket', '127.0.0.1:' . port(8081) . ",$crt,$key",

uwsgi_ssl_verify.t

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@ if ($uwsgihelp !~ /--wsgi-file/) {
144144
push @uwsgiopts, '--plugin', 'python3';
145145
}
146146

147+
if ($uwsgihelp =~ /--ssl-enable-tlsv1/) {
148+
# uwsgi disables TLSv1 by default since 2.0.17.1
149+
push @uwsgiopts, '--ssl-enable-tlsv1';
150+
}
151+
147152
open OLDERR, ">&", \*STDERR; close STDERR;
148153
$t->run_daemon('uwsgi', @uwsgiopts,
149154
'--ssl-socket', '127.0.0.1:' . port(8081) . ",$crt1,$key1",

0 commit comments

Comments
 (0)