summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-07-12 19:39:21 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-07-12 19:39:21 +0700
commit08044e073291cf33948a30955d9123061138b95f (patch)
treeac8033f6889c4442b64d694f9551afa076a32054 /crypto
parentFix some warnings (diff)
downloadBouncyCastle.NET-ed25519-08044e073291cf33948a30955d9123061138b95f.tar.xz
.NET 1.1 fixes
Diffstat (limited to 'crypto')
-rw-r--r--crypto/test/src/tls/test/PskTlsClientTest.cs2
-rw-r--r--crypto/test/src/tls/test/TlsClientTest.cs2
2 files changed, 2 insertions, 2 deletions
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;