Emilia Kasper | 453dfd8 | 2016-03-17 15:14:30 +0100 | [diff] [blame] | 1 | # -*- mode: perl; -*- |
Matt Caswell | 33388b4 | 2020-04-23 13:55:52 +0100 | [diff] [blame] | 2 | # Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved. |
Rich Salz | 44c8a5e | 2016-06-01 11:26:40 -0400 | [diff] [blame] | 3 | # |
Richard Levitte | 909f1a2 | 2018-12-06 13:05:25 +0100 | [diff] [blame] | 4 | # Licensed under the Apache License 2.0 (the "License"). You may not use |
Rich Salz | 44c8a5e | 2016-06-01 11:26:40 -0400 | [diff] [blame] | 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 | |
Emilia Kasper | 453dfd8 | 2016-03-17 15:14:30 +0100 | [diff] [blame] | 9 | |
| 10 | ## SSL test configurations |
| 11 | |
| 12 | package ssltests; |
| 13 | |
| 14 | our @tests = ( |
| 15 | { |
| 16 | name => "default", |
| 17 | server => { }, |
| 18 | client => { }, |
| 19 | test => { "ExpectedResult" => "Success" }, |
| 20 | }, |
| 21 | |
| 22 | { |
Dr. Stephen Henson | 9cf847d | 2017-01-25 18:43:13 +0000 | [diff] [blame] | 23 | name => "Server signature algorithms bug", |
| 24 | # Should have no effect as we aren't doing client auth |
Dr. Stephen Henson | d8979bd | 2017-01-28 19:45:33 +0000 | [diff] [blame] | 25 | server => { "ClientSignatureAlgorithms" => "PSS+SHA512:RSA+SHA512" }, |
| 26 | client => { "SignatureAlgorithms" => "PSS+SHA256:RSA+SHA256" }, |
Dr. Stephen Henson | 9cf847d | 2017-01-25 18:43:13 +0000 | [diff] [blame] | 27 | test => { "ExpectedResult" => "Success" }, |
| 28 | }, |
| 29 | |
| 30 | { |
Emilia Kasper | 453dfd8 | 2016-03-17 15:14:30 +0100 | [diff] [blame] | 31 | name => "verify-cert", |
| 32 | server => { }, |
| 33 | client => { |
| 34 | # Don't set up the client root file. |
| 35 | "VerifyCAFile" => undef, |
| 36 | }, |
| 37 | test => { |
| 38 | "ExpectedResult" => "ClientFail", |
Emilia Kasper | 9f48bba | 2016-07-21 16:29:48 +0200 | [diff] [blame] | 39 | "ExpectedClientAlert" => "UnknownCA", |
Emilia Kasper | 453dfd8 | 2016-03-17 15:14:30 +0100 | [diff] [blame] | 40 | }, |
| 41 | }, |
Matt Caswell | 752aa4a | 2021-12-03 15:18:27 +0000 | [diff] [blame] | 42 | |
| 43 | { |
| 44 | name => "name-constraints-no-san-in-ee", |
| 45 | server => { |
| 46 | "Certificate" => test_pem("goodcn2-chain.pem"), |
| 47 | "PrivateKey" => test_pem("goodcn2-key.pem"), |
| 48 | }, |
| 49 | client => { |
| 50 | "VerifyCAFile" => test_pem("root-cert.pem"), |
| 51 | }, |
| 52 | test => { "ExpectedResult" => "Success" }, |
| 53 | }, |
Emilia Kasper | 453dfd8 | 2016-03-17 15:14:30 +0100 | [diff] [blame] | 54 | ); |