Welcome! Log In Create A New Profile

Advanced

[PATCH] Tests: allow to run ssl_curve.t on BoringSSL

Sergey Kandaurov
August 23, 2023 08:28AM
# HG changeset patch
# User Sergey Kandaurov <pluknet@nginx.com>
# Date 1692793549 -14400
# Wed Aug 23 16:25:49 2023 +0400
# Node ID fae298d5f8d649af8006707b2f2856cc07f220b9
# Parent 4d13c9e74d04bb6cdd83923ded045d665adc5226
Tests: allow to run ssl_curve.t on BoringSSL.

Recently BoringSSL has got SSL_get_negotiated_group(),
which makes $ssl_curve to return the expected value.

While here, moved SSL library check to runtime.

diff --git a/ssl_curve.t b/ssl_curve.t
--- a/ssl_curve.t
+++ b/ssl_curve.t
@@ -23,7 +23,7 @@ select STDERR; $| = 1;
select STDOUT; $| = 1;

my $t = Test::Nginx->new()
- ->has(qw/http http_ssl rewrite socket_ssl openssl:3.0.0/)
+ ->has(qw/http http_ssl rewrite socket_ssl/)
->has_daemon('openssl');

$t->write_file_expand('nginx.conf', <<'EOF');
@@ -75,6 +75,10 @@ foreach my $name ('localhost') {

###############################################################################

+local $TODO = 'OpenSSL too old'
+ unless $t->has_feature('openssl:3.0.0')
+ or $t->has_module('BoringSSL');
+
like(http_get('/curve', SSL => 1), qr/^prime256v1 /m, 'ssl curve');

###############################################################################
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Tests: allow to run ssl_curve.t on BoringSSL

Sergey Kandaurov 221 August 23, 2023 08:28AM

Re: [PATCH] Tests: allow to run ssl_curve.t on BoringSSL

Maxim Dounin 76 August 23, 2023 01:14PM

Re: [PATCH] Tests: allow to run ssl_curve.t on BoringSSL

Sergey Kandaurov 85 August 24, 2023 02:52AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 337
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready