xref: /freebsd-src/crypto/openssl/test/ssl-tests/22-compression.cnf.in (revision e0c4386e7e71d93b0edc0c8fa156263fc4a8b0b6)
1*e0c4386eSCy Schubert# -*- mode: perl; -*-
2*e0c4386eSCy Schubert# Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved.
3*e0c4386eSCy Schubert#
4*e0c4386eSCy Schubert# Licensed under the Apache License 2.0 (the "License").  You may not use
5*e0c4386eSCy Schubert# this file except in compliance with the License.  You can obtain a copy
6*e0c4386eSCy Schubert# in the file LICENSE in the source distribution or at
7*e0c4386eSCy Schubert# https://www.openssl.org/source/license.html
8*e0c4386eSCy Schubert
9*e0c4386eSCy Schubert
10*e0c4386eSCy Schubert## Test Compression
11*e0c4386eSCy Schubert
12*e0c4386eSCy Schubertuse strict;
13*e0c4386eSCy Schubertuse warnings;
14*e0c4386eSCy Schubert
15*e0c4386eSCy Schubertpackage ssltests;
16*e0c4386eSCy Schubertuse OpenSSL::Test::Utils;
17*e0c4386eSCy Schubert
18*e0c4386eSCy Schubertour @tests = ();
19*e0c4386eSCy Schubert
20*e0c4386eSCy Schubertour @tests_tls1_3 = (
21*e0c4386eSCy Schubert    {
22*e0c4386eSCy Schubert        name => "tlsv1_3-both-compress",
23*e0c4386eSCy Schubert        server => {
24*e0c4386eSCy Schubert            "Options" => "Compression"
25*e0c4386eSCy Schubert        },
26*e0c4386eSCy Schubert        client => {
27*e0c4386eSCy Schubert            "Options" => "Compression"
28*e0c4386eSCy Schubert        },
29*e0c4386eSCy Schubert        test => {
30*e0c4386eSCy Schubert            "CompressionExpected" => "No",
31*e0c4386eSCy Schubert            "ExpectedResult" => "Success"
32*e0c4386eSCy Schubert        }
33*e0c4386eSCy Schubert    },
34*e0c4386eSCy Schubert    {
35*e0c4386eSCy Schubert        name => "tlsv1_3-client-compress",
36*e0c4386eSCy Schubert        server => {
37*e0c4386eSCy Schubert        },
38*e0c4386eSCy Schubert        client => {
39*e0c4386eSCy Schubert            "Options" => "Compression"
40*e0c4386eSCy Schubert        },
41*e0c4386eSCy Schubert        test => {
42*e0c4386eSCy Schubert            "CompressionExpected" => "No",
43*e0c4386eSCy Schubert            "ExpectedResult" => "Success"
44*e0c4386eSCy Schubert        }
45*e0c4386eSCy Schubert    },
46*e0c4386eSCy Schubert    {
47*e0c4386eSCy Schubert        name => "tlsv1_3-server-compress",
48*e0c4386eSCy Schubert        server => {
49*e0c4386eSCy Schubert            "Options" => "Compression"
50*e0c4386eSCy Schubert        },
51*e0c4386eSCy Schubert        client => {
52*e0c4386eSCy Schubert        },
53*e0c4386eSCy Schubert        test => {
54*e0c4386eSCy Schubert            "CompressionExpected" => "No",
55*e0c4386eSCy Schubert            "ExpectedResult" => "Success"
56*e0c4386eSCy Schubert        }
57*e0c4386eSCy Schubert    },
58*e0c4386eSCy Schubert    {
59*e0c4386eSCy Schubert        name => "tlsv1_3-neither-compress",
60*e0c4386eSCy Schubert        server => {
61*e0c4386eSCy Schubert        },
62*e0c4386eSCy Schubert        client => {
63*e0c4386eSCy Schubert        },
64*e0c4386eSCy Schubert        test => {
65*e0c4386eSCy Schubert            "CompressionExpected" => "No",
66*e0c4386eSCy Schubert            "ExpectedResult" => "Success"
67*e0c4386eSCy Schubert        }
68*e0c4386eSCy Schubert    },
69*e0c4386eSCy Schubert);
70*e0c4386eSCy Schubertour @tests_tls1_2 = (
71*e0c4386eSCy Schubert    {
72*e0c4386eSCy Schubert        name => "tlsv1_2-both-compress",
73*e0c4386eSCy Schubert        server => {
74*e0c4386eSCy Schubert            "Options" => "Compression"
75*e0c4386eSCy Schubert        },
76*e0c4386eSCy Schubert        client => {
77*e0c4386eSCy Schubert            "Options" => "Compression",
78*e0c4386eSCy Schubert            "MaxProtocol" => "TLSv1.2"
79*e0c4386eSCy Schubert        },
80*e0c4386eSCy Schubert        test => {
81*e0c4386eSCy Schubert            "CompressionExpected" => "Yes",
82*e0c4386eSCy Schubert            "ExpectedResult" => "Success"
83*e0c4386eSCy Schubert        }
84*e0c4386eSCy Schubert    },
85*e0c4386eSCy Schubert    {
86*e0c4386eSCy Schubert        name => "tlsv1_2-client-compress",
87*e0c4386eSCy Schubert        server => {
88*e0c4386eSCy Schubert        },
89*e0c4386eSCy Schubert        client => {
90*e0c4386eSCy Schubert            "Options" => "Compression",
91*e0c4386eSCy Schubert            "MaxProtocol" => "TLSv1.2"
92*e0c4386eSCy Schubert        },
93*e0c4386eSCy Schubert        test => {
94*e0c4386eSCy Schubert            "CompressionExpected" => "No",
95*e0c4386eSCy Schubert            "ExpectedResult" => "Success"
96*e0c4386eSCy Schubert        }
97*e0c4386eSCy Schubert    },
98*e0c4386eSCy Schubert    {
99*e0c4386eSCy Schubert        name => "tlsv1_2-server-compress",
100*e0c4386eSCy Schubert        server => {
101*e0c4386eSCy Schubert            "Options" => "Compression"
102*e0c4386eSCy Schubert        },
103*e0c4386eSCy Schubert        client => {
104*e0c4386eSCy Schubert            "MaxProtocol" => "TLSv1.2"
105*e0c4386eSCy Schubert        },
106*e0c4386eSCy Schubert        test => {
107*e0c4386eSCy Schubert            "CompressionExpected" => "No",
108*e0c4386eSCy Schubert            "ExpectedResult" => "Success"
109*e0c4386eSCy Schubert        }
110*e0c4386eSCy Schubert    },
111*e0c4386eSCy Schubert    {
112*e0c4386eSCy Schubert        name => "tlsv1_2-neither-compress",
113*e0c4386eSCy Schubert        server => {
114*e0c4386eSCy Schubert        },
115*e0c4386eSCy Schubert        client => {
116*e0c4386eSCy Schubert            "MaxProtocol" => "TLSv1.2"
117*e0c4386eSCy Schubert        },
118*e0c4386eSCy Schubert        test => {
119*e0c4386eSCy Schubert            "CompressionExpected" => "No",
120*e0c4386eSCy Schubert            "ExpectedResult" => "Success"
121*e0c4386eSCy Schubert        }
122*e0c4386eSCy Schubert    },
123*e0c4386eSCy Schubert);
124*e0c4386eSCy Schubert
125*e0c4386eSCy Schubertpush @tests, @tests_tls1_3 unless disabled("tls1_3");
126*e0c4386eSCy Schubertpush @tests, @tests_tls1_2 unless alldisabled(("tls1_2", "tls1_1", "tls1",
127*e0c4386eSCy Schubert                                               "ssl3"));
128