123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- # -*- mode: perl; -*-
- # Copyright 2016-2016 The OpenSSL Project Authors. All Rights Reserved.
- #
- # Licensed under the OpenSSL license (the "License"). You may not use
- # this file except in compliance with the License. You can obtain a copy
- # in the file LICENSE in the source distribution or at
- # https://www.openssl.org/source/license.html
- ## SSL test configurations
- package ssltests;
- use OpenSSL::Test::Utils;
- our @tests = ();
- our @tests = (
- {
- name => "no-compressed-certificates",
- server => {
- "Options" => "-TxCertificateCompression,-RxCertificateCompression",
- },
- client => {
- "Options" => "-TxCertificateCompression,-RxCertificateCompression",
- "MinProtocol" => "TLSv1.3",
- },
- test => {
- "ExpectedResult" => "Success",
- "CompressCertificates" => "Yes",
- },
- },
- {
- name => "server-compressed-certificates",
- server => {
- "Options" => "TxCertificateCompression,RxCertificateCompression",
- },
- client => {
- "Options" => "-TxCertificateCompression,-RxCertificateCompression",
- "MinProtocol" => "TLSv1.3",
- },
- test => {
- "ExpectedResult" => "Success",
- "CompressCertificates" => "Yes",
- },
- },
- {
- name => "client-compressed-certificates",
- server => {
- "Options" => "-TxCertificateCompression,-RxCertificateCompression",
- },
- client => {
- "Options" => "TxCertificateCompression,RxCertificateCompression",
- "MinProtocol" => "TLSv1.3",
- },
- test => {
- "ExpectedResult" => "Success",
- "CompressCertificates" => "Yes",
- },
- },
- {
- name => "both-compressed-certificates",
- server => {
- "Options" => "TxCertificateCompression,RxCertificateCompression",
- },
- client => {
- "Options" => "TxCertificateCompression,RxCertificateCompression",
- "MinProtocol" => "TLSv1.3",
- },
- test => {
- "ExpectedResult" => "Success",
- "CompressCertificates" => "Yes",
- },
- },
- {
- name => "no-compressed-certificates-mtls",
- server => {
- "Options" => "-TxCertificateCompression,-RxCertificateCompression",
- "VerifyCAFile" => test_pem("root-cert.pem"),
- "VerifyMode" => "Request",
- },
- client => {
- "Options" => "-TxCertificateCompression,-RxCertificateCompression",
- "MinProtocol" => "TLSv1.3",
- "Certificate" => test_pem("ee-client-chain.pem"),
- "PrivateKey" => test_pem("ee-key.pem"),
- },
- test => {
- "ExpectedResult" => "Success",
- "CompressCertificates" => "Yes",
- },
- },
- {
- name => "server-compressed-certificates-mtls",
- server => {
- "Options" => "TxCertificateCompression,RxCertificateCompression",
- "VerifyCAFile" => test_pem("root-cert.pem"),
- "VerifyMode" => "Request",
- },
- client => {
- "Options" => "-TxCertificateCompression,-RxCertificateCompression",
- "MinProtocol" => "TLSv1.3",
- "Certificate" => test_pem("ee-client-chain.pem"),
- "PrivateKey" => test_pem("ee-key.pem"),
- },
- test => {
- "ExpectedResult" => "Success",
- "CompressCertificates" => "Yes",
- },
- },
- {
- name => "client-compressed-certificates-mtls",
- server => {
- "Options" => "-TxCertificateCompression,-RxCertificateCompression",
- "VerifyCAFile" => test_pem("root-cert.pem"),
- "VerifyMode" => "Request",
- },
- client => {
- "Options" => "TxCertificateCompression,RxCertificateCompression",
- "MinProtocol" => "TLSv1.3",
- "Certificate" => test_pem("ee-client-chain.pem"),
- "PrivateKey" => test_pem("ee-key.pem"),
- },
- test => {
- "ExpectedResult" => "Success",
- "CompressCertificates" => "Yes",
- },
- },
- {
- name => "both-compressed-certificates-mtls",
- server => {
- "Options" => "TxCertificateCompression,RxCertificateCompression",
- "VerifyCAFile" => test_pem("root-cert.pem"),
- "VerifyMode" => "Request",
- },
- client => {
- "Options" => "TxCertificateCompression,RxCertificateCompression",
- "MinProtocol" => "TLSv1.3",
- "Certificate" => test_pem("ee-client-chain.pem"),
- "PrivateKey" => test_pem("ee-key.pem"),
- },
- test => {
- "ExpectedResult" => "Success",
- "CompressCertificates" => "Yes",
- },
- },
- );
|