diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-07-12 15:24:04 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-07-12 15:24:04 +0700 |
commit | 2694721faa07e61e84c83bf296f00c8a5c5f7502 (patch) | |
tree | b35e41b65a0db5c7f1c111d6b18e9ee5272650bb /crypto | |
parent | Port of new TLS API from bc-java (diff) | |
download | BouncyCastle.NET-ed25519-2694721faa07e61e84c83bf296f00c8a5c5f7502.tar.xz |
Fix some warnings
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/test/src/asn1/test/CertificateTest.cs | 2 | ||||
-rw-r--r-- | crypto/test/src/crypto/test/AeadTestUtilities.cs | 4 | ||||
-rw-r--r-- | crypto/test/src/crypto/test/ChaCha20Poly1305Test.cs | 4 | ||||
-rw-r--r-- | crypto/test/src/tls/test/TlsProtocolNonBlockingTest.cs | 4 | ||||
-rw-r--r-- | crypto/test/src/tls/test/TlsProtocolTest.cs | 2 | ||||
-rw-r--r-- | crypto/test/src/tls/test/TlsPskProtocolTest.cs | 2 | ||||
-rw-r--r-- | crypto/test/src/tls/test/TlsSrpProtocolTest.cs | 2 |
7 files changed, 10 insertions, 10 deletions
diff --git a/crypto/test/src/asn1/test/CertificateTest.cs b/crypto/test/src/asn1/test/CertificateTest.cs index 62ae6799c..6163261ac 100644 --- a/crypto/test/src/asn1/test/CertificateTest.cs +++ b/crypto/test/src/asn1/test/CertificateTest.cs @@ -501,7 +501,7 @@ namespace Org.BouncyCastle.Asn1.Tests { TbsCertificateStructure cert = TbsCertificateStructure.GetInstance(bangerCert); } - catch (ArgumentException e) + catch (ArgumentException) { // expected - anything else is not! } diff --git a/crypto/test/src/crypto/test/AeadTestUtilities.cs b/crypto/test/src/crypto/test/AeadTestUtilities.cs index a5e21552f..ee2d7bc8b 100644 --- a/crypto/test/src/crypto/test/AeadTestUtilities.cs +++ b/crypto/test/src/crypto/test/AeadTestUtilities.cs @@ -37,7 +37,7 @@ namespace Org.BouncyCastle.Crypto.Tests throw new TestFailedException( new SimpleTestResult(false, test + " : tampering of ciphertext not detected.")); } - catch (InvalidCipherTextException e) + catch (InvalidCipherTextException) { // Expected } @@ -53,7 +53,7 @@ namespace Org.BouncyCastle.Crypto.Tests cipher.DoFinal(output, 0); Fail(test, "tampering of ciphertext not detected."); } - catch (InvalidCipherTextException e) + catch (InvalidCipherTextException) { // Expected } diff --git a/crypto/test/src/crypto/test/ChaCha20Poly1305Test.cs b/crypto/test/src/crypto/test/ChaCha20Poly1305Test.cs index 9fade9a5e..b0b3f4606 100644 --- a/crypto/test/src/crypto/test/ChaCha20Poly1305Test.cs +++ b/crypto/test/src/crypto/test/ChaCha20Poly1305Test.cs @@ -390,7 +390,7 @@ namespace Org.BouncyCastle.Crypto.Tests Fail("incorrect mac size not picked up"); } - catch (ArgumentException e) + catch (ArgumentException) { // expected } @@ -401,7 +401,7 @@ namespace Org.BouncyCastle.Crypto.Tests Fail("illegal argument not picked up"); } - catch (ArgumentException e) + catch (ArgumentException) { // expected } diff --git a/crypto/test/src/tls/test/TlsProtocolNonBlockingTest.cs b/crypto/test/src/tls/test/TlsProtocolNonBlockingTest.cs index 56cd39e87..fac3419fb 100644 --- a/crypto/test/src/tls/test/TlsProtocolNonBlockingTest.cs +++ b/crypto/test/src/tls/test/TlsProtocolNonBlockingTest.cs @@ -104,7 +104,7 @@ namespace Org.BouncyCastle.Tls.Tests protocol.OfferInput(new byte[10]); Assert.Fail("Input was accepted after close"); } - catch (IOException e) + catch (IOException) { } @@ -113,7 +113,7 @@ namespace Org.BouncyCastle.Tls.Tests protocol.WriteApplicationData(new byte[10], 0, 10); Assert.Fail("Output was accepted after close"); } - catch (IOException e) + catch (IOException) { } } diff --git a/crypto/test/src/tls/test/TlsProtocolTest.cs b/crypto/test/src/tls/test/TlsProtocolTest.cs index b4f79f9ba..c0287d913 100644 --- a/crypto/test/src/tls/test/TlsProtocolTest.cs +++ b/crypto/test/src/tls/test/TlsProtocolTest.cs @@ -66,7 +66,7 @@ namespace Org.BouncyCastle.Tls.Tests Streams.PipeAll(m_serverProtocol.Stream, m_serverProtocol.Stream); m_serverProtocol.Close(); } - catch (Exception e) + catch (Exception) { } } diff --git a/crypto/test/src/tls/test/TlsPskProtocolTest.cs b/crypto/test/src/tls/test/TlsPskProtocolTest.cs index 97e6f133b..449f9ea16 100644 --- a/crypto/test/src/tls/test/TlsPskProtocolTest.cs +++ b/crypto/test/src/tls/test/TlsPskProtocolTest.cs @@ -66,7 +66,7 @@ namespace Org.BouncyCastle.Tls.Tests Streams.PipeAll(m_serverProtocol.Stream, m_serverProtocol.Stream); m_serverProtocol.Close(); } - catch (Exception e) + catch (Exception) { } } diff --git a/crypto/test/src/tls/test/TlsSrpProtocolTest.cs b/crypto/test/src/tls/test/TlsSrpProtocolTest.cs index 555b1f1f7..f85a67dd5 100644 --- a/crypto/test/src/tls/test/TlsSrpProtocolTest.cs +++ b/crypto/test/src/tls/test/TlsSrpProtocolTest.cs @@ -66,7 +66,7 @@ namespace Org.BouncyCastle.Tls.Tests Streams.PipeAll(m_serverProtocol.Stream, m_serverProtocol.Stream); m_serverProtocol.Close(); } - catch (Exception e) + catch (Exception) { } } |