diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2017-03-22 22:47:04 +1030 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2017-03-22 22:47:04 +1030 |
commit | f3d758b0f79743e17123560508cd59a63b8607c1 (patch) | |
tree | 83d1726b8e5d0e0399ba84bba6e1d3afcee7a3d8 /crypto/src | |
parent | Simple refactoring to follow bc-java code (diff) | |
download | BouncyCastle.NET-ed25519-f3d758b0f79743e17123560508cd59a63b8607c1.tar.xz |
Use new TlsNoCloseNotifyException instead of generic EndOfStreamException
- New exception only used for this specific case, which should simplify the handling of possible truncations in application code.
Diffstat (limited to 'crypto/src')
-rw-r--r-- | crypto/src/crypto/tls/TlsNoCloseNotifyException.cs | 19 | ||||
-rw-r--r-- | crypto/src/crypto/tls/TlsProtocol.cs | 4 |
2 files changed, 20 insertions, 3 deletions
diff --git a/crypto/src/crypto/tls/TlsNoCloseNotifyException.cs b/crypto/src/crypto/tls/TlsNoCloseNotifyException.cs new file mode 100644 |