1# -*- mode: perl; -*-
2# Copyright 2016-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 CertStatus messages
11
12use strict;
13use warnings;
14
15package ssltests;
16
17
18our @tests = (
19    {
20        name => "certstatus-good",
21        server => {
22            extra => {
23                "CertStatus" => "GoodResponse",
24            },
25        },
26        client => {},
27        test => {
28            "Method" => "TLS",
29            "ExpectedResult" => "Success"
30        }
31    },
32    {
33        name => "certstatus-bad",
34        server => {
35            extra => {
36                "CertStatus" => "BadResponse",
37            },
38        },
39        client => {},
40        test => {
41            "Method" => "TLS",
42            "ExpectedResult" => "ClientFail"
43        }
44    },
45    {
46        name => "certstatus-good-ext",
47        server => {
48            extra => {
49                "CertStatus" => "GoodResponseExt",
50            },
51        },
52        client => {},
53        test => {
54            "Method" => "TLS",
55            "ExpectedResult" => "Success"
56        }
57    },
58    {
59        name => "certstatus-bad-ext",
60        server => {
61            extra => {
62                "CertStatus" => "BadResponseExt",
63            },
64        },
65        client => {},
66        test => {
67            "Method" => "TLS",
68            "ExpectedResult" => "ClientFail"
69        }
70    },
71);
72