summary refs log tree commit diff
path: root/crypto/src/openssl
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-03-16 12:41:05 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-03-16 12:41:05 +0700
commitfdeafa10e2dcfee734d050f2f11ab50a350f69cc (patch)
treeb839357e0bea77bf7c192671b77539b9051162a0 /crypto/src/openssl
parentFix non-8-aligned IPv4 netmask parsing (diff)
downloadBouncyCastle.NET-ed25519-fdeafa10e2dcfee734d050f2f11ab50a350f69cc.tar.xz
Fix rethrow syntax
- see https://github.com/bcgit/bc-csharp/issues/425
Diffstat (limited to 'crypto/src/openssl')
-rw-r--r--crypto/src/openssl/PEMReader.cs4
-rw-r--r--crypto/src/openssl/PEMWriter.cs2
2 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/openssl/PEMReader.cs b/crypto/src/openssl/PEMReader.cs

index a2c4fd1d6..cb6950c47 100644 --- a/crypto/src/openssl/PEMReader.cs +++ b/crypto/src/openssl/PEMReader.cs
@@ -356,9 +356,9 @@ namespace Org.BouncyCastle.OpenSsl return new AsymmetricCipherKeyPair(pubSpec, privSpec); } - catch (IOException e) + catch (IOException) { - throw e; + throw; } catch (Exception e) { diff --git a/crypto/src/openssl/PEMWriter.cs b/crypto/src/openssl/PEMWriter.cs
index 58b6156d5..504ea9e4b 100644 --- a/crypto/src/openssl/PEMWriter.cs +++ b/crypto/src/openssl/PEMWriter.cs
@@ -31,7 +31,7 @@ namespace Org.BouncyCastle.OpenSsl if (e.InnerException is IOException inner) throw inner; - throw e; + throw; } } }