mirror of
https://github.com/openssl/openssl.git
synced 2024-12-26 02:13:45 +08:00
b02929802c
The SNI tests introduced a redundant "server2" section into every test configuration. Copy this automatically from "server" unless testing SNI, to reduce noise in the generated confs. Also remove duplicate SSL_TEST_CTX_create (merge conflict error). Reviewed-by: Rich Salz <rsalz@openssl.org>
38 lines
934 B
Cheetah
38 lines
934 B
Cheetah
[{-$testname-}]
|
|
ssl_conf = {-$testname-}-ssl
|
|
|
|
[{-$testname-}-ssl]
|
|
server = {-$testname-}-server{-
|
|
# The server2 section is optional.
|
|
$OUT = "";
|
|
if (%server2) {
|
|
$OUT .= "\nserver2 = $testname-server2";
|
|
}
|
|
-}
|
|
client = {-$testname-}-client
|
|
|
|
[{-$testname-}-server]
|
|
{-
|
|
foreach my $key (sort keys %server) {
|
|
$OUT .= qq{$key} . " = " . qq{$server{$key}\n} if defined $server{$key};
|
|
}
|
|
if (%server2) {
|
|
$OUT .= "\n[$testname-server2]\n";
|
|
foreach my $key (sort keys %server2) {
|
|
$OUT .= qq{$key} . " = " . qq{$server2{$key}\n} if defined $server2{$key};
|
|
}
|
|
}
|
|
-}
|
|
[{-$testname-}-client]
|
|
{-
|
|
foreach my $key (sort keys %client) {
|
|
$OUT .= qq{$key} . " = " . qq{$client{$key}\n} if defined $client{$key};
|
|
}
|
|
-}
|
|
[test-{-$idx-}]
|
|
{-
|
|
foreach my $key (sort keys %test) {
|
|
$OUT .= qq{$key} ." = " . qq{$test{$key}\n} if defined $test{$key};
|
|
}
|
|
-}
|