yuezonghe | 824eb0c | 2024-06-27 02:32:26 -0700 | [diff] [blame] | 1 | # -*- mode: perl; -*- |
| 2 | # Copyright 2016-2022 The OpenSSL Project Authors. All Rights Reserved. |
| 3 | # |
| 4 | # Licensed under the OpenSSL license (the "License"). You may not use |
| 5 | # this file except in compliance with the License. You can obtain a copy |
| 6 | # in the file LICENSE in the source distribution or at |
| 7 | # https://www.openssl.org/source/license.html |
| 8 | |
| 9 | |
| 10 | ## SSL test configurations |
| 11 | |
| 12 | package ssltests; |
| 13 | use OpenSSL::Test::Utils; |
| 14 | |
| 15 | our @tests = ( |
| 16 | { |
| 17 | name => "Just a sanity test case", |
| 18 | server => { }, |
| 19 | client => { }, |
| 20 | test => { "ExpectedResult" => "Success" }, |
| 21 | }, |
| 22 | ); |
| 23 | |
| 24 | our @tests_tls1_3 = ( |
| 25 | { |
| 26 | name => "Fail empty groups with TLS1.3", |
| 27 | server => { }, |
| 28 | client => { "Groups" => "sect163k1" }, |
| 29 | test => { "ExpectedResult" => "ClientFail" }, |
| 30 | }, |
| 31 | ); |
| 32 | |
| 33 | our @tests_tls1_2 = ( |
| 34 | { |
| 35 | name => "Pass with empty groups with TLS1.2", |
| 36 | server => { }, |
| 37 | client => { "Groups" => "sect163k1", |
| 38 | "MaxProtocol" => "TLSv1.2" }, |
| 39 | test => { "ExpectedResult" => "Success" }, |
| 40 | }, |
| 41 | ); |
| 42 | |
| 43 | push @tests, @tests_tls1_3 unless disabled("tls1_3") |
| 44 | || !disabled("ec2m") || disabled("ec"); |
| 45 | push @tests, @tests_tls1_2 unless disabled("tls1_2") || disabled("ec"); |