Mercurial > hg > nginx-tests
changeset 1973:94e0390dc64f
Tests: guarded ssl_certificates.t for old OpenSSL versions.
The ssl_certificates.t test uses ECDSA ciphers, which are only available
starting with OpenSSL 0.9.8b. In previous versions, notably in OpenSSL 0.9.8
and 0.9.8a, only non-standard example ciphers where available, which cannot
be used with any other clients.
The same applies to ssl_stapling.t, but it also requires the certificate
status TLS extension, which is only available since OpenSSL 0.9.8h, and
therefore no additional checks are needed.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 06 May 2024 00:04:24 +0300 |
parents | f3573393f36f |
children | b5036a0f9ae0 |
files | ssl_certificates.t |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ssl_certificates.t Mon May 06 00:04:22 2024 +0300 +++ b/ssl_certificates.t Mon May 06 00:04:24 2024 +0300 @@ -25,7 +25,10 @@ my $t = Test::Nginx->new()->has(qw/http http_ssl socket_ssl/) ->has_daemon('openssl'); -plan(skip_all => 'no multiple certificates') if $t->has_module('BoringSSL'); +plan(skip_all => 'no multiple certificates') + if $t->has_module('BoringSSL'); +plan(skip_all => 'no ECDSA support') + if $t->has_module('OpenSSL') and not $t->has_feature('openssl:0.9.8b'); $t->write_file_expand('nginx.conf', <<'EOF');