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)
+ {
+ }
+ }
}
|