diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-06-24 15:07:29 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-06-24 15:07:29 +0700 |
commit | b72579c4b1200459f959bcd6a25364e239420573 (patch) | |
tree | 5e566cc2b7972cd8ccebece92d879bddc800393d /crypto/src/tls/TlsNoCloseNotifyException.cs | |
parent | Remove certpath from PkixCertPathValidatorException (diff) | |
download | BouncyCastle.NET-ed25519-b72579c4b1200459f959bcd6a25364e239420573.tar.xz |
Cleanup Exception classes
Diffstat (limited to 'crypto/src/tls/TlsNoCloseNotifyException.cs')
-rw-r--r-- | crypto/src/tls/TlsNoCloseNotifyException.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/crypto/src/tls/TlsNoCloseNotifyException.cs b/crypto/src/tls/TlsNoCloseNotifyException.cs index 8fdfbbfc4..b0314a406 100644 --- a/crypto/src/tls/TlsNoCloseNotifyException.cs +++ b/crypto/src/tls/TlsNoCloseNotifyException.cs @@ -1,5 +1,6 @@ using System; using System.IO; +using System.Runtime.Serialization; namespace Org.BouncyCastle.Tls { @@ -10,6 +11,7 @@ namespace Org.BouncyCastle.Tls /// malicious). It may be possible to check for truncation via some property of a higher level protocol /// built upon TLS, e.g.the Content-Length header for HTTPS. /// </remarks> + [Serializable] public class TlsNoCloseNotifyException : EndOfStreamException { @@ -17,5 +19,10 @@ namespace Org.BouncyCastle.Tls : base("No close_notify alert received before connection closed") { } - } + + protected TlsNoCloseNotifyException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + } } |