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/DtlsClientProtocol.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/DtlsClientProtocol.cs')
-rw-r--r-- | crypto/src/tls/DtlsClientProtocol.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crypto/src/tls/DtlsClientProtocol.cs b/crypto/src/tls/DtlsClientProtocol.cs index b6876bdd1..e96e161d4 100644 --- a/crypto/src/tls/DtlsClientProtocol.cs +++ b/crypto/src/tls/DtlsClientProtocol.cs @@ -893,9 +893,8 @@ namespace Org.BouncyCastle.Tls securityParameters.m_encryptThenMac = serverSentEncryptThenMac; } - securityParameters.m_maxFragmentLength = EvaluateMaxFragmentLengthExtension( - securityParameters.IsResumedSession, sessionClientExtensions, sessionServerExtensions, - AlertDescription.illegal_parameter); + securityParameters.m_maxFragmentLength = TlsUtilities.ProcessMaxFragmentLengthExtension( + sessionClientExtensions, sessionServerExtensions, AlertDescription.illegal_parameter); securityParameters.m_truncatedHmac = TlsExtensionsUtilities.HasTruncatedHmacExtension( sessionServerExtensions); |