diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-04-15 17:22:03 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-04-15 17:22:03 +0700 |
commit | 8d35908a35177460a289413315e0cab1f4f2b2a6 (patch) | |
tree | ded2353edd6d725b4f013ebda76f0ad656428518 /crypto/src/tls/TlsUtilities.cs | |
parent | Refactor GCM code (diff) | |
parent | Minor fixups for github_445 (diff) | |
download | BouncyCastle.NET-ed25519-8d35908a35177460a289413315e0cab1f4f2b2a6.tar.xz |
Merge branch 'dtls-resend-time'
Diffstat (limited to 'crypto/src/tls/TlsUtilities.cs')
-rw-r--r-- | crypto/src/tls/TlsUtilities.cs | 9 |
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; + } } } |