summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-05-17 11:43:29 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-05-17 11:43:29 +0700
commitc168eb3638d6d73d1681753ce0e1fe82ffde450e (patch)
treed25419a9a56b5597857d8e51c6c28ec6448bf187
parentRefactoring in Tls.Crypto.Impl.BC (diff)
downloadBouncyCastle.NET-ed25519-c168eb3638d6d73d1681753ce0e1fe82ffde450e.tar.xz
TLS: NotifyConnectionClosed after failure
-rw-r--r--crypto/src/tls/TlsProtocol.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/src/tls/TlsProtocol.cs b/crypto/src/tls/TlsProtocol.cs
index e093ff07a..0ee702a96 100644
--- a/crypto/src/tls/TlsProtocol.cs
+++ b/crypto/src/tls/TlsProtocol.cs
@@ -312,6 +312,8 @@ namespace Org.BouncyCastle.Tls
             }
 
             CloseConnection();
+
+            TlsUtilities.NotifyConnectionClosed(Peer);
         }
 
         /// <exception cref="IOException"/>