From: Matt Caswell Date: Mon, 24 Apr 2017 08:42:53 +0000 (+0100) Subject: Add SCTP testing to 16-dtls-certstatus.conf X-Git-Tag: OpenSSL_1_1_1-pre1~1695 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=978b945b9493ddc5930e5b2186feb584b9952460 Add SCTP testing to 16-dtls-certstatus.conf Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/3286) --- diff --git a/test/ssl-tests/16-dtls-certstatus.conf.in b/test/ssl-tests/16-dtls-certstatus.conf.in index 7280029e65..2d1766d5e3 100644 --- a/test/ssl-tests/16-dtls-certstatus.conf.in +++ b/test/ssl-tests/16-dtls-certstatus.conf.in @@ -13,7 +13,7 @@ use strict; use warnings; package ssltests; - +use OpenSSL::Test::Utils; our @tests = ( { @@ -41,5 +41,38 @@ our @tests = ( "Method" => "DTLS", "ExpectedResult" => "ClientFail" } + } +); + +our @tests_sctp = ( + { + name => "certstatus-good", + server => { + extra => { + "CertStatus" => "GoodResponse", + }, + }, + client => {}, + test => { + "Method" => "DTLS", + "UseSCTP" => "Yes", + "ExpectedResult" => "Success" + } + }, + { + name => "certstatus-bad", + server => { + extra => { + "CertStatus" => "BadResponse", + }, + }, + client => {}, + test => { + "Method" => "DTLS", + "UseSCTP" => "Yes", + "ExpectedResult" => "ClientFail" + } }, ); + +push @tests, @tests_sctp unless disabled("sctp") || disabled("sock");