summary refs log tree commit diff
path: root/crypto/src/tls/TlsUtilities.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-04-15 17:21:18 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-04-15 17:21:18 +0700
commit6eac5db2161d1766650f951608a1df41b19c6719 (patch)
treeded2353edd6d725b4f013ebda76f0ad656428518 /crypto/src/tls/TlsUtilities.cs
parentmake initial DTLS handshake resend time configurable (diff)
downloadBouncyCastle.NET-ed25519-6eac5db2161d1766650f951608a1df41b19c6719.tar.xz
Minor fixups for github_445
Diffstat (limited to 'crypto/src/tls/TlsUtilities.cs')
-rw-r--r--crypto/src/tls/TlsUtilities.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/src/tls/TlsUtilities.cs b/crypto/src/tls/TlsUtilities.cs
index a2ee82f9e..69a458a5a 100644
--- a/crypto/src/tls/TlsUtilities.cs
+++ b/crypto/src/tls/TlsUtilities.cs
@@ -5721,5 +5721,14 @@ namespace Org.BouncyCastle.Tls
             }
             return v;
         }
+
+        // TODO[api] Not needed once GetHandshakeResendTimeMillis() has been added to TlsPeer
+        internal static int GetHandshakeResendTimeMillis(TlsPeer tlsPeer)
+        {
+            if (tlsPeer is AbstractTlsPeer abstractTlsPeer)
+                return abstractTlsPeer.GetHandshakeResendTimeMillis();
+
+            return 1000;
+        }
     }
 }