diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-04-16 22:16:32 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-04-16 22:16:32 +0700 |
commit | 3d0253fd6482ba5eead389248729f44099254db8 (patch) | |
tree | 553a211d899f9c4cc399db4b2c67cae5bd5290f4 /crypto/src/tls/DtlsRecordLayer.cs | |
parent | Merge branch 'anhvo/PortOpenSshUtil' (diff) | |
download | BouncyCastle.NET-ed25519-3d0253fd6482ba5eead389248729f44099254db8.tar.xz |
FIx binary compatibility issues
Diffstat (limited to 'crypto/src/tls/DtlsRecordLayer.cs')
-rw-r--r-- | crypto/src/tls/DtlsRecordLayer.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/src/tls/DtlsRecordLayer.cs b/crypto/src/tls/DtlsRecordLayer.cs index a18210de2..efe9e7312 100644 --- a/crypto/src/tls/DtlsRecordLayer.cs +++ b/crypto/src/tls/DtlsRecordLayer.cs @@ -240,9 +240,9 @@ namespace Org.BouncyCastle.Tls var cipher = m_readEpoch.Cipher; int plaintextDecodeLimit; - if (cipher is AbstractTlsCipher abstractTlsCipher) + if (cipher is TlsCipherExt tlsCipherExt) { - plaintextDecodeLimit = abstractTlsCipher.GetPlaintextDecodeLimit(ciphertextLimit); + plaintextDecodeLimit = tlsCipherExt.GetPlaintextDecodeLimit(ciphertextLimit); } else { @@ -259,9 +259,9 @@ namespace Org.BouncyCastle.Tls int ciphertextLimit = m_transport.GetSendLimit() - m_writeEpoch.RecordHeaderLengthWrite; int plaintextEncodeLimit; - if (cipher is AbstractTlsCipher abstractTlsCipher) + if (cipher is TlsCipherExt tlsCipherExt) { - plaintextEncodeLimit = abstractTlsCipher.GetPlaintextEncodeLimit(ciphertextLimit); + plaintextEncodeLimit = tlsCipherExt.GetPlaintextEncodeLimit(ciphertextLimit); } else { |