blob: edffc0ffc92b6fd45941e26aaa50fe037fadb58a [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001# -*- 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
12package ssltests;
13use OpenSSL::Test::Utils;
14
15our @tests = (
16 {
17 name => "Just a sanity test case",
18 server => { },
19 client => { },
20 test => { "ExpectedResult" => "Success" },
21 },
22);
23
24our @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
33our @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
43push @tests, @tests_tls1_3 unless disabled("tls1_3")
44 || !disabled("ec2m") || disabled("ec");
45push @tests, @tests_tls1_2 unless disabled("tls1_2") || disabled("ec");