From 08044e073291cf33948a30955d9123061138b95f Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Mon, 12 Jul 2021 19:39:21 +0700 Subject: .NET 1.1 fixes --- crypto/test/src/tls/test/PskTlsClientTest.cs | 2 +- crypto/test/src/tls/test/TlsClientTest.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crypto/test/src/tls') diff --git a/crypto/test/src/tls/test/PskTlsClientTest.cs b/crypto/test/src/tls/test/PskTlsClientTest.cs index 62cfc0dc2..770fade6f 100644 --- a/crypto/test/src/tls/test/PskTlsClientTest.cs +++ b/crypto/test/src/tls/test/PskTlsClientTest.cs @@ -83,7 +83,7 @@ namespace Org.BouncyCastle.Tls.Tests // TEST CODE ONLY. This is not a robust way of parsing the result! foreach (string end in ends) { - if (upperLine.Contains(end)) + if (upperLine.IndexOf(end) >= 0) { finished = true; break; diff --git a/crypto/test/src/tls/test/TlsClientTest.cs b/crypto/test/src/tls/test/TlsClientTest.cs index 27e5f342b..cd6322604 100644 --- a/crypto/test/src/tls/test/TlsClientTest.cs +++ b/crypto/test/src/tls/test/TlsClientTest.cs @@ -67,7 +67,7 @@ namespace Org.BouncyCastle.Tls.Tests // TEST CODE ONLY. This is not a robust way of parsing the result! foreach (string end in ends) { - if (upperLine.Contains(end)) + if (upperLine.IndexOf(end) >= 0) { finished = true; break; -- cgit 1.4.1