1# -*- mode: perl; -*-
2# Copyright 2019-2020 The OpenSSL Project Authors. All Rights Reserved.
3#
4# Licensed under the Apache License 2.0 (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## Test SSL_MODE_DTLS_SCTP_LABEL_LENGTH_BUG handling
11
12use strict;
13use warnings;
14
15package ssltests;
16use OpenSSL::Test::Utils;
17
18our @tests = (
19    {
20        name => "SCTPLabelBug-good1",
21        server => {},
22        client => {},
23        test => {
24            "Method" => "DTLS",
25            "UseSCTP" => "Yes",
26            "EnableClientSCTPLabelBug" => "No",
27            "EnableServerSCTPLabelBug" => "No",
28            "ExpectedResult" => "Success"
29        }
30    },
31    {
32        name => "SCTPLabelBug-good2",
33        server => {},
34        client => {},
35        test => {
36            "Method" => "DTLS",
37            "UseSCTP" => "Yes",
38            "EnableClientSCTPLabelBug" => "Yes",
39            "EnableServerSCTPLabelBug" => "Yes",
40            "ExpectedResult" => "Success"
41        }
42    },
43    {
44        name => "SCTPLabelBug-bad1",
45        server => {},
46        client => {},
47        test => {
48            "Method" => "DTLS",
49            "UseSCTP" => "Yes",
50            "EnableClientSCTPLabelBug" => "Yes",
51            "EnableServerSCTPLabelBug" => "No",
52            "ExpectedResult" => "ClientFail"
53        }
54    },
55    {
56        name => "SCTPLabelBug-bad2",
57        server => {},
58        client => {},
59        test => {
60            "Method" => "DTLS",
61            "UseSCTP" => "Yes",
62            "EnableClientSCTPLabelBug" => "No",
63            "EnableServerSCTPLabelBug" => "Yes",
64            "ExpectedResult" => "ClientFail"
65        }
66    },
67);
68