From 3207ab5de93280623f50bb320577f8bbe3d38354 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Sun, 13 Aug 2017 13:13:18 +0700 Subject: Support receiving DTLS records containing multiple handshake messages - see https://github.com/bcgit/bc-csharp/issues/85 --- crypto/test/src/crypto/tls/test/DtlsTestSuite.cs | 9 +++++++++ crypto/test/src/crypto/tls/test/TlsTestSuite.cs | 9 +++++++++ 2 files changed, 18 insertions(+) (limited to 'crypto/test') diff --git a/crypto/test/src/crypto/tls/test/DtlsTestSuite.cs b/crypto/test/src/crypto/tls/test/DtlsTestSuite.cs index a1ba62dde..f191ef005 100644 --- a/crypto/test/src/crypto/tls/test/DtlsTestSuite.cs +++ b/crypto/test/src/crypto/tls/test/DtlsTestSuite.cs @@ -215,5 +215,14 @@ namespace Org.BouncyCastle.Crypto.Tls.Tests c.serverMinimumVersion = ProtocolVersion.DTLSv10; return c; } + + public static void RunTests() + { + foreach (TestCaseData data in Suite()) + { + Console.WriteLine(data.TestName); + new DtlsTestCase().RunTest((TlsTestConfig)data.Arguments[0]); + } + } } } diff --git a/crypto/test/src/crypto/tls/test/TlsTestSuite.cs b/crypto/test/src/crypto/tls/test/TlsTestSuite.cs index 5dd9cf0f5..849e738af 100644 --- a/crypto/test/src/crypto/tls/test/TlsTestSuite.cs +++ b/crypto/test/src/crypto/tls/test/TlsTestSuite.cs @@ -201,5 +201,14 @@ namespace Org.BouncyCastle.Crypto.Tls.Tests c.serverMinimumVersion = ProtocolVersion.SSLv3; return c; } + + public static void RunTests() + { + foreach (TestCaseData data in Suite()) + { + Console.WriteLine(data.TestName); + new TlsTestCase().RunTest((TlsTestConfig)data.Arguments[0]); + } + } } } -- cgit 1.5.1