1e1051a39Sopenharmony_ci# -*- mode: perl; -*- 2e1051a39Sopenharmony_ci# Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved. 3e1051a39Sopenharmony_ci# 4e1051a39Sopenharmony_ci# Licensed under the Apache License 2.0 (the "License"). You may not use 5e1051a39Sopenharmony_ci# this file except in compliance with the License. You can obtain a copy 6e1051a39Sopenharmony_ci# in the file LICENSE in the source distribution or at 7e1051a39Sopenharmony_ci# https://www.openssl.org/source/license.html 8e1051a39Sopenharmony_ci 9e1051a39Sopenharmony_ci 10e1051a39Sopenharmony_ci## SSL test configurations 11e1051a39Sopenharmony_ci 12e1051a39Sopenharmony_cipackage ssltests; 13e1051a39Sopenharmony_ci 14e1051a39Sopenharmony_ciour @tests = ( 15e1051a39Sopenharmony_ci { 16e1051a39Sopenharmony_ci name => "default", 17e1051a39Sopenharmony_ci server => { }, 18e1051a39Sopenharmony_ci client => { }, 19e1051a39Sopenharmony_ci test => { "ExpectedResult" => "Success" }, 20e1051a39Sopenharmony_ci }, 21e1051a39Sopenharmony_ci 22e1051a39Sopenharmony_ci { 23e1051a39Sopenharmony_ci name => "Server signature algorithms bug", 24e1051a39Sopenharmony_ci # Should have no effect as we aren't doing client auth 25e1051a39Sopenharmony_ci server => { "ClientSignatureAlgorithms" => "PSS+SHA512:RSA+SHA512" }, 26e1051a39Sopenharmony_ci client => { "SignatureAlgorithms" => "PSS+SHA256:RSA+SHA256" }, 27e1051a39Sopenharmony_ci test => { "ExpectedResult" => "Success" }, 28e1051a39Sopenharmony_ci }, 29e1051a39Sopenharmony_ci 30e1051a39Sopenharmony_ci { 31e1051a39Sopenharmony_ci name => "verify-cert", 32e1051a39Sopenharmony_ci server => { }, 33e1051a39Sopenharmony_ci client => { 34e1051a39Sopenharmony_ci # Don't set up the client root file. 35e1051a39Sopenharmony_ci "VerifyCAFile" => undef, 36e1051a39Sopenharmony_ci }, 37e1051a39Sopenharmony_ci test => { 38e1051a39Sopenharmony_ci "ExpectedResult" => "ClientFail", 39e1051a39Sopenharmony_ci "ExpectedClientAlert" => "UnknownCA", 40e1051a39Sopenharmony_ci }, 41e1051a39Sopenharmony_ci }, 42e1051a39Sopenharmony_ci 43e1051a39Sopenharmony_ci { 44e1051a39Sopenharmony_ci name => "name-constraints-no-san-in-ee", 45e1051a39Sopenharmony_ci server => { 46e1051a39Sopenharmony_ci "Certificate" => test_pem("goodcn2-chain.pem"), 47e1051a39Sopenharmony_ci "PrivateKey" => test_pem("goodcn2-key.pem"), 48e1051a39Sopenharmony_ci }, 49e1051a39Sopenharmony_ci client => { 50e1051a39Sopenharmony_ci "VerifyCAFile" => test_pem("root-cert.pem"), 51e1051a39Sopenharmony_ci }, 52e1051a39Sopenharmony_ci test => { "ExpectedResult" => "Success" }, 53e1051a39Sopenharmony_ci }, 54e1051a39Sopenharmony_ci); 55