diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-07-06 17:15:29 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-07-06 17:15:29 +0700 |
commit | 806f7224c9c1f6708358115f0bb8a3fcfd0a0663 (patch) | |
tree | d705b3a45e0e86a0345430286d1a458a081c1579 /crypto/src/tls/DtlsProtocol.cs | |
parent | DTLS: Use SecurityParameters.m_resumedSession for resumption tracking (diff) | |
download | BouncyCastle.NET-ed25519-806f7224c9c1f6708358115f0bb8a3fcfd0a0663.tar.xz |
(D)TLS: Refactoring around the MFL extension
Diffstat (limited to 'crypto/src/tls/DtlsProtocol.cs')
-rw-r--r-- | crypto/src/tls/DtlsProtocol.cs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/crypto/src/tls/DtlsProtocol.cs b/crypto/src/tls/DtlsProtocol.cs index 745535148..566d07cb4 100644 --- a/crypto/src/tls/DtlsProtocol.cs +++ b/crypto/src/tls/DtlsProtocol.cs @@ -39,24 +39,6 @@ namespace Org.BouncyCastle.Tls } /// <exception cref="IOException"/> - internal static short EvaluateMaxFragmentLengthExtension(bool resumedSession, - IDictionary<int, byte[]> clientExtensions, IDictionary<int, byte[]> serverExtensions, - short alertDescription) - { - short maxFragmentLength = TlsExtensionsUtilities.GetMaxFragmentLengthExtension(serverExtensions); - if (maxFragmentLength >= 0) - { - if (!MaxFragmentLength.IsValid(maxFragmentLength) - || (!resumedSession && maxFragmentLength != TlsExtensionsUtilities - .GetMaxFragmentLengthExtension(clientExtensions))) - { - throw new TlsFatalAlert(alertDescription); - } - } - return maxFragmentLength; - } - - /// <exception cref="IOException"/> internal static byte[] GenerateCertificate(TlsContext context, Certificate certificate, Stream endPointHash) { MemoryStream buf = new MemoryStream(); |