mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
Includes addition of the various options to s_server/s_client. Also adds one of the new TLS1.3 ciphersuites. This isn't "real" TLS1.3!! It's identical to TLS1.2 apart from the protocol and the ciphersuite...and the ciphersuite is just a renamed TLS1.2 one (not a "real" TLS1.3 ciphersuite). Reviewed-by: Rich Salz <rsalz@openssl.org>
44 lines
1.2 KiB
Perl
44 lines
1.2 KiB
Perl
# -*- mode: perl; -*-
|
|
|
|
## SSL test configurations
|
|
|
|
package ssltests;
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
use OpenSSL::Test;
|
|
use OpenSSL::Test::Utils qw(anydisabled);
|
|
|
|
my @curves = ("sect163k1", "sect163r1", "sect163r2", "sect193r1",
|
|
"sect193r2", "sect233k1", "sect233r1", "sect239k1",
|
|
"sect283k1", "sect283r1", "sect409k1", "sect409r1",
|
|
"sect571k1", "sect571r1", "secp160k1", "secp160r1",
|
|
"secp160r2", "secp192k1", "prime192v1", "secp224k1",
|
|
"secp224r1", "secp256k1", "prime256v1", "secp384r1",
|
|
"secp521r1", "brainpoolP256r1", "brainpoolP384r1",
|
|
"brainpoolP512r1", "X25519");
|
|
|
|
our @tests = ();
|
|
|
|
sub generate_tests() {
|
|
foreach (0..$#curves) {
|
|
my $curve = $curves[$_];
|
|
push @tests, {
|
|
name => "curve-${curve}",
|
|
server => {
|
|
"Curves" => $curve,
|
|
# TODO(TLS1.3): Can we get this to work for TLSv1.3?
|
|
"MaxProtocol" => "TLSv1.2"
|
|
},
|
|
client => {
|
|
"CipherString" => "ECDHE",
|
|
"Curves" => $curve
|
|
},
|
|
test => { "ExpectedResult" => "Success" },
|
|
};
|
|
}
|
|
}
|
|
|
|
generate_tests();
|