summary refs log tree commit diff
path: root/crypto/src/tls/DtlsReliableHandshake.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-03-16 23:53:43 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-03-16 23:53:43 +0700
commit228c8e787b21b1b471cf4021d72150eb3f1ee791 (patch)
treedcd64e3caab43d5ddec4952d4049312853d17a1d /crypto/src/tls/DtlsReliableHandshake.cs
parentDTLS: delayed handshake hash update (diff)
downloadBouncyCastle.NET-ed25519-228c8e787b21b1b471cf4021d72150eb3f1ee791.tar.xz
Fix return type
Diffstat (limited to '')
-rw-r--r--crypto/src/tls/DtlsReliableHandshake.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/src/tls/DtlsReliableHandshake.cs b/crypto/src/tls/DtlsReliableHandshake.cs
index 58b9301fd..7581e4766 100644
--- a/crypto/src/tls/DtlsReliableHandshake.cs
+++ b/crypto/src/tls/DtlsReliableHandshake.cs
@@ -200,7 +200,7 @@ namespace Org.BouncyCastle.Tls
         }
 
         /// <exception cref="IOException"/>
-        internal Message UpdateHandshakeMessagesDigest(Message message)
+        internal void UpdateHandshakeMessagesDigest(Message message)
         {
             short msg_type = message.Type;
             switch (msg_type)
@@ -226,8 +226,6 @@ namespace Org.BouncyCastle.Tls
                 break;
             }
             }
-
-            return message;
         }
 
         internal void Finish()
@@ -310,7 +308,7 @@ namespace Org.BouncyCastle.Tls
 
             byte[] buf = null;
 
-            for (; ; )
+            for (;;)
             {
                 if (m_recordLayer.IsClosed)
                     throw new TlsFatalAlert(AlertDescription.user_canceled);